/** * 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 IoT { namespace Model { TopicRuleDestinationConfiguration::TopicRuleDestinationConfiguration() : m_httpUrlConfigurationHasBeenSet(false), m_vpcConfigurationHasBeenSet(false) { } TopicRuleDestinationConfiguration::TopicRuleDestinationConfiguration(JsonView jsonValue) : m_httpUrlConfigurationHasBeenSet(false), m_vpcConfigurationHasBeenSet(false) { *this = jsonValue; } TopicRuleDestinationConfiguration& TopicRuleDestinationConfiguration::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("httpUrlConfiguration")) { m_httpUrlConfiguration = jsonValue.GetObject("httpUrlConfiguration"); m_httpUrlConfigurationHasBeenSet = true; } if(jsonValue.ValueExists("vpcConfiguration")) { m_vpcConfiguration = jsonValue.GetObject("vpcConfiguration"); m_vpcConfigurationHasBeenSet = true; } return *this; } JsonValue TopicRuleDestinationConfiguration::Jsonize() const { JsonValue payload; if(m_httpUrlConfigurationHasBeenSet) { payload.WithObject("httpUrlConfiguration", m_httpUrlConfiguration.Jsonize()); } if(m_vpcConfigurationHasBeenSet) { payload.WithObject("vpcConfiguration", m_vpcConfiguration.Jsonize()); } return payload; } } // namespace Model } // namespace IoT } // namespace Aws