/** * 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 CloudWatchEvidently { namespace Model { LaunchGroupConfig::LaunchGroupConfig() : m_descriptionHasBeenSet(false), m_featureHasBeenSet(false), m_nameHasBeenSet(false), m_variationHasBeenSet(false) { } LaunchGroupConfig::LaunchGroupConfig(JsonView jsonValue) : m_descriptionHasBeenSet(false), m_featureHasBeenSet(false), m_nameHasBeenSet(false), m_variationHasBeenSet(false) { *this = jsonValue; } LaunchGroupConfig& LaunchGroupConfig::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("description")) { m_description = jsonValue.GetString("description"); m_descriptionHasBeenSet = true; } if(jsonValue.ValueExists("feature")) { m_feature = jsonValue.GetString("feature"); m_featureHasBeenSet = true; } if(jsonValue.ValueExists("name")) { m_name = jsonValue.GetString("name"); m_nameHasBeenSet = true; } if(jsonValue.ValueExists("variation")) { m_variation = jsonValue.GetString("variation"); m_variationHasBeenSet = true; } return *this; } JsonValue LaunchGroupConfig::Jsonize() const { JsonValue payload; if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); } if(m_featureHasBeenSet) { payload.WithString("feature", m_feature); } if(m_nameHasBeenSet) { payload.WithString("name", m_name); } if(m_variationHasBeenSet) { payload.WithString("variation", m_variation); } return payload; } } // namespace Model } // namespace CloudWatchEvidently } // namespace Aws