AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
StartDevEnvironmentRequest.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalystRequest.h>
8#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
9#include <aws/codecatalyst/model/IdeConfiguration.h>
10#include <aws/codecatalyst/model/InstanceType.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace CodeCatalyst {
18namespace Model {
19
23 public:
24 AWS_CODECATALYST_API StartDevEnvironmentRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StartDevEnvironment"; }
31
32 AWS_CODECATALYST_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetSpaceName() const { return m_spaceName; }
39 inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; }
40 template <typename SpaceNameT = Aws::String>
41 void SetSpaceName(SpaceNameT&& value) {
42 m_spaceNameHasBeenSet = true;
43 m_spaceName = std::forward<SpaceNameT>(value);
44 }
45 template <typename SpaceNameT = Aws::String>
47 SetSpaceName(std::forward<SpaceNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetProjectName() const { return m_projectName; }
57 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
58 template <typename ProjectNameT = Aws::String>
59 void SetProjectName(ProjectNameT&& value) {
60 m_projectNameHasBeenSet = true;
61 m_projectName = std::forward<ProjectNameT>(value);
62 }
63 template <typename ProjectNameT = Aws::String>
65 SetProjectName(std::forward<ProjectNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetId() const { return m_id; }
75 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
76 template <typename IdT = Aws::String>
77 void SetId(IdT&& value) {
78 m_idHasBeenSet = true;
79 m_id = std::forward<IdT>(value);
80 }
81 template <typename IdT = Aws::String>
83 SetId(std::forward<IdT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::Vector<IdeConfiguration>& GetIdes() const { return m_ides; }
94 inline bool IdesHasBeenSet() const { return m_idesHasBeenSet; }
95 template <typename IdesT = Aws::Vector<IdeConfiguration>>
96 void SetIdes(IdesT&& value) {
97 m_idesHasBeenSet = true;
98 m_ides = std::forward<IdesT>(value);
99 }
100 template <typename IdesT = Aws::Vector<IdeConfiguration>>
102 SetIdes(std::forward<IdesT>(value));
103 return *this;
104 }
105 template <typename IdesT = IdeConfiguration>
107 m_idesHasBeenSet = true;
108 m_ides.emplace_back(std::forward<IdesT>(value));
109 return *this;
110 }
112
114
117 inline InstanceType GetInstanceType() const { return m_instanceType; }
118 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
119 inline void SetInstanceType(InstanceType value) {
120 m_instanceTypeHasBeenSet = true;
121 m_instanceType = value;
122 }
124 SetInstanceType(value);
125 return *this;
126 }
128
130
135 inline int GetInactivityTimeoutMinutes() const { return m_inactivityTimeoutMinutes; }
136 inline bool InactivityTimeoutMinutesHasBeenSet() const { return m_inactivityTimeoutMinutesHasBeenSet; }
137 inline void SetInactivityTimeoutMinutes(int value) {
138 m_inactivityTimeoutMinutesHasBeenSet = true;
139 m_inactivityTimeoutMinutes = value;
140 }
143 return *this;
144 }
146 private:
147 Aws::String m_spaceName;
148
149 Aws::String m_projectName;
150
151 Aws::String m_id;
152
154
155 InstanceType m_instanceType{InstanceType::NOT_SET};
156
157 int m_inactivityTimeoutMinutes{0};
158 bool m_spaceNameHasBeenSet = false;
159 bool m_projectNameHasBeenSet = false;
160 bool m_idHasBeenSet = false;
161 bool m_idesHasBeenSet = false;
162 bool m_instanceTypeHasBeenSet = false;
163 bool m_inactivityTimeoutMinutesHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace CodeCatalyst
168} // namespace Aws
StartDevEnvironmentRequest & WithSpaceName(SpaceNameT &&value)
const Aws::Vector< IdeConfiguration > & GetIdes() const
StartDevEnvironmentRequest & WithIdes(IdesT &&value)
StartDevEnvironmentRequest & WithProjectName(ProjectNameT &&value)
StartDevEnvironmentRequest & WithInstanceType(InstanceType value)
AWS_CODECATALYST_API StartDevEnvironmentRequest()=default
StartDevEnvironmentRequest & AddIdes(IdesT &&value)
AWS_CODECATALYST_API Aws::String SerializePayload() const override
StartDevEnvironmentRequest & WithInactivityTimeoutMinutes(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector