/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A wrapper type for the attributes of an Amazon SNS
* subscription.See Also:
AWS
* API Reference
The subscription's ARN.
*/ inline const Aws::String& GetSubscriptionArn() const{ return m_subscriptionArn; } /** *The subscription's ARN.
*/ inline bool SubscriptionArnHasBeenSet() const { return m_subscriptionArnHasBeenSet; } /** *The subscription's ARN.
*/ inline void SetSubscriptionArn(const Aws::String& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = value; } /** *The subscription's ARN.
*/ inline void SetSubscriptionArn(Aws::String&& value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn = std::move(value); } /** *The subscription's ARN.
*/ inline void SetSubscriptionArn(const char* value) { m_subscriptionArnHasBeenSet = true; m_subscriptionArn.assign(value); } /** *The subscription's ARN.
*/ inline Subscription& WithSubscriptionArn(const Aws::String& value) { SetSubscriptionArn(value); return *this;} /** *The subscription's ARN.
*/ inline Subscription& WithSubscriptionArn(Aws::String&& value) { SetSubscriptionArn(std::move(value)); return *this;} /** *The subscription's ARN.
*/ inline Subscription& WithSubscriptionArn(const char* value) { SetSubscriptionArn(value); return *this;} /** *The subscription's owner.
*/ inline const Aws::String& GetOwner() const{ return m_owner; } /** *The subscription's owner.
*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *The subscription's owner.
*/ inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *The subscription's owner.
*/ inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *The subscription's owner.
*/ inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); } /** *The subscription's owner.
*/ inline Subscription& WithOwner(const Aws::String& value) { SetOwner(value); return *this;} /** *The subscription's owner.
*/ inline Subscription& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;} /** *The subscription's owner.
*/ inline Subscription& WithOwner(const char* value) { SetOwner(value); return *this;} /** *The subscription's protocol.
*/ inline const Aws::String& GetProtocol() const{ return m_protocol; } /** *The subscription's protocol.
*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *The subscription's protocol.
*/ inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *The subscription's protocol.
*/ inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *The subscription's protocol.
*/ inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); } /** *The subscription's protocol.
*/ inline Subscription& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;} /** *The subscription's protocol.
*/ inline Subscription& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;} /** *The subscription's protocol.
*/ inline Subscription& WithProtocol(const char* value) { SetProtocol(value); return *this;} /** *The subscription's endpoint (format depends on the protocol).
*/ inline const Aws::String& GetEndpoint() const{ return m_endpoint; } /** *The subscription's endpoint (format depends on the protocol).
*/ inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; } /** *The subscription's endpoint (format depends on the protocol).
*/ inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; } /** *The subscription's endpoint (format depends on the protocol).
*/ inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); } /** *The subscription's endpoint (format depends on the protocol).
*/ inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); } /** *The subscription's endpoint (format depends on the protocol).
*/ inline Subscription& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;} /** *The subscription's endpoint (format depends on the protocol).
*/ inline Subscription& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;} /** *The subscription's endpoint (format depends on the protocol).
*/ inline Subscription& WithEndpoint(const char* value) { SetEndpoint(value); return *this;} /** *The ARN of the subscription's topic.
*/ inline const Aws::String& GetTopicArn() const{ return m_topicArn; } /** *The ARN of the subscription's topic.
*/ inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; } /** *The ARN of the subscription's topic.
*/ inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; } /** *The ARN of the subscription's topic.
*/ inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); } /** *The ARN of the subscription's topic.
*/ inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); } /** *The ARN of the subscription's topic.
*/ inline Subscription& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;} /** *The ARN of the subscription's topic.
*/ inline Subscription& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;} /** *The ARN of the subscription's topic.
*/ inline Subscription& WithTopicArn(const char* value) { SetTopicArn(value); return *this;} private: Aws::String m_subscriptionArn; bool m_subscriptionArnHasBeenSet = false; Aws::String m_owner; bool m_ownerHasBeenSet = false; Aws::String m_protocol; bool m_protocolHasBeenSet = false; Aws::String m_endpoint; bool m_endpointHasBeenSet = false; Aws::String m_topicArn; bool m_topicArnHasBeenSet = false; }; } // namespace Model } // namespace SNS } // namespace Aws