AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
UpdateAgentSpaceRequest.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/securityagent/SecurityAgentRequest.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/AWSResources.h>
12#include <aws/securityagent/model/CodeReviewSettings.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SecurityAgent {
18namespace Model {
19
26 public:
27 AWS_SECURITYAGENT_API UpdateAgentSpaceRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateAgentSpace"; }
34
35 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
36
38
41 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
42 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
43 template <typename AgentSpaceIdT = Aws::String>
44 void SetAgentSpaceId(AgentSpaceIdT&& value) {
45 m_agentSpaceIdHasBeenSet = true;
46 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
47 }
48 template <typename AgentSpaceIdT = Aws::String>
49 UpdateAgentSpaceRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
50 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template <typename NameT = Aws::String>
62 void SetName(NameT&& value) {
63 m_nameHasBeenSet = true;
64 m_name = std::forward<NameT>(value);
65 }
66 template <typename NameT = Aws::String>
68 SetName(std::forward<NameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
86 SetDescription(std::forward<DescriptionT>(value));
87 return *this;
88 }
90
92
95 inline const AWSResources& GetAwsResources() const { return m_awsResources; }
96 inline bool AwsResourcesHasBeenSet() const { return m_awsResourcesHasBeenSet; }
97 template <typename AwsResourcesT = AWSResources>
98 void SetAwsResources(AwsResourcesT&& value) {
99 m_awsResourcesHasBeenSet = true;
100 m_awsResources = std::forward<AwsResourcesT>(value);
101 }
102 template <typename AwsResourcesT = AWSResources>
104 SetAwsResources(std::forward<AwsResourcesT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Vector<Aws::String>& GetTargetDomainIds() const { return m_targetDomainIds; }
114 inline bool TargetDomainIdsHasBeenSet() const { return m_targetDomainIdsHasBeenSet; }
115 template <typename TargetDomainIdsT = Aws::Vector<Aws::String>>
116 void SetTargetDomainIds(TargetDomainIdsT&& value) {
117 m_targetDomainIdsHasBeenSet = true;
118 m_targetDomainIds = std::forward<TargetDomainIdsT>(value);
119 }
120 template <typename TargetDomainIdsT = Aws::Vector<Aws::String>>
121 UpdateAgentSpaceRequest& WithTargetDomainIds(TargetDomainIdsT&& value) {
122 SetTargetDomainIds(std::forward<TargetDomainIdsT>(value));
123 return *this;
124 }
125 template <typename TargetDomainIdsT = Aws::String>
126 UpdateAgentSpaceRequest& AddTargetDomainIds(TargetDomainIdsT&& value) {
127 m_targetDomainIdsHasBeenSet = true;
128 m_targetDomainIds.emplace_back(std::forward<TargetDomainIdsT>(value));
129 return *this;
130 }
132
134
138 inline const CodeReviewSettings& GetCodeReviewSettings() const { return m_codeReviewSettings; }
139 inline bool CodeReviewSettingsHasBeenSet() const { return m_codeReviewSettingsHasBeenSet; }
140 template <typename CodeReviewSettingsT = CodeReviewSettings>
141 void SetCodeReviewSettings(CodeReviewSettingsT&& value) {
142 m_codeReviewSettingsHasBeenSet = true;
143 m_codeReviewSettings = std::forward<CodeReviewSettingsT>(value);
144 }
145 template <typename CodeReviewSettingsT = CodeReviewSettings>
146 UpdateAgentSpaceRequest& WithCodeReviewSettings(CodeReviewSettingsT&& value) {
147 SetCodeReviewSettings(std::forward<CodeReviewSettingsT>(value));
148 return *this;
149 }
151 private:
152 Aws::String m_agentSpaceId;
153
154 Aws::String m_name;
155
156 Aws::String m_description;
157
158 AWSResources m_awsResources;
159
160 Aws::Vector<Aws::String> m_targetDomainIds;
161
162 CodeReviewSettings m_codeReviewSettings;
163 bool m_agentSpaceIdHasBeenSet = false;
164 bool m_nameHasBeenSet = false;
165 bool m_descriptionHasBeenSet = false;
166 bool m_awsResourcesHasBeenSet = false;
167 bool m_targetDomainIdsHasBeenSet = false;
168 bool m_codeReviewSettingsHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace SecurityAgent
173} // namespace Aws
UpdateAgentSpaceRequest & WithAwsResources(AwsResourcesT &&value)
AWS_SECURITYAGENT_API UpdateAgentSpaceRequest()=default
UpdateAgentSpaceRequest & WithTargetDomainIds(TargetDomainIdsT &&value)
UpdateAgentSpaceRequest & WithCodeReviewSettings(CodeReviewSettingsT &&value)
UpdateAgentSpaceRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
const Aws::Vector< Aws::String > & GetTargetDomainIds() const
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateAgentSpaceRequest & AddTargetDomainIds(TargetDomainIdsT &&value)
UpdateAgentSpaceRequest & WithName(NameT &&value)
UpdateAgentSpaceRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector