/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

A wrapper type for the attributes of an Amazon SNS * subscription.

See Also:

AWS * API Reference

*/ class AwsSnsTopicSubscription { public: AWS_SECURITYHUB_API AwsSnsTopicSubscription(); AWS_SECURITYHUB_API AwsSnsTopicSubscription(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsSnsTopicSubscription& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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 AwsSnsTopicSubscription& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;} /** *

The subscription's endpoint (format depends on the protocol).

*/ inline AwsSnsTopicSubscription& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;} /** *

The subscription's endpoint (format depends on the protocol).

*/ inline AwsSnsTopicSubscription& WithEndpoint(const char* value) { SetEndpoint(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 AwsSnsTopicSubscription& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;} /** *

The subscription's protocol.

*/ inline AwsSnsTopicSubscription& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;} /** *

The subscription's protocol.

*/ inline AwsSnsTopicSubscription& WithProtocol(const char* value) { SetProtocol(value); return *this;} private: Aws::String m_endpoint; bool m_endpointHasBeenSet = false; Aws::String m_protocol; bool m_protocolHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws