/** * 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 { LongFormatText::LongFormatText() : m_plainTextHasBeenSet(false), m_richTextHasBeenSet(false) { } LongFormatText::LongFormatText(JsonView jsonValue) : m_plainTextHasBeenSet(false), m_richTextHasBeenSet(false) { *this = jsonValue; } LongFormatText& LongFormatText::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("PlainText")) { m_plainText = jsonValue.GetString("PlainText"); m_plainTextHasBeenSet = true; } if(jsonValue.ValueExists("RichText")) { m_richText = jsonValue.GetString("RichText"); m_richTextHasBeenSet = true; } return *this; } JsonValue LongFormatText::Jsonize() const { JsonValue payload; if(m_plainTextHasBeenSet) { payload.WithString("PlainText", m_plainText); } if(m_richTextHasBeenSet) { payload.WithString("RichText", m_richText); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws