AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
UpdateAgentSpaceRequest.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/devops-agent/DevOpsAgentRequest.h>
10#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
11#include <aws/devops-agent/model/AgentSpacePreferenceKey.h>
12#include <aws/devops-agent/model/AwsSourceMode.h>
13
14#include <utility>
15
16namespace Aws {
17namespace DevOpsAgent {
18namespace Model {
19
27 public:
28 AWS_DEVOPSAGENT_API UpdateAgentSpaceRequest() = 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 "UpdateAgentSpace"; }
35
36 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
37
39
42 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
43 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
44 template <typename AgentSpaceIdT = Aws::String>
45 void SetAgentSpaceId(AgentSpaceIdT&& value) {
46 m_agentSpaceIdHasBeenSet = true;
47 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
48 }
49 template <typename AgentSpaceIdT = Aws::String>
50 UpdateAgentSpaceRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
51 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetName() const { return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 template <typename NameT = Aws::String>
63 void SetName(NameT&& value) {
64 m_nameHasBeenSet = true;
65 m_name = std::forward<NameT>(value);
66 }
67 template <typename NameT = Aws::String>
69 SetName(std::forward<NameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetLocale() const { return m_locale; }
98 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
99 template <typename LocaleT = Aws::String>
100 void SetLocale(LocaleT&& value) {
101 m_localeHasBeenSet = true;
102 m_locale = std::forward<LocaleT>(value);
103 }
104 template <typename LocaleT = Aws::String>
106 SetLocale(std::forward<LocaleT>(value));
107 return *this;
108 }
110
112
117 inline const Aws::Map<AgentSpacePreferenceKey, bool>& GetPreferences() const { return m_preferences; }
118 inline bool PreferencesHasBeenSet() const { return m_preferencesHasBeenSet; }
119 template <typename PreferencesT = Aws::Map<AgentSpacePreferenceKey, bool>>
120 void SetPreferences(PreferencesT&& value) {
121 m_preferencesHasBeenSet = true;
122 m_preferences = std::forward<PreferencesT>(value);
123 }
124 template <typename PreferencesT = Aws::Map<AgentSpacePreferenceKey, bool>>
126 SetPreferences(std::forward<PreferencesT>(value));
127 return *this;
128 }
130 m_preferencesHasBeenSet = true;
131 m_preferences.emplace(key, value);
132 return *this;
133 }
135
137
143 inline AwsSourceMode GetAwsSourceMode() const { return m_awsSourceMode; }
144 inline bool AwsSourceModeHasBeenSet() const { return m_awsSourceModeHasBeenSet; }
145 inline void SetAwsSourceMode(AwsSourceMode value) {
146 m_awsSourceModeHasBeenSet = true;
147 m_awsSourceMode = value;
148 }
150 SetAwsSourceMode(value);
151 return *this;
152 }
154 private:
155 Aws::String m_agentSpaceId;
156
157 Aws::String m_name;
158
159 Aws::String m_description;
160
161 Aws::String m_locale;
162
164
165 AwsSourceMode m_awsSourceMode{AwsSourceMode::NOT_SET};
166 bool m_agentSpaceIdHasBeenSet = false;
167 bool m_nameHasBeenSet = false;
168 bool m_descriptionHasBeenSet = false;
169 bool m_localeHasBeenSet = false;
170 bool m_preferencesHasBeenSet = false;
171 bool m_awsSourceModeHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace DevOpsAgent
176} // namespace Aws
UpdateAgentSpaceRequest & WithDescription(DescriptionT &&value)
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
UpdateAgentSpaceRequest & WithName(NameT &&value)
UpdateAgentSpaceRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
UpdateAgentSpaceRequest & AddPreferences(AgentSpacePreferenceKey key, bool value)
AWS_DEVOPSAGENT_API UpdateAgentSpaceRequest()=default
UpdateAgentSpaceRequest & WithPreferences(PreferencesT &&value)
UpdateAgentSpaceRequest & WithAwsSourceMode(AwsSourceMode value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< AgentSpacePreferenceKey, bool > & GetPreferences() const
UpdateAgentSpaceRequest & WithLocale(LocaleT &&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