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

Describes a subscription.

See Also:

AWS * API Reference

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

The ID of the subscription.

*/ inline const Aws::String& GetSubscriptionId() const{ return m_subscriptionId; } /** *

The ID of the subscription.

*/ inline bool SubscriptionIdHasBeenSet() const { return m_subscriptionIdHasBeenSet; } /** *

The ID of the subscription.

*/ inline void SetSubscriptionId(const Aws::String& value) { m_subscriptionIdHasBeenSet = true; m_subscriptionId = value; } /** *

The ID of the subscription.

*/ inline void SetSubscriptionId(Aws::String&& value) { m_subscriptionIdHasBeenSet = true; m_subscriptionId = std::move(value); } /** *

The ID of the subscription.

*/ inline void SetSubscriptionId(const char* value) { m_subscriptionIdHasBeenSet = true; m_subscriptionId.assign(value); } /** *

The ID of the subscription.

*/ inline Subscription& WithSubscriptionId(const Aws::String& value) { SetSubscriptionId(value); return *this;} /** *

The ID of the subscription.

*/ inline Subscription& WithSubscriptionId(Aws::String&& value) { SetSubscriptionId(std::move(value)); return *this;} /** *

The ID of the subscription.

*/ inline Subscription& WithSubscriptionId(const char* value) { SetSubscriptionId(value); return *this;} /** *

The endpoint of the subscription.

*/ inline const Aws::String& GetEndPoint() const{ return m_endPoint; } /** *

The endpoint of the subscription.

*/ inline bool EndPointHasBeenSet() const { return m_endPointHasBeenSet; } /** *

The endpoint of the subscription.

*/ inline void SetEndPoint(const Aws::String& value) { m_endPointHasBeenSet = true; m_endPoint = value; } /** *

The endpoint of the subscription.

*/ inline void SetEndPoint(Aws::String&& value) { m_endPointHasBeenSet = true; m_endPoint = std::move(value); } /** *

The endpoint of the subscription.

*/ inline void SetEndPoint(const char* value) { m_endPointHasBeenSet = true; m_endPoint.assign(value); } /** *

The endpoint of the subscription.

*/ inline Subscription& WithEndPoint(const Aws::String& value) { SetEndPoint(value); return *this;} /** *

The endpoint of the subscription.

*/ inline Subscription& WithEndPoint(Aws::String&& value) { SetEndPoint(std::move(value)); return *this;} /** *

The endpoint of the subscription.

*/ inline Subscription& WithEndPoint(const char* value) { SetEndPoint(value); return *this;} /** *

The protocol of the subscription.

*/ inline const SubscriptionProtocolType& GetProtocol() const{ return m_protocol; } /** *

The protocol of the subscription.

*/ inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; } /** *

The protocol of the subscription.

*/ inline void SetProtocol(const SubscriptionProtocolType& value) { m_protocolHasBeenSet = true; m_protocol = value; } /** *

The protocol of the subscription.

*/ inline void SetProtocol(SubscriptionProtocolType&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); } /** *

The protocol of the subscription.

*/ inline Subscription& WithProtocol(const SubscriptionProtocolType& value) { SetProtocol(value); return *this;} /** *

The protocol of the subscription.

*/ inline Subscription& WithProtocol(SubscriptionProtocolType&& value) { SetProtocol(std::move(value)); return *this;} private: Aws::String m_subscriptionId; bool m_subscriptionIdHasBeenSet = false; Aws::String m_endPoint; bool m_endPointHasBeenSet = false; SubscriptionProtocolType m_protocol; bool m_protocolHasBeenSet = false; }; } // namespace Model } // namespace WorkDocs } // namespace Aws