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