AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Subscription.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/workdocs/model/SubscriptionProtocolType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace WorkDocs
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_WORKDOCS_API Subscription();
36 AWS_WORKDOCS_API Subscription(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetSubscriptionId() const{ return m_subscriptionId; }
46 inline bool SubscriptionIdHasBeenSet() const { return m_subscriptionIdHasBeenSet; }
47 inline void SetSubscriptionId(const Aws::String& value) { m_subscriptionIdHasBeenSet = true; m_subscriptionId = value; }
48 inline void SetSubscriptionId(Aws::String&& value) { m_subscriptionIdHasBeenSet = true; m_subscriptionId = std::move(value); }
49 inline void SetSubscriptionId(const char* value) { m_subscriptionIdHasBeenSet = true; m_subscriptionId.assign(value); }
50 inline Subscription& WithSubscriptionId(const Aws::String& value) { SetSubscriptionId(value); return *this;}
51 inline Subscription& WithSubscriptionId(Aws::String&& value) { SetSubscriptionId(std::move(value)); return *this;}
52 inline Subscription& WithSubscriptionId(const char* value) { SetSubscriptionId(value); return *this;}
54
56
59 inline const Aws::String& GetEndPoint() const{ return m_endPoint; }
60 inline bool EndPointHasBeenSet() const { return m_endPointHasBeenSet; }
61 inline void SetEndPoint(const Aws::String& value) { m_endPointHasBeenSet = true; m_endPoint = value; }
62 inline void SetEndPoint(Aws::String&& value) { m_endPointHasBeenSet = true; m_endPoint = std::move(value); }
63 inline void SetEndPoint(const char* value) { m_endPointHasBeenSet = true; m_endPoint.assign(value); }
64 inline Subscription& WithEndPoint(const Aws::String& value) { SetEndPoint(value); return *this;}
65 inline Subscription& WithEndPoint(Aws::String&& value) { SetEndPoint(std::move(value)); return *this;}
66 inline Subscription& WithEndPoint(const char* value) { SetEndPoint(value); return *this;}
68
70
73 inline const SubscriptionProtocolType& GetProtocol() const{ return m_protocol; }
74 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
75 inline void SetProtocol(const SubscriptionProtocolType& value) { m_protocolHasBeenSet = true; m_protocol = value; }
76 inline void SetProtocol(SubscriptionProtocolType&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
77 inline Subscription& WithProtocol(const SubscriptionProtocolType& value) { SetProtocol(value); return *this;}
78 inline Subscription& WithProtocol(SubscriptionProtocolType&& value) { SetProtocol(std::move(value)); return *this;}
80 private:
81
82 Aws::String m_subscriptionId;
83 bool m_subscriptionIdHasBeenSet = false;
84
85 Aws::String m_endPoint;
86 bool m_endPointHasBeenSet = false;
87
88 SubscriptionProtocolType m_protocol;
89 bool m_protocolHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace WorkDocs
94} // namespace Aws
Subscription & WithProtocol(const SubscriptionProtocolType &value)
void SetEndPoint(Aws::String &&value)
void SetProtocol(const SubscriptionProtocolType &value)
void SetSubscriptionId(const char *value)
Subscription & WithEndPoint(const Aws::String &value)
AWS_WORKDOCS_API Subscription & operator=(Aws::Utils::Json::JsonView jsonValue)
Subscription & WithProtocol(SubscriptionProtocolType &&value)
const Aws::String & GetSubscriptionId() const
Subscription & WithSubscriptionId(Aws::String &&value)
Subscription & WithEndPoint(Aws::String &&value)
void SetSubscriptionId(const Aws::String &value)
void SetSubscriptionId(Aws::String &&value)
Subscription & WithEndPoint(const char *value)
void SetEndPoint(const Aws::String &value)
void SetProtocol(SubscriptionProtocolType &&value)
Subscription & WithSubscriptionId(const Aws::String &value)
const Aws::String & GetEndPoint() const
void SetEndPoint(const char *value)
Subscription & WithSubscriptionId(const char *value)
const SubscriptionProtocolType & GetProtocol() const
AWS_WORKDOCS_API Subscription(Aws::Utils::Json::JsonView jsonValue)
AWS_WORKDOCS_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue