AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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
120 inline const CodeReviewSettings& GetCodeReviewSettings() const { return m_codeReviewSettings; }
121 inline bool CodeReviewSettingsHasBeenSet() const { return m_codeReviewSettingsHasBeenSet; }
122 template <typename CodeReviewSettingsT = CodeReviewSettings>
123 void SetCodeReviewSettings(CodeReviewSettingsT&& value) {
124 m_codeReviewSettingsHasBeenSet = true;
125 m_codeReviewSettings = std::forward<CodeReviewSettingsT>(value);
126 }
127 template <typename CodeReviewSettingsT = CodeReviewSettings>
128 CreateAgentSpaceRequest& WithCodeReviewSettings(CodeReviewSettingsT&& value) {
129 SetCodeReviewSettings(std::forward<CodeReviewSettingsT>(value));
130 return *this;
131 }
133
135
139 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
140 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
141 template <typename KmsKeyIdT = Aws::String>
142 void SetKmsKeyId(KmsKeyIdT&& value) {
143 m_kmsKeyIdHasBeenSet = true;
144 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
145 }
146 template <typename KmsKeyIdT = Aws::String>
148 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
158 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
159 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
160 void SetTags(TagsT&& value) {
161 m_tagsHasBeenSet = true;
162 m_tags = std::forward<TagsT>(value);
163 }
164 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
166 SetTags(std::forward<TagsT>(value));
167 return *this;
168 }
169 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
170 CreateAgentSpaceRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
171 m_tagsHasBeenSet = true;
172 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
173 return *this;
174 }
176 private:
177 Aws::String m_name;
178
179 Aws::String m_description;
180
181 AWSResources m_awsResources;
182
183 Aws::Vector<Aws::String> m_targetDomainIds;
184
185 CodeReviewSettings m_codeReviewSettings;
186
187 Aws::String m_kmsKeyId;
188
190 bool m_nameHasBeenSet = false;
191 bool m_descriptionHasBeenSet = false;
192 bool m_awsResourcesHasBeenSet = false;
193 bool m_targetDomainIdsHasBeenSet = false;
194 bool m_codeReviewSettingsHasBeenSet = false;
195 bool m_kmsKeyIdHasBeenSet = false;
196 bool m_tagsHasBeenSet = false;
197};
198
199} // namespace Model
200} // namespace SecurityAgent
201} // 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