AWS SDK for C++  1.9.175
AWS SDK for C++
TestGridSessionAction.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace DeviceFarm
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetAction() const{ return m_action; }
46 
50  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
51 
55  inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
56 
60  inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
61 
65  inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
66 
70  inline TestGridSessionAction& WithAction(const Aws::String& value) { SetAction(value); return *this;}
71 
75  inline TestGridSessionAction& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
76 
80  inline TestGridSessionAction& WithAction(const char* value) { SetAction(value); return *this;}
81 
82 
86  inline const Aws::Utils::DateTime& GetStarted() const{ return m_started; }
87 
91  inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
92 
96  inline void SetStarted(const Aws::Utils::DateTime& value) { m_startedHasBeenSet = true; m_started = value; }
97 
101  inline void SetStarted(Aws::Utils::DateTime&& value) { m_startedHasBeenSet = true; m_started = std::move(value); }
102 
106  inline TestGridSessionAction& WithStarted(const Aws::Utils::DateTime& value) { SetStarted(value); return *this;}
107 
111  inline TestGridSessionAction& WithStarted(Aws::Utils::DateTime&& value) { SetStarted(std::move(value)); return *this;}
112 
113 
118  inline long long GetDuration() const{ return m_duration; }
119 
124  inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
125 
130  inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; }
131 
136  inline TestGridSessionAction& WithDuration(long long value) { SetDuration(value); return *this;}
137 
138 
142  inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
143 
147  inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
148 
152  inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
153 
157  inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
158 
162  inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
163 
167  inline TestGridSessionAction& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
168 
172  inline TestGridSessionAction& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
173 
177  inline TestGridSessionAction& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
178 
179 
183  inline const Aws::String& GetRequestMethod() const{ return m_requestMethod; }
184 
188  inline bool RequestMethodHasBeenSet() const { return m_requestMethodHasBeenSet; }
189 
193  inline void SetRequestMethod(const Aws::String& value) { m_requestMethodHasBeenSet = true; m_requestMethod = value; }
194 
198  inline void SetRequestMethod(Aws::String&& value) { m_requestMethodHasBeenSet = true; m_requestMethod = std::move(value); }
199 
203  inline void SetRequestMethod(const char* value) { m_requestMethodHasBeenSet = true; m_requestMethod.assign(value); }
204 
208  inline TestGridSessionAction& WithRequestMethod(const Aws::String& value) { SetRequestMethod(value); return *this;}
209 
213  inline TestGridSessionAction& WithRequestMethod(Aws::String&& value) { SetRequestMethod(std::move(value)); return *this;}
214 
218  inline TestGridSessionAction& WithRequestMethod(const char* value) { SetRequestMethod(value); return *this;}
219 
220  private:
221 
222  Aws::String m_action;
223  bool m_actionHasBeenSet;
224 
225  Aws::Utils::DateTime m_started;
226  bool m_startedHasBeenSet;
227 
228  long long m_duration;
229  bool m_durationHasBeenSet;
230 
231  Aws::String m_statusCode;
232  bool m_statusCodeHasBeenSet;
233 
234  Aws::String m_requestMethod;
235  bool m_requestMethodHasBeenSet;
236  };
237 
238 } // namespace Model
239 } // namespace DeviceFarm
240 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::DeviceFarm::Model::TestGridSessionAction::WithStatusCode
TestGridSessionAction & WithStatusCode(const char *value)
Definition: TestGridSessionAction.h:177
Aws::DeviceFarm::Model::TestGridSessionAction::StartedHasBeenSet
bool StartedHasBeenSet() const
Definition: TestGridSessionAction.h:91
Aws::DeviceFarm::Model::TestGridSessionAction::WithStatusCode
TestGridSessionAction & WithStatusCode(Aws::String &&value)
Definition: TestGridSessionAction.h:172
Aws::DeviceFarm::Model::TestGridSessionAction::SetRequestMethod
void SetRequestMethod(const char *value)
Definition: TestGridSessionAction.h:203
Aws::DeviceFarm::Model::TestGridSessionAction::SetStarted
void SetStarted(const Aws::Utils::DateTime &value)
Definition: TestGridSessionAction.h:96
Aws::DeviceFarm::Model::TestGridSessionAction::SetRequestMethod
void SetRequestMethod(const Aws::String &value)
Definition: TestGridSessionAction.h:193
Aws::DeviceFarm::Model::TestGridSessionAction::RequestMethodHasBeenSet
bool RequestMethodHasBeenSet() const
Definition: TestGridSessionAction.h:188
Aws::DeviceFarm::Model::TestGridSessionAction::GetRequestMethod
const Aws::String & GetRequestMethod() const
Definition: TestGridSessionAction.h:183
Aws::DeviceFarm::Model::TestGridSessionAction::SetStatusCode
void SetStatusCode(Aws::String &&value)
Definition: TestGridSessionAction.h:157
Aws::DeviceFarm::Model::TestGridSessionAction::WithDuration
TestGridSessionAction & WithDuration(long long value)
Definition: TestGridSessionAction.h:136
Aws::DeviceFarm::Model::TestGridSessionAction
Definition: TestGridSessionAction.h:34
DateTime.h
Aws::DeviceFarm::Model::TestGridSessionAction::SetAction
void SetAction(Aws::String &&value)
Definition: TestGridSessionAction.h:60
Aws::DeviceFarm::Model::TestGridSessionAction::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: TestGridSessionAction.h:50
Aws::DeviceFarm::Model::TestGridSessionAction::WithStarted
TestGridSessionAction & WithStarted(Aws::Utils::DateTime &&value)
Definition: TestGridSessionAction.h:111
Aws::DeviceFarm::Model::TestGridSessionAction::SetStatusCode
void SetStatusCode(const char *value)
Definition: TestGridSessionAction.h:162
Aws::DeviceFarm::Model::TestGridSessionAction::SetAction
void SetAction(const char *value)
Definition: TestGridSessionAction.h:65
Aws::DeviceFarm::Model::TestGridSessionAction::GetStatusCode
const Aws::String & GetStatusCode() const
Definition: TestGridSessionAction.h:142
Aws::DeviceFarm::Model::TestGridSessionAction::WithRequestMethod
TestGridSessionAction & WithRequestMethod(const Aws::String &value)
Definition: TestGridSessionAction.h:208
Aws::DeviceFarm::Model::TestGridSessionAction::GetAction
const Aws::String & GetAction() const
Definition: TestGridSessionAction.h:45
Aws::DeviceFarm::Model::TestGridSessionAction::WithRequestMethod
TestGridSessionAction & WithRequestMethod(const char *value)
Definition: TestGridSessionAction.h:218
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::TestGridSessionAction::SetAction
void SetAction(const Aws::String &value)
Definition: TestGridSessionAction.h:55
Aws::DeviceFarm::Model::TestGridSessionAction::WithAction
TestGridSessionAction & WithAction(const Aws::String &value)
Definition: TestGridSessionAction.h:70
Aws::DeviceFarm::Model::TestGridSessionAction::GetStarted
const Aws::Utils::DateTime & GetStarted() const
Definition: TestGridSessionAction.h:86
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::DeviceFarm::Model::TestGridSessionAction::DurationHasBeenSet
bool DurationHasBeenSet() const
Definition: TestGridSessionAction.h:124
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DeviceFarm::Model::TestGridSessionAction::WithAction
TestGridSessionAction & WithAction(const char *value)
Definition: TestGridSessionAction.h:80
Aws::DeviceFarm::Model::TestGridSessionAction::StatusCodeHasBeenSet
bool StatusCodeHasBeenSet() const
Definition: TestGridSessionAction.h:147
Aws::DeviceFarm::Model::TestGridSessionAction::TestGridSessionAction
TestGridSessionAction(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::TestGridSessionAction::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DeviceFarm::Model::TestGridSessionAction::SetRequestMethod
void SetRequestMethod(Aws::String &&value)
Definition: TestGridSessionAction.h:198
Aws::DeviceFarm::Model::TestGridSessionAction::WithStatusCode
TestGridSessionAction & WithStatusCode(const Aws::String &value)
Definition: TestGridSessionAction.h:167
Aws::DeviceFarm::Model::TestGridSessionAction::SetStatusCode
void SetStatusCode(const Aws::String &value)
Definition: TestGridSessionAction.h:152
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::DeviceFarm::Model::TestGridSessionAction::SetDuration
void SetDuration(long long value)
Definition: TestGridSessionAction.h:130
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
Aws::DeviceFarm::Model::TestGridSessionAction::SetStarted
void SetStarted(Aws::Utils::DateTime &&value)
Definition: TestGridSessionAction.h:101
Aws::DeviceFarm::Model::TestGridSessionAction::operator=
TestGridSessionAction & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::TestGridSessionAction::TestGridSessionAction
TestGridSessionAction()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DeviceFarm::Model::TestGridSessionAction::GetDuration
long long GetDuration() const
Definition: TestGridSessionAction.h:118
Aws::DeviceFarm::Model::TestGridSessionAction::WithRequestMethod
TestGridSessionAction & WithRequestMethod(Aws::String &&value)
Definition: TestGridSessionAction.h:213
Aws::DeviceFarm::Model::TestGridSessionAction::WithAction
TestGridSessionAction & WithAction(Aws::String &&value)
Definition: TestGridSessionAction.h:75
Aws::DeviceFarm::Model::TestGridSessionAction::WithStarted
TestGridSessionAction & WithStarted(const Aws::Utils::DateTime &value)
Definition: TestGridSessionAction.h:106