AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartDevEnvironmentRequest.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 StartDevEnvironmentRequest();
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 "StartDevEnvironment"; }
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 StartDevEnvironmentRequest& WithSpaceName(const Aws::String& value) { SetSpaceName(value); return *this;}
48 inline StartDevEnvironmentRequest& WithSpaceName(Aws::String&& value) { SetSpaceName(std::move(value)); return *this;}
49 inline StartDevEnvironmentRequest& 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 StartDevEnvironmentRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;}
62 inline StartDevEnvironmentRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;}
63 inline StartDevEnvironmentRequest& 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 StartDevEnvironmentRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
76 inline StartDevEnvironmentRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
77 inline StartDevEnvironmentRequest& WithId(const char* value) { SetId(value); return *this;}
79
81
85 inline const Aws::Vector<IdeConfiguration>& GetIdes() const{ return m_ides; }
86 inline bool IdesHasBeenSet() const { return m_idesHasBeenSet; }
87 inline void SetIdes(const Aws::Vector<IdeConfiguration>& value) { m_idesHasBeenSet = true; m_ides = value; }
88 inline void SetIdes(Aws::Vector<IdeConfiguration>&& value) { m_idesHasBeenSet = true; m_ides = std::move(value); }
89 inline StartDevEnvironmentRequest& WithIdes(const Aws::Vector<IdeConfiguration>& value) { SetIdes(value); return *this;}
90 inline StartDevEnvironmentRequest& WithIdes(Aws::Vector<IdeConfiguration>&& value) { SetIdes(std::move(value)); return *this;}
91 inline StartDevEnvironmentRequest& AddIdes(const IdeConfiguration& value) { m_idesHasBeenSet = true; m_ides.push_back(value); return *this; }
92 inline StartDevEnvironmentRequest& AddIdes(IdeConfiguration&& value) { m_idesHasBeenSet = true; m_ides.push_back(std::move(value)); return *this; }
94
96
99 inline const InstanceType& GetInstanceType() const{ return m_instanceType; }
100 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
101 inline void SetInstanceType(const InstanceType& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; }
102 inline void SetInstanceType(InstanceType&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); }
103 inline StartDevEnvironmentRequest& WithInstanceType(const InstanceType& value) { SetInstanceType(value); return *this;}
104 inline StartDevEnvironmentRequest& WithInstanceType(InstanceType&& value) { SetInstanceType(std::move(value)); return *this;}
106
108
113 inline int GetInactivityTimeoutMinutes() const{ return m_inactivityTimeoutMinutes; }
114 inline bool InactivityTimeoutMinutesHasBeenSet() const { return m_inactivityTimeoutMinutesHasBeenSet; }
115 inline void SetInactivityTimeoutMinutes(int value) { m_inactivityTimeoutMinutesHasBeenSet = true; m_inactivityTimeoutMinutes = value; }
118 private:
119
120 Aws::String m_spaceName;
121 bool m_spaceNameHasBeenSet = false;
122
123 Aws::String m_projectName;
124 bool m_projectNameHasBeenSet = false;
125
126 Aws::String m_id;
127 bool m_idHasBeenSet = false;
128
130 bool m_idesHasBeenSet = false;
131
132 InstanceType m_instanceType;
133 bool m_instanceTypeHasBeenSet = false;
134
135 int m_inactivityTimeoutMinutes;
136 bool m_inactivityTimeoutMinutesHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace CodeCatalyst
141} // namespace Aws
StartDevEnvironmentRequest & WithSpaceName(Aws::String &&value)
void SetIdes(const Aws::Vector< IdeConfiguration > &value)
const Aws::Vector< IdeConfiguration > & GetIdes() const
StartDevEnvironmentRequest & WithSpaceName(const Aws::String &value)
StartDevEnvironmentRequest & WithId(const char *value)
StartDevEnvironmentRequest & AddIdes(IdeConfiguration &&value)
StartDevEnvironmentRequest & WithInstanceType(InstanceType &&value)
StartDevEnvironmentRequest & WithId(const Aws::String &value)
StartDevEnvironmentRequest & WithProjectName(const Aws::String &value)
StartDevEnvironmentRequest & WithProjectName(const char *value)
StartDevEnvironmentRequest & AddIdes(const IdeConfiguration &value)
void SetIdes(Aws::Vector< IdeConfiguration > &&value)
StartDevEnvironmentRequest & WithInstanceType(const InstanceType &value)
StartDevEnvironmentRequest & WithIdes(Aws::Vector< IdeConfiguration > &&value)
StartDevEnvironmentRequest & WithSpaceName(const char *value)
AWS_CODECATALYST_API Aws::String SerializePayload() const override
StartDevEnvironmentRequest & WithProjectName(Aws::String &&value)
StartDevEnvironmentRequest & WithId(Aws::String &&value)
StartDevEnvironmentRequest & WithIdes(const Aws::Vector< IdeConfiguration > &value)
StartDevEnvironmentRequest & WithInactivityTimeoutMinutes(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector