/** * 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 QuickSight { namespace Model { TextConditionalFormat::TextConditionalFormat() : m_backgroundColorHasBeenSet(false), m_textColorHasBeenSet(false), m_iconHasBeenSet(false) { } TextConditionalFormat::TextConditionalFormat(JsonView jsonValue) : m_backgroundColorHasBeenSet(false), m_textColorHasBeenSet(false), m_iconHasBeenSet(false) { *this = jsonValue; } TextConditionalFormat& TextConditionalFormat::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("BackgroundColor")) { m_backgroundColor = jsonValue.GetObject("BackgroundColor"); m_backgroundColorHasBeenSet = true; } if(jsonValue.ValueExists("TextColor")) { m_textColor = jsonValue.GetObject("TextColor"); m_textColorHasBeenSet = true; } if(jsonValue.ValueExists("Icon")) { m_icon = jsonValue.GetObject("Icon"); m_iconHasBeenSet = true; } return *this; } JsonValue TextConditionalFormat::Jsonize() const { JsonValue payload; if(m_backgroundColorHasBeenSet) { payload.WithObject("BackgroundColor", m_backgroundColor.Jsonize()); } if(m_textColorHasBeenSet) { payload.WithObject("TextColor", m_textColor.Jsonize()); } if(m_iconHasBeenSet) { payload.WithObject("Icon", m_icon.Jsonize()); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws