AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
CreateNotificationSubscriptionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workdocs/WorkDocsRequest.h>
9#include <aws/workdocs/WorkDocs_EXPORTS.h>
10#include <aws/workdocs/model/SubscriptionProtocolType.h>
11#include <aws/workdocs/model/SubscriptionType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WorkDocs {
17namespace Model {
18
22 public:
23 AWS_WORKDOCS_API CreateNotificationSubscriptionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateNotificationSubscription"; }
30
31 AWS_WORKDOCS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetOrganizationId() const { return m_organizationId; }
38 inline bool OrganizationIdHasBeenSet() const { return m_organizationIdHasBeenSet; }
39 template <typename OrganizationIdT = Aws::String>
40 void SetOrganizationId(OrganizationIdT&& value) {
41 m_organizationIdHasBeenSet = true;
42 m_organizationId = std::forward<OrganizationIdT>(value);
43 }
44 template <typename OrganizationIdT = Aws::String>
46 SetOrganizationId(std::forward<OrganizationIdT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
57 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
58 template <typename EndpointT = Aws::String>
59 void SetEndpoint(EndpointT&& value) {
60 m_endpointHasBeenSet = true;
61 m_endpoint = std::forward<EndpointT>(value);
62 }
63 template <typename EndpointT = Aws::String>
65 SetEndpoint(std::forward<EndpointT>(value));
66 return *this;
67 }
69
71
75 inline SubscriptionProtocolType GetProtocol() const { return m_protocol; }
76 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
78 m_protocolHasBeenSet = true;
79 m_protocol = value;
80 }
86
88
91 inline SubscriptionType GetSubscriptionType() const { return m_subscriptionType; }
92 inline bool SubscriptionTypeHasBeenSet() const { return m_subscriptionTypeHasBeenSet; }
94 m_subscriptionTypeHasBeenSet = true;
95 m_subscriptionType = value;
96 }
102 private:
103 Aws::String m_organizationId;
104
105 Aws::String m_endpoint;
106
108
110 bool m_organizationIdHasBeenSet = false;
111 bool m_endpointHasBeenSet = false;
112 bool m_protocolHasBeenSet = false;
113 bool m_subscriptionTypeHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace WorkDocs
118} // namespace Aws
CreateNotificationSubscriptionRequest & WithEndpoint(EndpointT &&value)
CreateNotificationSubscriptionRequest & WithProtocol(SubscriptionProtocolType value)
AWS_WORKDOCS_API Aws::String SerializePayload() const override
CreateNotificationSubscriptionRequest & WithSubscriptionType(SubscriptionType value)
CreateNotificationSubscriptionRequest & WithOrganizationId(OrganizationIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String