AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
TestGridSessionAction.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DeviceFarm {
21namespace Model {
22
30 public:
31 AWS_DEVICEFARM_API TestGridSessionAction() = default;
34 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAction() const { return m_action; }
41 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
42 template <typename ActionT = Aws::String>
43 void SetAction(ActionT&& value) {
44 m_actionHasBeenSet = true;
45 m_action = std::forward<ActionT>(value);
46 }
47 template <typename ActionT = Aws::String>
49 SetAction(std::forward<ActionT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Utils::DateTime& GetStarted() const { return m_started; }
59 inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; }
60 template <typename StartedT = Aws::Utils::DateTime>
61 void SetStarted(StartedT&& value) {
62 m_startedHasBeenSet = true;
63 m_started = std::forward<StartedT>(value);
64 }
65 template <typename StartedT = Aws::Utils::DateTime>
67 SetStarted(std::forward<StartedT>(value));
68 return *this;
69 }
71
73
77 inline long long GetDuration() const { return m_duration; }
78 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
79 inline void SetDuration(long long value) {
80 m_durationHasBeenSet = true;
81 m_duration = value;
82 }
83 inline TestGridSessionAction& WithDuration(long long value) {
84 SetDuration(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetStatusCode() const { return m_statusCode; }
94 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
95 template <typename StatusCodeT = Aws::String>
96 void SetStatusCode(StatusCodeT&& value) {
97 m_statusCodeHasBeenSet = true;
98 m_statusCode = std::forward<StatusCodeT>(value);
99 }
100 template <typename StatusCodeT = Aws::String>
101 TestGridSessionAction& WithStatusCode(StatusCodeT&& value) {
102 SetStatusCode(std::forward<StatusCodeT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetRequestMethod() const { return m_requestMethod; }
112 inline bool RequestMethodHasBeenSet() const { return m_requestMethodHasBeenSet; }
113 template <typename RequestMethodT = Aws::String>
114 void SetRequestMethod(RequestMethodT&& value) {
115 m_requestMethodHasBeenSet = true;
116 m_requestMethod = std::forward<RequestMethodT>(value);
117 }
118 template <typename RequestMethodT = Aws::String>
119 TestGridSessionAction& WithRequestMethod(RequestMethodT&& value) {
120 SetRequestMethod(std::forward<RequestMethodT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_action;
126
127 Aws::Utils::DateTime m_started{};
128
129 long long m_duration{0};
130
131 Aws::String m_statusCode;
132
133 Aws::String m_requestMethod;
134 bool m_actionHasBeenSet = false;
135 bool m_startedHasBeenSet = false;
136 bool m_durationHasBeenSet = false;
137 bool m_statusCodeHasBeenSet = false;
138 bool m_requestMethodHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace DeviceFarm
143} // namespace Aws
TestGridSessionAction & WithDuration(long long value)
TestGridSessionAction & WithRequestMethod(RequestMethodT &&value)
AWS_DEVICEFARM_API TestGridSessionAction()=default
AWS_DEVICEFARM_API TestGridSessionAction(Aws::Utils::Json::JsonView jsonValue)
TestGridSessionAction & WithAction(ActionT &&value)
AWS_DEVICEFARM_API TestGridSessionAction & operator=(Aws::Utils::Json::JsonView jsonValue)
TestGridSessionAction & WithStatusCode(StatusCodeT &&value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetStarted() const
TestGridSessionAction & WithStarted(StartedT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue