AWS SDK for C++

AWS SDK for C++ Version 1.11.887

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
13#include <utility>
14
15namespace Aws {
16namespace DevOpsAgent {
17namespace Model {
18
26 public:
27 AWS_DEVOPSAGENT_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_DEVOPSAGENT_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
96 inline const Aws::String& GetLocale() const { return m_locale; }
97 inline bool LocaleHasBeenSet() const { return m_localeHasBeenSet; }
98 template <typename LocaleT = Aws::String>
99 void SetLocale(LocaleT&& value) {
100 m_localeHasBeenSet = true;
101 m_locale = std::forward<LocaleT>(value);
102 }
103 template <typename LocaleT = Aws::String>
105 SetLocale(std::forward<LocaleT>(value));
106 return *this;
107 }
109
111
116 inline const Aws::Map<AgentSpacePreferenceKey, bool>& GetPreferences() const { return m_preferences; }
117 inline bool PreferencesHasBeenSet() const { return m_preferencesHasBeenSet; }
118 template <typename PreferencesT = Aws::Map<AgentSpacePreferenceKey, bool>>
119 void SetPreferences(PreferencesT&& value) {
120 m_preferencesHasBeenSet = true;
121 m_preferences = std::forward<PreferencesT>(value);
122 }
123 template <typename PreferencesT = Aws::Map<AgentSpacePreferenceKey, bool>>
125 SetPreferences(std::forward<PreferencesT>(value));
126 return *this;
127 }
129 m_preferencesHasBeenSet = true;
130 m_preferences.emplace(key, value);
131 return *this;
132 }
134 private:
135 Aws::String m_agentSpaceId;
136
137 Aws::String m_name;
138
139 Aws::String m_description;
140
141 Aws::String m_locale;
142
144 bool m_agentSpaceIdHasBeenSet = false;
145 bool m_nameHasBeenSet = false;
146 bool m_descriptionHasBeenSet = false;
147 bool m_localeHasBeenSet = false;
148 bool m_preferencesHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace DevOpsAgent
153} // 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)
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