/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include 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