AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
Project.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
11#include <aws/devicefarm/model/EnvironmentVariable.h>
12#include <aws/devicefarm/model/VpcConfig.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace DeviceFarm {
24namespace Model {
25
32class Project {
33 public:
34 AWS_DEVICEFARM_API Project() = default;
35 AWS_DEVICEFARM_API Project(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEVICEFARM_API Project& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetArn() const { return m_arn; }
44 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
45 template <typename ArnT = Aws::String>
46 void SetArn(ArnT&& value) {
47 m_arnHasBeenSet = true;
48 m_arn = std::forward<ArnT>(value);
49 }
50 template <typename ArnT = Aws::String>
51 Project& WithArn(ArnT&& value) {
52 SetArn(std::forward<ArnT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
69 Project& WithName(NameT&& value) {
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
80 inline int GetDefaultJobTimeoutMinutes() const { return m_defaultJobTimeoutMinutes; }
81 inline bool DefaultJobTimeoutMinutesHasBeenSet() const { return m_defaultJobTimeoutMinutesHasBeenSet; }
82 inline void SetDefaultJobTimeoutMinutes(int value) {
83 m_defaultJobTimeoutMinutesHasBeenSet = true;
84 m_defaultJobTimeoutMinutes = value;
85 }
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
97 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
98 template <typename CreatedT = Aws::Utils::DateTime>
99 void SetCreated(CreatedT&& value) {
100 m_createdHasBeenSet = true;
101 m_created = std::forward<CreatedT>(value);
102 }
103 template <typename CreatedT = Aws::Utils::DateTime>
104 Project& WithCreated(CreatedT&& value) {
105 SetCreated(std::forward<CreatedT>(value));
106 return *this;
107 }
109
111
114 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
115 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
116 template <typename VpcConfigT = VpcConfig>
117 void SetVpcConfig(VpcConfigT&& value) {
118 m_vpcConfigHasBeenSet = true;
119 m_vpcConfig = std::forward<VpcConfigT>(value);
120 }
121 template <typename VpcConfigT = VpcConfig>
122 Project& WithVpcConfig(VpcConfigT&& value) {
123 SetVpcConfig(std::forward<VpcConfigT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Vector<EnvironmentVariable>& GetEnvironmentVariables() const { return m_environmentVariables; }
133 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
134 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
135 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
136 m_environmentVariablesHasBeenSet = true;
137 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
138 }
139 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
140 Project& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
141 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
142 return *this;
143 }
144 template <typename EnvironmentVariablesT = EnvironmentVariable>
145 Project& AddEnvironmentVariables(EnvironmentVariablesT&& value) {
146 m_environmentVariablesHasBeenSet = true;
147 m_environmentVariables.emplace_back(std::forward<EnvironmentVariablesT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
157 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
158 template <typename ExecutionRoleArnT = Aws::String>
159 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
160 m_executionRoleArnHasBeenSet = true;
161 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
162 }
163 template <typename ExecutionRoleArnT = Aws::String>
164 Project& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
165 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
166 return *this;
167 }
169 private:
170 Aws::String m_arn;
171
172 Aws::String m_name;
173
174 int m_defaultJobTimeoutMinutes{0};
175
176 Aws::Utils::DateTime m_created{};
177
178 VpcConfig m_vpcConfig;
179
180 Aws::Vector<EnvironmentVariable> m_environmentVariables;
181
182 Aws::String m_executionRoleArn;
183 bool m_arnHasBeenSet = false;
184 bool m_nameHasBeenSet = false;
185 bool m_defaultJobTimeoutMinutesHasBeenSet = false;
186 bool m_createdHasBeenSet = false;
187 bool m_vpcConfigHasBeenSet = false;
188 bool m_environmentVariablesHasBeenSet = false;
189 bool m_executionRoleArnHasBeenSet = false;
190};
191
192} // namespace Model
193} // namespace DeviceFarm
194} // namespace Aws
const Aws::Vector< EnvironmentVariable > & GetEnvironmentVariables() const
Definition Project.h:132
bool ExecutionRoleArnHasBeenSet() const
Definition Project.h:157
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
Definition Project.h:135
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
Definition Project.h:159
const Aws::Utils::DateTime & GetCreated() const
Definition Project.h:96
const VpcConfig & GetVpcConfig() const
Definition Project.h:114
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
Project & WithCreated(CreatedT &&value)
Definition Project.h:104
void SetDefaultJobTimeoutMinutes(int value)
Definition Project.h:82
Project & WithArn(ArnT &&value)
Definition Project.h:51
AWS_DEVICEFARM_API Project(Aws::Utils::Json::JsonView jsonValue)
Project & WithExecutionRoleArn(ExecutionRoleArnT &&value)
Definition Project.h:164
const Aws::String & GetArn() const
Definition Project.h:43
Project & AddEnvironmentVariables(EnvironmentVariablesT &&value)
Definition Project.h:145
Project & WithName(NameT &&value)
Definition Project.h:69
void SetArn(ArnT &&value)
Definition Project.h:46
AWS_DEVICEFARM_API Project & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVpcConfig(VpcConfigT &&value)
Definition Project.h:117
Project & WithDefaultJobTimeoutMinutes(int value)
Definition Project.h:86
void SetCreated(CreatedT &&value)
Definition Project.h:99
bool EnvironmentVariablesHasBeenSet() const
Definition Project.h:133
int GetDefaultJobTimeoutMinutes() const
Definition Project.h:80
void SetName(NameT &&value)
Definition Project.h:64
AWS_DEVICEFARM_API Project()=default
Project & WithEnvironmentVariables(EnvironmentVariablesT &&value)
Definition Project.h:140
const Aws::String & GetExecutionRoleArn() const
Definition Project.h:156
Project & WithVpcConfig(VpcConfigT &&value)
Definition Project.h:122
const Aws::String & GetName() const
Definition Project.h:61
bool DefaultJobTimeoutMinutesHasBeenSet() const
Definition Project.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue