AWS SDK for C++  1.8.95
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
CreateNotificationSubscriptionRequest & WithEndpoint(Aws::String &&value)
CreateNotificationSubscriptionRequest & WithOrganizationId(Aws::String &&value)
CreateNotificationSubscriptionRequest & WithSubscriptionType(SubscriptionType &&value)
#define AWS_WORKDOCS_API
CreateNotificationSubscriptionRequest & WithOrganizationId(const char *value)
CreateNotificationSubscriptionRequest & WithProtocol(SubscriptionProtocolType &&value)
CreateNotificationSubscriptionRequest & WithOrganizationId(const Aws::String &value)
CreateNotificationSubscriptionRequest & WithEndpoint(const char *value)
CreateNotificationSubscriptionRequest & WithProtocol(const SubscriptionProtocolType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateNotificationSubscriptionRequest & WithEndpoint(const Aws::String &value)
CreateNotificationSubscriptionRequest & WithSubscriptionType(const SubscriptionType &value)