/** * 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 Connect { namespace Model { EvaluationFormSummary::EvaluationFormSummary() : m_evaluationFormIdHasBeenSet(false), m_evaluationFormArnHasBeenSet(false), m_titleHasBeenSet(false), m_createdTimeHasBeenSet(false), m_createdByHasBeenSet(false), m_lastModifiedTimeHasBeenSet(false), m_lastModifiedByHasBeenSet(false), m_lastActivatedTimeHasBeenSet(false), m_lastActivatedByHasBeenSet(false), m_latestVersion(0), m_latestVersionHasBeenSet(false), m_activeVersion(0), m_activeVersionHasBeenSet(false) { } EvaluationFormSummary::EvaluationFormSummary(JsonView jsonValue) : m_evaluationFormIdHasBeenSet(false), m_evaluationFormArnHasBeenSet(false), m_titleHasBeenSet(false), m_createdTimeHasBeenSet(false), m_createdByHasBeenSet(false), m_lastModifiedTimeHasBeenSet(false), m_lastModifiedByHasBeenSet(false), m_lastActivatedTimeHasBeenSet(false), m_lastActivatedByHasBeenSet(false), m_latestVersion(0), m_latestVersionHasBeenSet(false), m_activeVersion(0), m_activeVersionHasBeenSet(false) { *this = jsonValue; } EvaluationFormSummary& EvaluationFormSummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("EvaluationFormId")) { m_evaluationFormId = jsonValue.GetString("EvaluationFormId"); m_evaluationFormIdHasBeenSet = true; } if(jsonValue.ValueExists("EvaluationFormArn")) { m_evaluationFormArn = jsonValue.GetString("EvaluationFormArn"); m_evaluationFormArnHasBeenSet = true; } if(jsonValue.ValueExists("Title")) { m_title = jsonValue.GetString("Title"); m_titleHasBeenSet = true; } if(jsonValue.ValueExists("CreatedTime")) { m_createdTime = jsonValue.GetDouble("CreatedTime"); m_createdTimeHasBeenSet = true; } if(jsonValue.ValueExists("CreatedBy")) { m_createdBy = jsonValue.GetString("CreatedBy"); m_createdByHasBeenSet = true; } if(jsonValue.ValueExists("LastModifiedTime")) { m_lastModifiedTime = jsonValue.GetDouble("LastModifiedTime"); m_lastModifiedTimeHasBeenSet = true; } if(jsonValue.ValueExists("LastModifiedBy")) { m_lastModifiedBy = jsonValue.GetString("LastModifiedBy"); m_lastModifiedByHasBeenSet = true; } if(jsonValue.ValueExists("LastActivatedTime")) { m_lastActivatedTime = jsonValue.GetDouble("LastActivatedTime"); m_lastActivatedTimeHasBeenSet = true; } if(jsonValue.ValueExists("LastActivatedBy")) { m_lastActivatedBy = jsonValue.GetString("LastActivatedBy"); m_lastActivatedByHasBeenSet = true; } if(jsonValue.ValueExists("LatestVersion")) { m_latestVersion = jsonValue.GetInteger("LatestVersion"); m_latestVersionHasBeenSet = true; } if(jsonValue.ValueExists("ActiveVersion")) { m_activeVersion = jsonValue.GetInteger("ActiveVersion"); m_activeVersionHasBeenSet = true; } return *this; } JsonValue EvaluationFormSummary::Jsonize() const { JsonValue payload; if(m_evaluationFormIdHasBeenSet) { payload.WithString("EvaluationFormId", m_evaluationFormId); } if(m_evaluationFormArnHasBeenSet) { payload.WithString("EvaluationFormArn", m_evaluationFormArn); } if(m_titleHasBeenSet) { payload.WithString("Title", m_title); } if(m_createdTimeHasBeenSet) { payload.WithDouble("CreatedTime", m_createdTime.SecondsWithMSPrecision()); } if(m_createdByHasBeenSet) { payload.WithString("CreatedBy", m_createdBy); } if(m_lastModifiedTimeHasBeenSet) { payload.WithDouble("LastModifiedTime", m_lastModifiedTime.SecondsWithMSPrecision()); } if(m_lastModifiedByHasBeenSet) { payload.WithString("LastModifiedBy", m_lastModifiedBy); } if(m_lastActivatedTimeHasBeenSet) { payload.WithDouble("LastActivatedTime", m_lastActivatedTime.SecondsWithMSPrecision()); } if(m_lastActivatedByHasBeenSet) { payload.WithString("LastActivatedBy", m_lastActivatedBy); } if(m_latestVersionHasBeenSet) { payload.WithInteger("LatestVersion", m_latestVersion); } if(m_activeVersionHasBeenSet) { payload.WithInteger("ActiveVersion", m_activeVersion); } return payload; } } // namespace Model } // namespace Connect } // namespace Aws