AWS SDK for C++  1.9.17
AWS SDK for C++
CreateNotificationSubscriptionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace WorkDocs
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateNotificationSubscription"; }
33 
34  Aws::String SerializePayload() const override;
35 
36 
40  inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
41 
45  inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
46 
50  inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
51 
55  inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
56 
60  inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
61 
65  inline CreateNotificationSubscriptionRequest& WithOrganizationId(const Aws::String& value) { SetOrganizationId(value); return *this;}
66 
70  inline CreateNotificationSubscriptionRequest& WithOrganizationId(Aws::String&& value) { SetOrganizationId(std::move(value)); return *this;}
71 
75  inline CreateNotificationSubscriptionRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
76 
77 
82  inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
83 
88  inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
89 
94  inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
95 
100  inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
101 
106  inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
107 
112  inline CreateNotificationSubscriptionRequest& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
113 
118  inline CreateNotificationSubscriptionRequest& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
119 
124  inline CreateNotificationSubscriptionRequest& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
125 
126 
131  inline const SubscriptionProtocolType& GetProtocol() const{ return m_protocol; }
132 
137  inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
138 
143  inline void SetProtocol(const SubscriptionProtocolType& value) { m_protocolHasBeenSet = true; m_protocol = value; }
144 
149  inline void SetProtocol(SubscriptionProtocolType&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
150 
155  inline CreateNotificationSubscriptionRequest& WithProtocol(const SubscriptionProtocolType& value) { SetProtocol(value); return *this;}
156 
161  inline CreateNotificationSubscriptionRequest& WithProtocol(SubscriptionProtocolType&& value) { SetProtocol(std::move(value)); return *this;}
162 
163 
167  inline const SubscriptionType& GetSubscriptionType() const{ return m_subscriptionType; }
168 
172  inline bool SubscriptionTypeHasBeenSet() const { return m_subscriptionTypeHasBeenSet; }
173 
177  inline void SetSubscriptionType(const SubscriptionType& value) { m_subscriptionTypeHasBeenSet = true; m_subscriptionType = value; }
178 
182  inline void SetSubscriptionType(SubscriptionType&& value) { m_subscriptionTypeHasBeenSet = true; m_subscriptionType = std::move(value); }
183 
187  inline CreateNotificationSubscriptionRequest& WithSubscriptionType(const SubscriptionType& value) { SetSubscriptionType(value); return *this;}
188 
192  inline CreateNotificationSubscriptionRequest& WithSubscriptionType(SubscriptionType&& value) { SetSubscriptionType(std::move(value)); return *this;}
193 
194  private:
195 
196  Aws::String m_organizationId;
197  bool m_organizationIdHasBeenSet;
198 
199  Aws::String m_endpoint;
200  bool m_endpointHasBeenSet;
201 
202  SubscriptionProtocolType m_protocol;
203  bool m_protocolHasBeenSet;
204 
205  SubscriptionType m_subscriptionType;
206  bool m_subscriptionTypeHasBeenSet;
207  };
208 
209 } // namespace Model
210 } // namespace WorkDocs
211 } // namespace Aws
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::EndpointHasBeenSet
bool EndpointHasBeenSet() const
Definition: CreateNotificationSubscriptionRequest.h:88
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::WithProtocol
CreateNotificationSubscriptionRequest & WithProtocol(SubscriptionProtocolType &&value)
Definition: CreateNotificationSubscriptionRequest.h:161
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::ProtocolHasBeenSet
bool ProtocolHasBeenSet() const
Definition: CreateNotificationSubscriptionRequest.h:137
Aws::WorkDocs::WorkDocsRequest
Definition: WorkDocsRequest.h:17
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::GetSubscriptionType
const SubscriptionType & GetSubscriptionType() const
Definition: CreateNotificationSubscriptionRequest.h:167
SubscriptionProtocolType.h
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateNotificationSubscriptionRequest.h:32
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::WithSubscriptionType
CreateNotificationSubscriptionRequest & WithSubscriptionType(const SubscriptionType &value)
Definition: CreateNotificationSubscriptionRequest.h:187
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::SetOrganizationId
void SetOrganizationId(const Aws::String &value)
Definition: CreateNotificationSubscriptionRequest.h:50
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::GetProtocol
const SubscriptionProtocolType & GetProtocol() const
Definition: CreateNotificationSubscriptionRequest.h:131
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest
Definition: CreateNotificationSubscriptionRequest.h:24
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::WithOrganizationId
CreateNotificationSubscriptionRequest & WithOrganizationId(const char *value)
Definition: CreateNotificationSubscriptionRequest.h:75
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::SetSubscriptionType
void SetSubscriptionType(SubscriptionType &&value)
Definition: CreateNotificationSubscriptionRequest.h:182
Aws::WorkDocs::Model::SubscriptionProtocolType
SubscriptionProtocolType
Definition: SubscriptionProtocolType.h:17
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::SetEndpoint
void SetEndpoint(const Aws::String &value)
Definition: CreateNotificationSubscriptionRequest.h:94
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::SetOrganizationId
void SetOrganizationId(const char *value)
Definition: CreateNotificationSubscriptionRequest.h:60
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::GetOrganizationId
const Aws::String & GetOrganizationId() const
Definition: CreateNotificationSubscriptionRequest.h:40
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::SetOrganizationId
void SetOrganizationId(Aws::String &&value)
Definition: CreateNotificationSubscriptionRequest.h:55
WorkDocs_EXPORTS.h
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::WithSubscriptionType
CreateNotificationSubscriptionRequest & WithSubscriptionType(SubscriptionType &&value)
Definition: CreateNotificationSubscriptionRequest.h:192
AWSString.h
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::SubscriptionTypeHasBeenSet
bool SubscriptionTypeHasBeenSet() const
Definition: CreateNotificationSubscriptionRequest.h:172
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::WithEndpoint
CreateNotificationSubscriptionRequest & WithEndpoint(const char *value)
Definition: CreateNotificationSubscriptionRequest.h:124
AWS_WORKDOCS_API
#define AWS_WORKDOCS_API
Definition: WorkDocs_EXPORTS.h:28
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::SetProtocol
void SetProtocol(const SubscriptionProtocolType &value)
Definition: CreateNotificationSubscriptionRequest.h:143
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::SetSubscriptionType
void SetSubscriptionType(const SubscriptionType &value)
Definition: CreateNotificationSubscriptionRequest.h:177
Aws
Definition: AccessManagementClient.h:15
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::OrganizationIdHasBeenSet
bool OrganizationIdHasBeenSet() const
Definition: CreateNotificationSubscriptionRequest.h:45
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::CreateNotificationSubscriptionRequest
CreateNotificationSubscriptionRequest()
Aws::WorkDocs::Model::SubscriptionType
SubscriptionType
Definition: SubscriptionType.h:17
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::WithOrganizationId
CreateNotificationSubscriptionRequest & WithOrganizationId(const Aws::String &value)
Definition: CreateNotificationSubscriptionRequest.h:65
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::SerializePayload
Aws::String SerializePayload() const override
WorkDocsRequest.h
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::GetEndpoint
const Aws::String & GetEndpoint() const
Definition: CreateNotificationSubscriptionRequest.h:82
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::WithProtocol
CreateNotificationSubscriptionRequest & WithProtocol(const SubscriptionProtocolType &value)
Definition: CreateNotificationSubscriptionRequest.h:155
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::WithEndpoint
CreateNotificationSubscriptionRequest & WithEndpoint(const Aws::String &value)
Definition: CreateNotificationSubscriptionRequest.h:112
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::SetEndpoint
void SetEndpoint(Aws::String &&value)
Definition: CreateNotificationSubscriptionRequest.h:100
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::WithEndpoint
CreateNotificationSubscriptionRequest & WithEndpoint(Aws::String &&value)
Definition: CreateNotificationSubscriptionRequest.h:118
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::WithOrganizationId
CreateNotificationSubscriptionRequest & WithOrganizationId(Aws::String &&value)
Definition: CreateNotificationSubscriptionRequest.h:70
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::SetProtocol
void SetProtocol(SubscriptionProtocolType &&value)
Definition: CreateNotificationSubscriptionRequest.h:149
SubscriptionType.h
Aws::WorkDocs::Model::CreateNotificationSubscriptionRequest::SetEndpoint
void SetEndpoint(const char *value)
Definition: CreateNotificationSubscriptionRequest.h:106