71 lines
1.8 KiB
C++
71 lines
1.8 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/pi/model/DescribeDimensionKeysResult.h>
|
|
#include <aws/core/utils/json/JsonSerializer.h>
|
|
#include <aws/core/AmazonWebServiceResult.h>
|
|
#include <aws/core/utils/StringUtils.h>
|
|
#include <aws/core/utils/UnreferencedParam.h>
|
|
|
|
#include <utility>
|
|
|
|
using namespace Aws::PI::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
using namespace Aws;
|
|
|
|
DescribeDimensionKeysResult::DescribeDimensionKeysResult()
|
|
{
|
|
}
|
|
|
|
DescribeDimensionKeysResult::DescribeDimensionKeysResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
|
|
{
|
|
*this = result;
|
|
}
|
|
|
|
DescribeDimensionKeysResult& DescribeDimensionKeysResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
|
|
{
|
|
JsonView jsonValue = result.GetPayload().View();
|
|
if(jsonValue.ValueExists("AlignedStartTime"))
|
|
{
|
|
m_alignedStartTime = jsonValue.GetDouble("AlignedStartTime");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("AlignedEndTime"))
|
|
{
|
|
m_alignedEndTime = jsonValue.GetDouble("AlignedEndTime");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("PartitionKeys"))
|
|
{
|
|
Array<JsonView> partitionKeysJsonList = jsonValue.GetArray("PartitionKeys");
|
|
for(unsigned partitionKeysIndex = 0; partitionKeysIndex < partitionKeysJsonList.GetLength(); ++partitionKeysIndex)
|
|
{
|
|
m_partitionKeys.push_back(partitionKeysJsonList[partitionKeysIndex].AsObject());
|
|
}
|
|
}
|
|
|
|
if(jsonValue.ValueExists("Keys"))
|
|
{
|
|
Array<JsonView> keysJsonList = jsonValue.GetArray("Keys");
|
|
for(unsigned keysIndex = 0; keysIndex < keysJsonList.GetLength(); ++keysIndex)
|
|
{
|
|
m_keys.push_back(keysJsonList[keysIndex].AsObject());
|
|
}
|
|
}
|
|
|
|
if(jsonValue.ValueExists("NextToken"))
|
|
{
|
|
m_nextToken = jsonValue.GetString("NextToken");
|
|
|
|
}
|
|
|
|
|
|
|
|
return *this;
|
|
}
|