AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
CreateProjectRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devicefarm/DeviceFarmRequest.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 DeviceFarm {
18namespace Model {
19
27 public:
28 AWS_DEVICEFARM_API CreateProjectRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateProject"; }
35
36 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
37
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
64 inline int GetDefaultJobTimeoutMinutes() const { return m_defaultJobTimeoutMinutes; }
65 inline bool DefaultJobTimeoutMinutesHasBeenSet() const { return m_defaultJobTimeoutMinutesHasBeenSet; }
66 inline void SetDefaultJobTimeoutMinutes(int value) {
67 m_defaultJobTimeoutMinutesHasBeenSet = true;
68 m_defaultJobTimeoutMinutes = value;
69 }
72 return *this;
73 }
75
77
80 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
81 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
82 template <typename VpcConfigT = VpcConfig>
83 void SetVpcConfig(VpcConfigT&& value) {
84 m_vpcConfigHasBeenSet = true;
85 m_vpcConfig = std::forward<VpcConfigT>(value);
86 }
87 template <typename VpcConfigT = VpcConfig>
88 CreateProjectRequest& WithVpcConfig(VpcConfigT&& value) {
89 SetVpcConfig(std::forward<VpcConfigT>(value));
90 return *this;
91 }
93
95
103 inline const Aws::Vector<EnvironmentVariable>& GetEnvironmentVariables() const { return m_environmentVariables; }
104 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
105 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
106 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
107 m_environmentVariablesHasBeenSet = true;
108 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
109 }
110 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
111 CreateProjectRequest& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
112 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
113 return *this;
114 }
115 template <typename EnvironmentVariablesT = EnvironmentVariable>
116 CreateProjectRequest& AddEnvironmentVariables(EnvironmentVariablesT&& value) {
117 m_environmentVariablesHasBeenSet = true;
118 m_environmentVariables.emplace_back(std::forward<EnvironmentVariablesT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
128 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
129 template <typename ExecutionRoleArnT = Aws::String>
130 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
131 m_executionRoleArnHasBeenSet = true;
132 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
133 }
134 template <typename ExecutionRoleArnT = Aws::String>
135 CreateProjectRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
136 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_name;
142
143 int m_defaultJobTimeoutMinutes{0};
144
145 VpcConfig m_vpcConfig;
146
147 Aws::Vector<EnvironmentVariable> m_environmentVariables;
148
149 Aws::String m_executionRoleArn;
150 bool m_nameHasBeenSet = false;
151 bool m_defaultJobTimeoutMinutesHasBeenSet = false;
152 bool m_vpcConfigHasBeenSet = false;
153 bool m_environmentVariablesHasBeenSet = false;
154 bool m_executionRoleArnHasBeenSet = false;
155};
156
157} // namespace Model
158} // namespace DeviceFarm
159} // namespace Aws
virtual const char * GetServiceRequestName() const override
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
CreateProjectRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
CreateProjectRequest & WithName(NameT &&value)
CreateProjectRequest & AddEnvironmentVariables(EnvironmentVariablesT &&value)
AWS_DEVICEFARM_API CreateProjectRequest()=default
CreateProjectRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateProjectRequest & WithDefaultJobTimeoutMinutes(int value)
const Aws::Vector< EnvironmentVariable > & GetEnvironmentVariables() const
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
CreateProjectRequest & WithVpcConfig(VpcConfigT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector