AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateSubscriberRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securitylake/SecurityLakeRequest.h>
10#include <aws/securitylake/SecurityLake_EXPORTS.h>
11#include <aws/securitylake/model/AwsIdentity.h>
12#include <aws/securitylake/model/LogSourceResource.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SecurityLake {
18namespace Model {
19
23 public:
24 AWS_SECURITYLAKE_API UpdateSubscriberRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateSubscriber"; }
31
32 AWS_SECURITYLAKE_API Aws::String SerializePayload() const override;
33
35
41 inline const Aws::Vector<LogSourceResource>& GetSources() const { return m_sources; }
42 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
43 template <typename SourcesT = Aws::Vector<LogSourceResource>>
44 void SetSources(SourcesT&& value) {
45 m_sourcesHasBeenSet = true;
46 m_sources = std::forward<SourcesT>(value);
47 }
48 template <typename SourcesT = Aws::Vector<LogSourceResource>>
50 SetSources(std::forward<SourcesT>(value));
51 return *this;
52 }
53 template <typename SourcesT = LogSourceResource>
55 m_sourcesHasBeenSet = true;
56 m_sources.emplace_back(std::forward<SourcesT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetSubscriberDescription() const { return m_subscriberDescription; }
66 inline bool SubscriberDescriptionHasBeenSet() const { return m_subscriberDescriptionHasBeenSet; }
67 template <typename SubscriberDescriptionT = Aws::String>
68 void SetSubscriberDescription(SubscriberDescriptionT&& value) {
69 m_subscriberDescriptionHasBeenSet = true;
70 m_subscriberDescription = std::forward<SubscriberDescriptionT>(value);
71 }
72 template <typename SubscriberDescriptionT = Aws::String>
73 UpdateSubscriberRequest& WithSubscriberDescription(SubscriberDescriptionT&& value) {
74 SetSubscriberDescription(std::forward<SubscriberDescriptionT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetSubscriberId() const { return m_subscriberId; }
85 inline bool SubscriberIdHasBeenSet() const { return m_subscriberIdHasBeenSet; }
86 template <typename SubscriberIdT = Aws::String>
87 void SetSubscriberId(SubscriberIdT&& value) {
88 m_subscriberIdHasBeenSet = true;
89 m_subscriberId = std::forward<SubscriberIdT>(value);
90 }
91 template <typename SubscriberIdT = Aws::String>
92 UpdateSubscriberRequest& WithSubscriberId(SubscriberIdT&& value) {
93 SetSubscriberId(std::forward<SubscriberIdT>(value));
94 return *this;
95 }
97
99
102 inline const AwsIdentity& GetSubscriberIdentity() const { return m_subscriberIdentity; }
103 inline bool SubscriberIdentityHasBeenSet() const { return m_subscriberIdentityHasBeenSet; }
104 template <typename SubscriberIdentityT = AwsIdentity>
105 void SetSubscriberIdentity(SubscriberIdentityT&& value) {
106 m_subscriberIdentityHasBeenSet = true;
107 m_subscriberIdentity = std::forward<SubscriberIdentityT>(value);
108 }
109 template <typename SubscriberIdentityT = AwsIdentity>
110 UpdateSubscriberRequest& WithSubscriberIdentity(SubscriberIdentityT&& value) {
111 SetSubscriberIdentity(std::forward<SubscriberIdentityT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::String& GetSubscriberName() const { return m_subscriberName; }
121 inline bool SubscriberNameHasBeenSet() const { return m_subscriberNameHasBeenSet; }
122 template <typename SubscriberNameT = Aws::String>
123 void SetSubscriberName(SubscriberNameT&& value) {
124 m_subscriberNameHasBeenSet = true;
125 m_subscriberName = std::forward<SubscriberNameT>(value);
126 }
127 template <typename SubscriberNameT = Aws::String>
128 UpdateSubscriberRequest& WithSubscriberName(SubscriberNameT&& value) {
129 SetSubscriberName(std::forward<SubscriberNameT>(value));
130 return *this;
131 }
133 private:
135
136 Aws::String m_subscriberDescription;
137
138 Aws::String m_subscriberId;
139
140 AwsIdentity m_subscriberIdentity;
141
142 Aws::String m_subscriberName;
143 bool m_sourcesHasBeenSet = false;
144 bool m_subscriberDescriptionHasBeenSet = false;
145 bool m_subscriberIdHasBeenSet = false;
146 bool m_subscriberIdentityHasBeenSet = false;
147 bool m_subscriberNameHasBeenSet = false;
148};
149
150} // namespace Model
151} // namespace SecurityLake
152} // namespace Aws
void SetSubscriberDescription(SubscriberDescriptionT &&value)
UpdateSubscriberRequest & WithSources(SourcesT &&value)
const Aws::Vector< LogSourceResource > & GetSources() const
UpdateSubscriberRequest & WithSubscriberId(SubscriberIdT &&value)
UpdateSubscriberRequest & WithSubscriberName(SubscriberNameT &&value)
AWS_SECURITYLAKE_API Aws::String SerializePayload() const override
AWS_SECURITYLAKE_API UpdateSubscriberRequest()=default
UpdateSubscriberRequest & WithSubscriberIdentity(SubscriberIdentityT &&value)
UpdateSubscriberRequest & WithSubscriberDescription(SubscriberDescriptionT &&value)
virtual const char * GetServiceRequestName() const override
UpdateSubscriberRequest & AddSources(SourcesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector