AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ActionT = Aws::String>
49 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
50 template<typename ActionT = Aws::String>
51 TestGridSessionAction& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
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) { m_startedHasBeenSet = true; m_started = std::forward<StartedT>(value); }
62 template<typename StartedT = Aws::Utils::DateTime>
63 TestGridSessionAction& WithStarted(StartedT&& value) { SetStarted(std::forward<StartedT>(value)); return *this;}
65
67
71 inline long long GetDuration() const { return m_duration; }
72 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
73 inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; }
74 inline TestGridSessionAction& WithDuration(long long value) { SetDuration(value); return *this;}
76
78
81 inline const Aws::String& GetStatusCode() const { return m_statusCode; }
82 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
83 template<typename StatusCodeT = Aws::String>
84 void SetStatusCode(StatusCodeT&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::forward<StatusCodeT>(value); }
85 template<typename StatusCodeT = Aws::String>
86 TestGridSessionAction& WithStatusCode(StatusCodeT&& value) { SetStatusCode(std::forward<StatusCodeT>(value)); return *this;}
88
90
93 inline const Aws::String& GetRequestMethod() const { return m_requestMethod; }
94 inline bool RequestMethodHasBeenSet() const { return m_requestMethodHasBeenSet; }
95 template<typename RequestMethodT = Aws::String>
96 void SetRequestMethod(RequestMethodT&& value) { m_requestMethodHasBeenSet = true; m_requestMethod = std::forward<RequestMethodT>(value); }
97 template<typename RequestMethodT = Aws::String>
98 TestGridSessionAction& WithRequestMethod(RequestMethodT&& value) { SetRequestMethod(std::forward<RequestMethodT>(value)); return *this;}
100 private:
101
102 Aws::String m_action;
103 bool m_actionHasBeenSet = false;
104
105 Aws::Utils::DateTime m_started{};
106 bool m_startedHasBeenSet = false;
107
108 long long m_duration{0};
109 bool m_durationHasBeenSet = false;
110
111 Aws::String m_statusCode;
112 bool m_statusCodeHasBeenSet = false;
113
114 Aws::String m_requestMethod;
115 bool m_requestMethodHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace DeviceFarm
120} // 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