/** * 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 CleanRooms { namespace Model { ConfiguredTableAssociationSummary::ConfiguredTableAssociationSummary() : m_configuredTableIdHasBeenSet(false), m_membershipIdHasBeenSet(false), m_membershipArnHasBeenSet(false), m_nameHasBeenSet(false), m_createTimeHasBeenSet(false), m_updateTimeHasBeenSet(false), m_idHasBeenSet(false), m_arnHasBeenSet(false) { } ConfiguredTableAssociationSummary::ConfiguredTableAssociationSummary(JsonView jsonValue) : m_configuredTableIdHasBeenSet(false), m_membershipIdHasBeenSet(false), m_membershipArnHasBeenSet(false), m_nameHasBeenSet(false), m_createTimeHasBeenSet(false), m_updateTimeHasBeenSet(false), m_idHasBeenSet(false), m_arnHasBeenSet(false) { *this = jsonValue; } ConfiguredTableAssociationSummary& ConfiguredTableAssociationSummary::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("configuredTableId")) { m_configuredTableId = jsonValue.GetString("configuredTableId"); m_configuredTableIdHasBeenSet = true; } if(jsonValue.ValueExists("membershipId")) { m_membershipId = jsonValue.GetString("membershipId"); m_membershipIdHasBeenSet = true; } if(jsonValue.ValueExists("membershipArn")) { m_membershipArn = jsonValue.GetString("membershipArn"); m_membershipArnHasBeenSet = true; } if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("createTime")) { m_createTime = jsonValue.GetDouble("createTime"); m_createTimeHasBeenSet = true; } if(jsonValue.ValueExists("updateTime")) { m_updateTime = jsonValue.GetDouble("updateTime"); m_updateTimeHasBeenSet = true; } if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); m_idHasBeenSet = true; } if(jsonValue.ValueExists("arn")) { m_arn = jsonValue.GetString("arn"); m_arnHasBeenSet = true; } return *this; } JsonValue ConfiguredTableAssociationSummary::Jsonize() const { JsonValue payload; if(m_configuredTableIdHasBeenSet) { payload.WithString("configuredTableId", m_configuredTableId); } if(m_membershipIdHasBeenSet) { payload.WithString("membershipId", m_membershipId); } if(m_membershipArnHasBeenSet) { payload.WithString("membershipArn", m_membershipArn); } if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_createTimeHasBeenSet) { payload.WithDouble("createTime", m_createTime.SecondsWithMSPrecision()); } if(m_updateTimeHasBeenSet) { payload.WithDouble("updateTime", m_updateTime.SecondsWithMSPrecision()); } if(m_idHasBeenSet) { payload.WithString("id", m_id); } if(m_arnHasBeenSet) { payload.WithString("arn", m_arn); } return payload; } } // namespace Model } // namespace CleanRooms } // namespace Aws