AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateProjectRequest.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 UpdateProjectRequest() = 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 "UpdateProject"; }
35
36 AWS_DEVICEFARM_API Aws::String SerializePayload() const override;
37
39
41
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetName() const { return m_name; }
64 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
65 template <typename NameT = Aws::String>
66 void SetName(NameT&& value) {
67 m_nameHasBeenSet = true;
68 m_name = std::forward<NameT>(value);
69 }
70 template <typename NameT = Aws::String>
72 SetName(std::forward<NameT>(value));
73 return *this;
74 }
76
78
82 inline int GetDefaultJobTimeoutMinutes() const { return m_defaultJobTimeoutMinutes; }
83 inline bool DefaultJobTimeoutMinutesHasBeenSet() const { return m_defaultJobTimeoutMinutesHasBeenSet; }
84 inline void SetDefaultJobTimeoutMinutes(int value) {
85 m_defaultJobTimeoutMinutesHasBeenSet = true;
86 m_defaultJobTimeoutMinutes = value;
87 }
90 return *this;
91 }
93
95
98 inline const VpcConfig& GetVpcConfig() const { return m_vpcConfig; }
99 inline bool VpcConfigHasBeenSet() const { return m_vpcConfigHasBeenSet; }
100 template <typename VpcConfigT = VpcConfig>
101 void SetVpcConfig(VpcConfigT&& value) {
102 m_vpcConfigHasBeenSet = true;
103 m_vpcConfig = std::forward<VpcConfigT>(value);
104 }
105 template <typename VpcConfigT = VpcConfig>
106 UpdateProjectRequest& WithVpcConfig(VpcConfigT&& value) {
107 SetVpcConfig(std::forward<VpcConfigT>(value));
108 return *this;
109 }
111
113
121 inline const Aws::Vector<EnvironmentVariable>& GetEnvironmentVariables() const { return m_environmentVariables; }
122 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
123 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
124 void SetEnvironmentVariables(EnvironmentVariablesT&& value) {
125 m_environmentVariablesHasBeenSet = true;
126 m_environmentVariables = std::forward<EnvironmentVariablesT>(value);
127 }
128 template <typename EnvironmentVariablesT = Aws::Vector<EnvironmentVariable>>
129 UpdateProjectRequest& WithEnvironmentVariables(EnvironmentVariablesT&& value) {
130 SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value));
131 return *this;
132 }
133 template <typename EnvironmentVariablesT = EnvironmentVariable>
134 UpdateProjectRequest& AddEnvironmentVariables(EnvironmentVariablesT&& value) {
135 m_environmentVariablesHasBeenSet = true;
136 m_environmentVariables.emplace_back(std::forward<EnvironmentVariablesT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetExecutionRoleArn() const { return m_executionRoleArn; }
146 inline bool ExecutionRoleArnHasBeenSet() const { return m_executionRoleArnHasBeenSet; }
147 template <typename ExecutionRoleArnT = Aws::String>
148 void SetExecutionRoleArn(ExecutionRoleArnT&& value) {
149 m_executionRoleArnHasBeenSet = true;
150 m_executionRoleArn = std::forward<ExecutionRoleArnT>(value);
151 }
152 template <typename ExecutionRoleArnT = Aws::String>
153 UpdateProjectRequest& WithExecutionRoleArn(ExecutionRoleArnT&& value) {
154 SetExecutionRoleArn(std::forward<ExecutionRoleArnT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_arn;
160
161 Aws::String m_name;
162
163 int m_defaultJobTimeoutMinutes{0};
164
165 VpcConfig m_vpcConfig;
166
167 Aws::Vector<EnvironmentVariable> m_environmentVariables;
168
169 Aws::String m_executionRoleArn;
170 bool m_arnHasBeenSet = false;
171 bool m_nameHasBeenSet = false;
172 bool m_defaultJobTimeoutMinutesHasBeenSet = false;
173 bool m_vpcConfigHasBeenSet = false;
174 bool m_environmentVariablesHasBeenSet = false;
175 bool m_executionRoleArnHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace DeviceFarm
180} // namespace Aws
UpdateProjectRequest & WithEnvironmentVariables(EnvironmentVariablesT &&value)
UpdateProjectRequest & WithVpcConfig(VpcConfigT &&value)
UpdateProjectRequest & WithDefaultJobTimeoutMinutes(int value)
UpdateProjectRequest & WithArn(ArnT &&value)
UpdateProjectRequest & WithExecutionRoleArn(ExecutionRoleArnT &&value)
virtual const char * GetServiceRequestName() const override
void SetExecutionRoleArn(ExecutionRoleArnT &&value)
AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
AWS_DEVICEFARM_API Aws::String SerializePayload() const override
const Aws::Vector< EnvironmentVariable > & GetEnvironmentVariables() const
UpdateProjectRequest & AddEnvironmentVariables(EnvironmentVariablesT &&value)
UpdateProjectRequest & WithName(NameT &&value)
AWS_DEVICEFARM_API UpdateProjectRequest()=default
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