AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateDevEnvironmentRequest.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/codecatalyst/CodeCatalystRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/codecatalyst/model/InstanceType.h>
12#include <aws/codecatalyst/model/IdeConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CodeCatalyst
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_CODECATALYST_API UpdateDevEnvironmentRequest();
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 "UpdateDevEnvironment"; }
34
35 AWS_CODECATALYST_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetSpaceName() const{ return m_spaceName; }
43 inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; }
44 inline void SetSpaceName(const Aws::String& value) { m_spaceNameHasBeenSet = true; m_spaceName = value; }
45 inline void SetSpaceName(Aws::String&& value) { m_spaceNameHasBeenSet = true; m_spaceName = std::move(value); }
46 inline void SetSpaceName(const char* value) { m_spaceNameHasBeenSet = true; m_spaceName.assign(value); }
47 inline UpdateDevEnvironmentRequest& WithSpaceName(const Aws::String& value) { SetSpaceName(value); return *this;}
48 inline UpdateDevEnvironmentRequest& WithSpaceName(Aws::String&& value) { SetSpaceName(std::move(value)); return *this;}
49 inline UpdateDevEnvironmentRequest& WithSpaceName(const char* value) { SetSpaceName(value); return *this;}
51
53
56 inline const Aws::String& GetProjectName() const{ return m_projectName; }
57 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
58 inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; }
59 inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); }
60 inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); }
61 inline UpdateDevEnvironmentRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
62 inline UpdateDevEnvironmentRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
63 inline UpdateDevEnvironmentRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;}
65
67
70 inline const Aws::String& GetId() const{ return m_id; }
71 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
72 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
73 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
74 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
75 inline UpdateDevEnvironmentRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
76 inline UpdateDevEnvironmentRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 inline UpdateDevEnvironmentRequest& WithId(const char* value) { SetId(value); return *this;}
79
81
85 inline const Aws::String& GetAlias() const{ return m_alias; }
86 inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; }
87 inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; }
88 inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); }
89 inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); }
90 inline UpdateDevEnvironmentRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;}
91 inline UpdateDevEnvironmentRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;}
92 inline UpdateDevEnvironmentRequest& WithAlias(const char* value) { SetAlias(value); return *this;}
94
96
100 inline const Aws::Vector<IdeConfiguration>& GetIdes() const{ return m_ides; }
101 inline bool IdesHasBeenSet() const { return m_idesHasBeenSet; }
102 inline void SetIdes(const Aws::Vector<IdeConfiguration>& value) { m_idesHasBeenSet = true; m_ides = value; }
103 inline void SetIdes(Aws::Vector<IdeConfiguration>&& value) { m_idesHasBeenSet = true; m_ides = std::move(value); }
104 inline UpdateDevEnvironmentRequest& WithIdes(const Aws::Vector<IdeConfiguration>& value) { SetIdes(value); return *this;}
105 inline UpdateDevEnvironmentRequest& WithIdes(Aws::Vector<IdeConfiguration>&& value) { SetIdes(std::move(value)); return *this;}
106 inline UpdateDevEnvironmentRequest& AddIdes(const IdeConfiguration& value) { m_idesHasBeenSet = true; m_ides.push_back(value); return *this; }
107 inline UpdateDevEnvironmentRequest& AddIdes(IdeConfiguration&& value) { m_idesHasBeenSet = true; m_ides.push_back(std::move(value)); return *this; }
109
111
116 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
117 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
118 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
119 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
120 inline UpdateDevEnvironmentRequest& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
121 inline UpdateDevEnvironmentRequest& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
123
125
131 inline int GetInactivityTimeoutMinutes() const{ return m_inactivityTimeoutMinutes; }
132 inline bool InactivityTimeoutMinutesHasBeenSet() const { return m_inactivityTimeoutMinutesHasBeenSet; }
133 inline void SetInactivityTimeoutMinutes(int value) { m_inactivityTimeoutMinutesHasBeenSet = true; m_inactivityTimeoutMinutes = value; }
136
138
144 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
145 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
146 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
147 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
148 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
149 inline UpdateDevEnvironmentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
150 inline UpdateDevEnvironmentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
151 inline UpdateDevEnvironmentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
153 private:
154
155 Aws::String m_spaceName;
156 bool m_spaceNameHasBeenSet = false;
157
158 Aws::String m_projectName;
159 bool m_projectNameHasBeenSet = false;
160
161 Aws::String m_id;
162 bool m_idHasBeenSet = false;
163
164 Aws::String m_alias;
165 bool m_aliasHasBeenSet = false;
166
168 bool m_idesHasBeenSet = false;
169
170 InstanceType m_instanceType;
171 bool m_instanceTypeHasBeenSet = false;
172
173 int m_inactivityTimeoutMinutes;
174 bool m_inactivityTimeoutMinutesHasBeenSet = false;
175
176 Aws::String m_clientToken;
177 bool m_clientTokenHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace CodeCatalyst
182} // namespace Aws
UpdateDevEnvironmentRequest & WithClientToken(const Aws::String &value)
UpdateDevEnvironmentRequest & WithClientToken(const char *value)
UpdateDevEnvironmentRequest & WithSpaceName(const Aws::String &value)
UpdateDevEnvironmentRequest & AddIdes(const IdeConfiguration &value)
UpdateDevEnvironmentRequest & WithIdes(Aws::Vector< IdeConfiguration > &&value)
void SetIdes(const Aws::Vector< IdeConfiguration > &value)
UpdateDevEnvironmentRequest & WithIdes(const Aws::Vector< IdeConfiguration > &value)
UpdateDevEnvironmentRequest & WithSpaceName(const char *value)
void SetIdes(Aws::Vector< IdeConfiguration > &&value)
UpdateDevEnvironmentRequest & WithInactivityTimeoutMinutes(int value)
const Aws::Vector< IdeConfiguration > & GetIdes() const
UpdateDevEnvironmentRequest & WithAlias(const char *value)
UpdateDevEnvironmentRequest & WithSpaceName(Aws::String &&value)
UpdateDevEnvironmentRequest & WithProjectName(const char *value)
UpdateDevEnvironmentRequest & WithId(const char *value)
UpdateDevEnvironmentRequest & AddIdes(IdeConfiguration &&value)
UpdateDevEnvironmentRequest & WithInstanceType(InstanceType &&value)
UpdateDevEnvironmentRequest & WithId(Aws::String &&value)
UpdateDevEnvironmentRequest & WithAlias(Aws::String &&value)
AWS_CODECATALYST_API Aws::String SerializePayload() const override
UpdateDevEnvironmentRequest & WithInstanceType(const InstanceType &value)
UpdateDevEnvironmentRequest & WithId(const Aws::String &value)
UpdateDevEnvironmentRequest & WithAlias(const Aws::String &value)
UpdateDevEnvironmentRequest & WithProjectName(const Aws::String &value)
UpdateDevEnvironmentRequest & WithClientToken(Aws::String &&value)
UpdateDevEnvironmentRequest & WithProjectName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector