/** * 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 PinpointSMSVoiceV2 { namespace Model { SnsDestination::SnsDestination() : m_topicArnHasBeenSet(false) { } SnsDestination::SnsDestination(JsonView jsonValue) : m_topicArnHasBeenSet(false) { *this = jsonValue; } SnsDestination& SnsDestination::operator =(JsonView jsonValue) { if(jsonValue.ValueExists("TopicArn")) { m_topicArn = jsonValue.GetString("TopicArn"); m_topicArnHasBeenSet = true; } return *this; } JsonValue SnsDestination::Jsonize() const { JsonValue payload; if(m_topicArnHasBeenSet) { payload.WithString("TopicArn", m_topicArn); } return payload; } } // namespace Model } // namespace PinpointSMSVoiceV2 } // namespace Aws