/** * 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 ConfigService { namespace Model { ConformancePackComplianceScore::ConformancePackComplianceScore() : m_scoreHasBeenSet(false), m_conformancePackNameHasBeenSet(false), m_lastUpdatedTimeHasBeenSet(false) { } ConformancePackComplianceScore::ConformancePackComplianceScore(JsonView jsonValue) : m_scoreHasBeenSet(false), m_conformancePackNameHasBeenSet(false), m_lastUpdatedTimeHasBeenSet(false) { *this = jsonValue; } ConformancePackComplianceScore& ConformancePackComplianceScore::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Score")) { m_score = jsonValue.GetString("Score"); m_scoreHasBeenSet = true; } if(jsonValue.ValueExists("ConformancePackName")) { m_conformancePackName = jsonValue.GetString("ConformancePackName"); m_conformancePackNameHasBeenSet = true; } if(jsonValue.ValueExists("LastUpdatedTime")) { m_lastUpdatedTime = jsonValue.GetDouble("LastUpdatedTime"); m_lastUpdatedTimeHasBeenSet = true; } return *this; } JsonValue ConformancePackComplianceScore::Jsonize() const { JsonValue payload; if(m_scoreHasBeenSet) { payload.WithString("Score", m_score); } if(m_conformancePackNameHasBeenSet) { payload.WithString("ConformancePackName", m_conformancePackName); } if(m_lastUpdatedTimeHasBeenSet) { payload.WithDouble("LastUpdatedTime", m_lastUpdatedTime.SecondsWithMSPrecision()); } return payload; } } // namespace Model } // namespace ConfigService } // namespace Aws