AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
CreateAgentSpaceRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityagent/SecurityAgentRequest.h>
11#include <aws/securityagent/SecurityAgent_EXPORTS.h>
12#include <aws/securityagent/model/AWSResources.h>
13#include <aws/securityagent/model/CodeReviewSettings.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SecurityAgent {
19namespace Model {
20
27 public:
28 AWS_SECURITYAGENT_API CreateAgentSpaceRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateAgentSpace"; }
35
36 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
62 template <typename DescriptionT = Aws::String>
63 void SetDescription(DescriptionT&& value) {
64 m_descriptionHasBeenSet = true;
65 m_description = std::forward<DescriptionT>(value);
66 }
67 template <typename DescriptionT = Aws::String>
69 SetDescription(std::forward<DescriptionT>(value));
70 return *this;
71 }
73
75
78 inline const AWSResources& GetAwsResources() const { return m_awsResources; }
79 inline bool AwsResourcesHasBeenSet() const { return m_awsResourcesHasBeenSet; }
80 template <typename AwsResourcesT = AWSResources>
81 void SetAwsResources(AwsResourcesT&& value) {
82 m_awsResourcesHasBeenSet = true;
83 m_awsResources = std::forward<AwsResourcesT>(value);
84 }
85 template <typename AwsResourcesT = AWSResources>
86 CreateAgentSpaceRequest& WithAwsResources(AwsResourcesT&& value) {
87 SetAwsResources(std::forward<AwsResourcesT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Vector<Aws::String>& GetTargetDomainIds() const { return m_targetDomainIds; }
97 inline bool TargetDomainIdsHasBeenSet() const { return m_targetDomainIdsHasBeenSet; }
98 template <typename TargetDomainIdsT = Aws::Vector<Aws::String>>
99 void SetTargetDomainIds(TargetDomainIdsT&& value) {
100 m_targetDomainIdsHasBeenSet = true;
101 m_targetDomainIds = std::forward<TargetDomainIdsT>(value);
102 }
103 template <typename TargetDomainIdsT = Aws::Vector<Aws::String>>
104 CreateAgentSpaceRequest& WithTargetDomainIds(TargetDomainIdsT&& value) {
105 SetTargetDomainIds(std::forward<TargetDomainIdsT>(value));
106 return *this;
107 }
108 template <typename TargetDomainIdsT = Aws::String>
109 CreateAgentSpaceRequest& AddTargetDomainIds(TargetDomainIdsT&& value) {
110 m_targetDomainIdsHasBeenSet = true;
111 m_targetDomainIds.emplace_back(std::forward<TargetDomainIdsT>(value));
112 return *this;
113 }
115
117
121 inline const CodeReviewSettings& GetCodeReviewSettings() const { return m_codeReviewSettings; }
122 inline bool CodeReviewSettingsHasBeenSet() const { return m_codeReviewSettingsHasBeenSet; }
123 template <typename CodeReviewSettingsT = CodeReviewSettings>
124 void SetCodeReviewSettings(CodeReviewSettingsT&& value) {
125 m_codeReviewSettingsHasBeenSet = true;
126 m_codeReviewSettings = std::forward<CodeReviewSettingsT>(value);
127 }
128 template <typename CodeReviewSettingsT = CodeReviewSettings>
129 CreateAgentSpaceRequest& WithCodeReviewSettings(CodeReviewSettingsT&& value) {
130 SetCodeReviewSettings(std::forward<CodeReviewSettingsT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
141 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
142 template <typename KmsKeyIdT = Aws::String>
143 void SetKmsKeyId(KmsKeyIdT&& value) {
144 m_kmsKeyIdHasBeenSet = true;
145 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
146 }
147 template <typename KmsKeyIdT = Aws::String>
149 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
159 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
160 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
161 void SetTags(TagsT&& value) {
162 m_tagsHasBeenSet = true;
163 m_tags = std::forward<TagsT>(value);
164 }
165 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
167 SetTags(std::forward<TagsT>(value));
168 return *this;
169 }
170 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
171 CreateAgentSpaceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
172 m_tagsHasBeenSet = true;
173 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
174 return *this;
175 }
177 private:
178 Aws::String m_name;
179
180 Aws::String m_description;
181
182 AWSResources m_awsResources;
183
184 Aws::Vector<Aws::String> m_targetDomainIds;
185
186 CodeReviewSettings m_codeReviewSettings;
187
188 Aws::String m_kmsKeyId;
189
191 bool m_nameHasBeenSet = false;
192 bool m_descriptionHasBeenSet = false;
193 bool m_awsResourcesHasBeenSet = false;
194 bool m_targetDomainIdsHasBeenSet = false;
195 bool m_codeReviewSettingsHasBeenSet = false;
196 bool m_kmsKeyIdHasBeenSet = false;
197 bool m_tagsHasBeenSet = false;
198};
199
200} // namespace Model
201} // namespace SecurityAgent
202} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
virtual const char * GetServiceRequestName() const override
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
CreateAgentSpaceRequest & WithTargetDomainIds(TargetDomainIdsT &&value)
CreateAgentSpaceRequest & WithCodeReviewSettings(CodeReviewSettingsT &&value)
CreateAgentSpaceRequest & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetTargetDomainIds() const
AWS_SECURITYAGENT_API CreateAgentSpaceRequest()=default
CreateAgentSpaceRequest & WithKmsKeyId(KmsKeyIdT &&value)
CreateAgentSpaceRequest & WithTags(TagsT &&value)
CreateAgentSpaceRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAgentSpaceRequest & AddTargetDomainIds(TargetDomainIdsT &&value)
CreateAgentSpaceRequest & WithAwsResources(AwsResourcesT &&value)
CreateAgentSpaceRequest & WithDescription(DescriptionT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector