This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-support/source/model/TrustedAdvisorCheckRefreshStatus.cpp

92 lines
1.9 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/support/model/TrustedAdvisorCheckRefreshStatus.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespace Support
{
namespace Model
{
TrustedAdvisorCheckRefreshStatus::TrustedAdvisorCheckRefreshStatus() :
m_checkIdHasBeenSet(false),
m_statusHasBeenSet(false),
m_millisUntilNextRefreshable(0),
m_millisUntilNextRefreshableHasBeenSet(false)
{
}
TrustedAdvisorCheckRefreshStatus::TrustedAdvisorCheckRefreshStatus(JsonView jsonValue) :
m_checkIdHasBeenSet(false),
m_statusHasBeenSet(false),
m_millisUntilNextRefreshable(0),
m_millisUntilNextRefreshableHasBeenSet(false)
{
*this = jsonValue;
}
TrustedAdvisorCheckRefreshStatus& TrustedAdvisorCheckRefreshStatus::operator =(JsonView jsonValue)
{
if(jsonValue.ValueExists("checkId"))
{
m_checkId = jsonValue.GetString("checkId");
m_checkIdHasBeenSet = true;
}
if(jsonValue.ValueExists("status"))
{
m_status = jsonValue.GetString("status");
m_statusHasBeenSet = true;
}
if(jsonValue.ValueExists("millisUntilNextRefreshable"))
{
m_millisUntilNextRefreshable = jsonValue.GetInt64("millisUntilNextRefreshable");
m_millisUntilNextRefreshableHasBeenSet = true;
}
return *this;
}
JsonValue TrustedAdvisorCheckRefreshStatus::Jsonize() const
{
JsonValue payload;
if(m_checkIdHasBeenSet)
{
payload.WithString("checkId", m_checkId);
}
if(m_statusHasBeenSet)
{
payload.WithString("status", m_status);
}
if(m_millisUntilNextRefreshableHasBeenSet)
{
payload.WithInt64("millisUntilNextRefreshable", m_millisUntilNextRefreshable);
}
return payload;
}
} // namespace Model
} // namespace Support
} // namespace Aws