AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateSubscriberRequest.h
1
6#pragma once
7#include <aws/securitylake/SecurityLake_EXPORTS.h>
8#include <aws/securitylake/SecurityLakeRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/securitylake/model/AwsIdentity.h>
12#include <aws/securitylake/model/AccessType.h>
13#include <aws/securitylake/model/LogSourceResource.h>
14#include <aws/securitylake/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SecurityLake
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SECURITYLAKE_API CreateSubscriberRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateSubscriber"; }
36
37 AWS_SECURITYLAKE_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::Vector<AccessType>& GetAccessTypes() const{ return m_accessTypes; }
45 inline bool AccessTypesHasBeenSet() const { return m_accessTypesHasBeenSet; }
46 inline void SetAccessTypes(const Aws::Vector<AccessType>& value) { m_accessTypesHasBeenSet = true; m_accessTypes = value; }
47 inline void SetAccessTypes(Aws::Vector<AccessType>&& value) { m_accessTypesHasBeenSet = true; m_accessTypes = std::move(value); }
49 inline CreateSubscriberRequest& WithAccessTypes(Aws::Vector<AccessType>&& value) { SetAccessTypes(std::move(value)); return *this;}
50 inline CreateSubscriberRequest& AddAccessTypes(const AccessType& value) { m_accessTypesHasBeenSet = true; m_accessTypes.push_back(value); return *this; }
51 inline CreateSubscriberRequest& AddAccessTypes(AccessType&& value) { m_accessTypesHasBeenSet = true; m_accessTypes.push_back(std::move(value)); return *this; }
53
55
60 inline const Aws::Vector<LogSourceResource>& GetSources() const{ return m_sources; }
61 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
62 inline void SetSources(const Aws::Vector<LogSourceResource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
63 inline void SetSources(Aws::Vector<LogSourceResource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
65 inline CreateSubscriberRequest& WithSources(Aws::Vector<LogSourceResource>&& value) { SetSources(std::move(value)); return *this;}
66 inline CreateSubscriberRequest& AddSources(const LogSourceResource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
67 inline CreateSubscriberRequest& AddSources(LogSourceResource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
69
71
74 inline const Aws::String& GetSubscriberDescription() const{ return m_subscriberDescription; }
75 inline bool SubscriberDescriptionHasBeenSet() const { return m_subscriberDescriptionHasBeenSet; }
76 inline void SetSubscriberDescription(const Aws::String& value) { m_subscriberDescriptionHasBeenSet = true; m_subscriberDescription = value; }
77 inline void SetSubscriberDescription(Aws::String&& value) { m_subscriberDescriptionHasBeenSet = true; m_subscriberDescription = std::move(value); }
78 inline void SetSubscriberDescription(const char* value) { m_subscriberDescriptionHasBeenSet = true; m_subscriberDescription.assign(value); }
81 inline CreateSubscriberRequest& WithSubscriberDescription(const char* value) { SetSubscriberDescription(value); return *this;}
83
85
88 inline const AwsIdentity& GetSubscriberIdentity() const{ return m_subscriberIdentity; }
89 inline bool SubscriberIdentityHasBeenSet() const { return m_subscriberIdentityHasBeenSet; }
90 inline void SetSubscriberIdentity(const AwsIdentity& value) { m_subscriberIdentityHasBeenSet = true; m_subscriberIdentity = value; }
91 inline void SetSubscriberIdentity(AwsIdentity&& value) { m_subscriberIdentityHasBeenSet = true; m_subscriberIdentity = std::move(value); }
93 inline CreateSubscriberRequest& WithSubscriberIdentity(AwsIdentity&& value) { SetSubscriberIdentity(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetSubscriberName() const{ return m_subscriberName; }
101 inline bool SubscriberNameHasBeenSet() const { return m_subscriberNameHasBeenSet; }
102 inline void SetSubscriberName(const Aws::String& value) { m_subscriberNameHasBeenSet = true; m_subscriberName = value; }
103 inline void SetSubscriberName(Aws::String&& value) { m_subscriberNameHasBeenSet = true; m_subscriberName = std::move(value); }
104 inline void SetSubscriberName(const char* value) { m_subscriberNameHasBeenSet = true; m_subscriberName.assign(value); }
105 inline CreateSubscriberRequest& WithSubscriberName(const Aws::String& value) { SetSubscriberName(value); return *this;}
106 inline CreateSubscriberRequest& WithSubscriberName(Aws::String&& value) { SetSubscriberName(std::move(value)); return *this;}
107 inline CreateSubscriberRequest& WithSubscriberName(const char* value) { SetSubscriberName(value); return *this;}
109
111
116 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
120 inline CreateSubscriberRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
121 inline CreateSubscriberRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
122 inline CreateSubscriberRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
123 inline CreateSubscriberRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
125 private:
126
127 Aws::Vector<AccessType> m_accessTypes;
128 bool m_accessTypesHasBeenSet = false;
129
131 bool m_sourcesHasBeenSet = false;
132
133 Aws::String m_subscriberDescription;
134 bool m_subscriberDescriptionHasBeenSet = false;
135
136 AwsIdentity m_subscriberIdentity;
137 bool m_subscriberIdentityHasBeenSet = false;
138
139 Aws::String m_subscriberName;
140 bool m_subscriberNameHasBeenSet = false;
141
142 Aws::Vector<Tag> m_tags;
143 bool m_tagsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace SecurityLake
148} // namespace Aws
CreateSubscriberRequest & WithSubscriberDescription(Aws::String &&value)
const Aws::Vector< LogSourceResource > & GetSources() const
void SetSources(const Aws::Vector< LogSourceResource > &value)
CreateSubscriberRequest & WithSources(Aws::Vector< LogSourceResource > &&value)
virtual const char * GetServiceRequestName() const override
void SetAccessTypes(Aws::Vector< AccessType > &&value)
CreateSubscriberRequest & WithSubscriberIdentity(const AwsIdentity &value)
CreateSubscriberRequest & WithSubscriberDescription(const Aws::String &value)
CreateSubscriberRequest & WithTags(Aws::Vector< Tag > &&value)
CreateSubscriberRequest & WithSources(const Aws::Vector< LogSourceResource > &value)
CreateSubscriberRequest & AddTags(const Tag &value)
void SetAccessTypes(const Aws::Vector< AccessType > &value)
CreateSubscriberRequest & WithSubscriberDescription(const char *value)
CreateSubscriberRequest & AddAccessTypes(AccessType &&value)
CreateSubscriberRequest & AddSources(LogSourceResource &&value)
CreateSubscriberRequest & WithSubscriberName(const char *value)
CreateSubscriberRequest & AddSources(const LogSourceResource &value)
AWS_SECURITYLAKE_API Aws::String SerializePayload() const override
CreateSubscriberRequest & WithAccessTypes(Aws::Vector< AccessType > &&value)
const Aws::Vector< AccessType > & GetAccessTypes() const
void SetSources(Aws::Vector< LogSourceResource > &&value)
CreateSubscriberRequest & AddAccessTypes(const AccessType &value)
CreateSubscriberRequest & WithSubscriberIdentity(AwsIdentity &&value)
CreateSubscriberRequest & WithSubscriberName(Aws::String &&value)
CreateSubscriberRequest & WithAccessTypes(const Aws::Vector< AccessType > &value)
CreateSubscriberRequest & WithSubscriberName(const Aws::String &value)
CreateSubscriberRequest & WithTags(const Aws::Vector< Tag > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector