/** * 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 { BodySectionConfiguration::BodySectionConfiguration() : m_sectionIdHasBeenSet(false), m_contentHasBeenSet(false), m_styleHasBeenSet(false), m_pageBreakConfigurationHasBeenSet(false) { } BodySectionConfiguration::BodySectionConfiguration(JsonView jsonValue) : m_sectionIdHasBeenSet(false), m_contentHasBeenSet(false), m_styleHasBeenSet(false), m_pageBreakConfigurationHasBeenSet(false) { *this = jsonValue; } BodySectionConfiguration& BodySectionConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("SectionId")) { m_sectionId = jsonValue.GetString("SectionId"); m_sectionIdHasBeenSet = true; } if(jsonValue.ValueExists("Content")) { m_content = jsonValue.GetObject("Content"); m_contentHasBeenSet = true; } if(jsonValue.ValueExists("Style")) { m_style = jsonValue.GetObject("Style"); m_styleHasBeenSet = true; } if(jsonValue.ValueExists("PageBreakConfiguration")) { m_pageBreakConfiguration = jsonValue.GetObject("PageBreakConfiguration"); m_pageBreakConfigurationHasBeenSet = true; } return *this; } JsonValue BodySectionConfiguration::Jsonize() const { JsonValue payload; if(m_sectionIdHasBeenSet) { payload.WithString("SectionId", m_sectionId); } if(m_contentHasBeenSet) { payload.WithObject("Content", m_content.Jsonize()); } if(m_styleHasBeenSet) { payload.WithObject("Style", m_style.Jsonize()); } if(m_pageBreakConfigurationHasBeenSet) { payload.WithObject("PageBreakConfiguration", m_pageBreakConfiguration.Jsonize()); } return payload; } } // namespace Model } // namespace QuickSight } // namespace Aws