/** * 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 DevOpsGuru { namespace Model { NotificationChannelConfig::NotificationChannelConfig() : m_snsHasBeenSet(false), m_filtersHasBeenSet(false) { } NotificationChannelConfig::NotificationChannelConfig(JsonView jsonValue) : m_snsHasBeenSet(false), m_filtersHasBeenSet(false) { *this = jsonValue; } NotificationChannelConfig& NotificationChannelConfig::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("Sns")) { m_sns = jsonValue.GetObject("Sns"); m_snsHasBeenSet = true; } if(jsonValue.ValueExists("Filters")) { m_filters = jsonValue.GetObject("Filters"); m_filtersHasBeenSet = true; } return *this; } JsonValue NotificationChannelConfig::Jsonize() const { JsonValue payload; if(m_snsHasBeenSet) { payload.WithObject("Sns", m_sns.Jsonize()); } if(m_filtersHasBeenSet) { payload.WithObject("Filters", m_filters.Jsonize()); } return payload; } } // namespace Model } // namespace DevOpsGuru } // namespace Aws