AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TestGridSessionAction.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DeviceFarm
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DEVICEFARM_API TestGridSessionAction();
39 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAction() const{ return m_action; }
47 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
48 inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
49 inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
50 inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
51 inline TestGridSessionAction& WithAction(const Aws::String& value) { SetAction(value); return *this;}
52 inline TestGridSessionAction& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
53 inline TestGridSessionAction& WithAction(const char* value) { SetAction(value); return *this;}
55
57
60 inline const Aws::Utils::DateTime& GetStarted() const{ return m_started; }
61 inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
62 inline void SetStarted(const Aws::Utils::DateTime& value) { m_startedHasBeenSet = true; m_started = value; }
63 inline void SetStarted(Aws::Utils::DateTime&& value) { m_startedHasBeenSet = true; m_started = std::move(value); }
64 inline TestGridSessionAction& WithStarted(const Aws::Utils::DateTime& value) { SetStarted(value); return *this;}
65 inline TestGridSessionAction& WithStarted(Aws::Utils::DateTime&& value) { SetStarted(std::move(value)); return *this;}
67
69
73 inline long long GetDuration() const{ return m_duration; }
74 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
75 inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; }
76 inline TestGridSessionAction& WithDuration(long long value) { SetDuration(value); return *this;}
78
80
83 inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
84 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
85 inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
86 inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
87 inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
88 inline TestGridSessionAction& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
89 inline TestGridSessionAction& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
90 inline TestGridSessionAction& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
92
94
97 inline const Aws::String& GetRequestMethod() const{ return m_requestMethod; }
98 inline bool RequestMethodHasBeenSet() const { return m_requestMethodHasBeenSet; }
99 inline void SetRequestMethod(const Aws::String& value) { m_requestMethodHasBeenSet = true; m_requestMethod = value; }
100 inline void SetRequestMethod(Aws::String&& value) { m_requestMethodHasBeenSet = true; m_requestMethod = std::move(value); }
101 inline void SetRequestMethod(const char* value) { m_requestMethodHasBeenSet = true; m_requestMethod.assign(value); }
102 inline TestGridSessionAction& WithRequestMethod(const Aws::String& value) { SetRequestMethod(value); return *this;}
103 inline TestGridSessionAction& WithRequestMethod(Aws::String&& value) { SetRequestMethod(std::move(value)); return *this;}
104 inline TestGridSessionAction& WithRequestMethod(const char* value) { SetRequestMethod(value); return *this;}
106 private:
107
108 Aws::String m_action;
109 bool m_actionHasBeenSet = false;
110
111 Aws::Utils::DateTime m_started;
112 bool m_startedHasBeenSet = false;
113
114 long long m_duration;
115 bool m_durationHasBeenSet = false;
116
117 Aws::String m_statusCode;
118 bool m_statusCodeHasBeenSet = false;
119
120 Aws::String m_requestMethod;
121 bool m_requestMethodHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace DeviceFarm
126} // namespace Aws
TestGridSessionAction & WithStatusCode(Aws::String &&value)
TestGridSessionAction & WithDuration(long long value)
TestGridSessionAction & WithRequestMethod(Aws::String &&value)
void SetStarted(const Aws::Utils::DateTime &value)
AWS_DEVICEFARM_API TestGridSessionAction(Aws::Utils::Json::JsonView jsonValue)
TestGridSessionAction & WithStatusCode(const Aws::String &value)
AWS_DEVICEFARM_API TestGridSessionAction & operator=(Aws::Utils::Json::JsonView jsonValue)
TestGridSessionAction & WithAction(Aws::String &&value)
TestGridSessionAction & WithRequestMethod(const Aws::String &value)
TestGridSessionAction & WithStarted(Aws::Utils::DateTime &&value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
TestGridSessionAction & WithRequestMethod(const char *value)
TestGridSessionAction & WithStarted(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetStarted() const
TestGridSessionAction & WithAction(const char *value)
void SetStarted(Aws::Utils::DateTime &&value)
TestGridSessionAction & WithStatusCode(const char *value)
TestGridSessionAction & WithAction(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue