AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateNotificationSubscriptionRequest.h
1
6#pragma once
7#include <aws/workdocs/WorkDocs_EXPORTS.h>
8#include <aws/workdocs/WorkDocsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/workdocs/model/SubscriptionProtocolType.h>
11#include <aws/workdocs/model/SubscriptionType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace WorkDocs
17{
18namespace 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_WORKDOCS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetOrganizationId() const{ return m_organizationId; }
42 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
43 inline void SetOrganizationId(const Aws::String& value) { m_organizationIdHasBeenSet = true; m_organizationId = value; }
44 inline void SetOrganizationId(Aws::String&& value) { m_organizationIdHasBeenSet = true; m_organizationId = std::move(value); }
45 inline void SetOrganizationId(const char* value) { m_organizationIdHasBeenSet = true; m_organizationId.assign(value); }
48 inline CreateNotificationSubscriptionRequest& WithOrganizationId(const char* value) { SetOrganizationId(value); return *this;}
50
52
56 inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
57 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
58 inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
59 inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
60 inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
61 inline CreateNotificationSubscriptionRequest& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
62 inline CreateNotificationSubscriptionRequest& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
63 inline CreateNotificationSubscriptionRequest& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
65
67
71 inline const SubscriptionProtocolType& GetProtocol() const{ return m_protocol; }
72 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
73 inline void SetProtocol(const SubscriptionProtocolType& value) { m_protocolHasBeenSet = true; m_protocol = value; }
74 inline void SetProtocol(SubscriptionProtocolType&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
78
80
83 inline const SubscriptionType& GetSubscriptionType() const{ return m_subscriptionType; }
84 inline bool SubscriptionTypeHasBeenSet() const { return m_subscriptionTypeHasBeenSet; }
85 inline void SetSubscriptionType(const SubscriptionType& value) { m_subscriptionTypeHasBeenSet = true; m_subscriptionType = value; }
86 inline void SetSubscriptionType(SubscriptionType&& value) { m_subscriptionTypeHasBeenSet = true; m_subscriptionType = std::move(value); }
90 private:
91
92 Aws::String m_organizationId;
93 bool m_organizationIdHasBeenSet = false;
94
95 Aws::String m_endpoint;
96 bool m_endpointHasBeenSet = false;
97
98 SubscriptionProtocolType m_protocol;
99 bool m_protocolHasBeenSet = false;
100
101 SubscriptionType m_subscriptionType;
102 bool m_subscriptionTypeHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace WorkDocs
107} // namespace Aws
CreateNotificationSubscriptionRequest & WithEndpoint(Aws::String &&value)
CreateNotificationSubscriptionRequest & WithEndpoint(const char *value)
CreateNotificationSubscriptionRequest & WithOrganizationId(Aws::String &&value)
CreateNotificationSubscriptionRequest & WithProtocol(SubscriptionProtocolType &&value)
CreateNotificationSubscriptionRequest & WithSubscriptionType(SubscriptionType &&value)
CreateNotificationSubscriptionRequest & WithProtocol(const SubscriptionProtocolType &value)
CreateNotificationSubscriptionRequest & WithOrganizationId(const Aws::String &value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
CreateNotificationSubscriptionRequest & WithOrganizationId(const char *value)
CreateNotificationSubscriptionRequest & WithEndpoint(const Aws::String &value)
CreateNotificationSubscriptionRequest & WithSubscriptionType(const SubscriptionType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String