65 lines
1.4 KiB
C++
65 lines
1.4 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#include <aws/cloudhsm/model/DescribeLunaClientResult.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::CloudHSM::Model;
|
|
using namespace Aws::Utils::Json;
|
|
using namespace Aws::Utils;
|
|
using namespace Aws;
|
|
|
|
DescribeLunaClientResult::DescribeLunaClientResult()
|
|
{
|
|
}
|
|
|
|
DescribeLunaClientResult::DescribeLunaClientResult(const Aws::AmazonWebServiceResult<JsonValue>& result)
|
|
{
|
|
*this = result;
|
|
}
|
|
|
|
DescribeLunaClientResult& DescribeLunaClientResult::operator =(const Aws::AmazonWebServiceResult<JsonValue>& result)
|
|
{
|
|
JsonView jsonValue = result.GetPayload().View();
|
|
if(jsonValue.ValueExists("ClientArn"))
|
|
{
|
|
m_clientArn = jsonValue.GetString("ClientArn");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("Certificate"))
|
|
{
|
|
m_certificate = jsonValue.GetString("Certificate");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("CertificateFingerprint"))
|
|
{
|
|
m_certificateFingerprint = jsonValue.GetString("CertificateFingerprint");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("LastModifiedTimestamp"))
|
|
{
|
|
m_lastModifiedTimestamp = jsonValue.GetString("LastModifiedTimestamp");
|
|
|
|
}
|
|
|
|
if(jsonValue.ValueExists("Label"))
|
|
{
|
|
m_label = jsonValue.GetString("Label");
|
|
|
|
}
|
|
|
|
|
|
|
|
return *this;
|
|
}
|