/** * 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 Chime { namespace Model { ArtifactsConfiguration::ArtifactsConfiguration() : m_audioHasBeenSet(false), m_videoHasBeenSet(false), m_contentHasBeenSet(false) { } ArtifactsConfiguration::ArtifactsConfiguration(JsonView jsonValue) : m_audioHasBeenSet(false), m_videoHasBeenSet(false), m_contentHasBeenSet(false) { *this = jsonValue; } ArtifactsConfiguration& ArtifactsConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Audio")) { m_audio = jsonValue.GetObject("Audio"); m_audioHasBeenSet = true; } if(jsonValue.ValueExists("Video")) { m_video = jsonValue.GetObject("Video"); m_videoHasBeenSet = true; } if(jsonValue.ValueExists("Content")) { m_content = jsonValue.GetObject("Content"); m_contentHasBeenSet = true; } return *this; } JsonValue ArtifactsConfiguration::Jsonize() const { JsonValue payload; if(m_audioHasBeenSet) { payload.WithObject("Audio", m_audio.Jsonize()); } if(m_videoHasBeenSet) { payload.WithObject("Video", m_video.Jsonize()); } if(m_contentHasBeenSet) { payload.WithObject("Content", m_content.Jsonize()); } return payload; } } // namespace Model } // namespace Chime } // namespace Aws