AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
TestGridSession.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#include <aws/devicefarm/model/TestGridSessionStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DeviceFarm {
22namespace Model {
23
32 public:
33 AWS_DEVICEFARM_API TestGridSession() = default;
34 AWS_DEVICEFARM_API TestGridSession(Aws::Utils::Json::JsonView jsonValue);
36 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
50 TestGridSession& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline TestGridSessionStatus GetStatus() const { return m_status; }
61 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
62 inline void SetStatus(TestGridSessionStatus value) {
63 m_statusHasBeenSet = true;
64 m_status = value;
65 }
67 SetStatus(value);
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetCreated() const { return m_created; }
77 inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; }
78 template <typename CreatedT = Aws::Utils::DateTime>
79 void SetCreated(CreatedT&& value) {
80 m_createdHasBeenSet = true;
81 m_created = std::forward<CreatedT>(value);
82 }
83 template <typename CreatedT = Aws::Utils::DateTime>
84 TestGridSession& WithCreated(CreatedT&& value) {
85 SetCreated(std::forward<CreatedT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetEnded() const { return m_ended; }
95 inline bool EndedHasBeenSet() const { return m_endedHasBeenSet; }
96 template <typename EndedT = Aws::Utils::DateTime>
97 void SetEnded(EndedT&& value) {
98 m_endedHasBeenSet = true;
99 m_ended = std::forward<EndedT>(value);
100 }
101 template <typename EndedT = Aws::Utils::DateTime>
102 TestGridSession& WithEnded(EndedT&& value) {
103 SetEnded(std::forward<EndedT>(value));
104 return *this;
105 }
107
109
112 inline double GetBillingMinutes() const { return m_billingMinutes; }
113 inline bool BillingMinutesHasBeenSet() const { return m_billingMinutesHasBeenSet; }
114 inline void SetBillingMinutes(double value) {
115 m_billingMinutesHasBeenSet = true;
116 m_billingMinutes = value;
117 }
118 inline TestGridSession& WithBillingMinutes(double value) {
119 SetBillingMinutes(value);
120 return *this;
121 }
123
125
128 inline const Aws::String& GetSeleniumProperties() const { return m_seleniumProperties; }
129 inline bool SeleniumPropertiesHasBeenSet() const { return m_seleniumPropertiesHasBeenSet; }
130 template <typename SeleniumPropertiesT = Aws::String>
131 void SetSeleniumProperties(SeleniumPropertiesT&& value) {
132 m_seleniumPropertiesHasBeenSet = true;
133 m_seleniumProperties = std::forward<SeleniumPropertiesT>(value);
134 }
135 template <typename SeleniumPropertiesT = Aws::String>
136 TestGridSession& WithSeleniumProperties(SeleniumPropertiesT&& value) {
137 SetSeleniumProperties(std::forward<SeleniumPropertiesT>(value));
138 return *this;
139 }
141 private:
142 Aws::String m_arn;
143
145
146 Aws::Utils::DateTime m_created{};
147
148 Aws::Utils::DateTime m_ended{};
149
150 double m_billingMinutes{0.0};
151
152 Aws::String m_seleniumProperties;
153 bool m_arnHasBeenSet = false;
154 bool m_statusHasBeenSet = false;
155 bool m_createdHasBeenSet = false;
156 bool m_endedHasBeenSet = false;
157 bool m_billingMinutesHasBeenSet = false;
158 bool m_seleniumPropertiesHasBeenSet = false;
159};
160
161} // namespace Model
162} // namespace DeviceFarm
163} // namespace Aws
TestGridSession & WithSeleniumProperties(SeleniumPropertiesT &&value)
TestGridSession & WithEnded(EndedT &&value)
TestGridSession & WithStatus(TestGridSessionStatus value)
const Aws::Utils::DateTime & GetEnded() const
TestGridSession & WithCreated(CreatedT &&value)
TestGridSession & WithArn(ArnT &&value)
const Aws::String & GetArn() const
const Aws::String & GetSeleniumProperties() const
void SetStatus(TestGridSessionStatus value)
AWS_DEVICEFARM_API TestGridSession & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreated() const
TestGridSessionStatus GetStatus() const
AWS_DEVICEFARM_API TestGridSession()=default
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEVICEFARM_API TestGridSession(Aws::Utils::Json::JsonView jsonValue)
TestGridSession & WithBillingMinutes(double value)
void SetSeleniumProperties(SeleniumPropertiesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue