AWS SDK for C++  0.14.3
AWS SDK for C++
RemoteAccessSession.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
24 
25 namespace Aws
26 {
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace DeviceFarm
35 {
36 namespace Model
37 {
38 
43  {
44  public:
47  RemoteAccessSession& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
48  Aws::Utils::Json::JsonValue Jsonize() const;
49 
53  inline const Aws::String& GetArn() const{ return m_arn; }
54 
58  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
59 
63  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
64 
68  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
69 
73  inline RemoteAccessSession& WithArn(const Aws::String& value) { SetArn(value); return *this;}
74 
78  inline RemoteAccessSession& WithArn(Aws::String&& value) { SetArn(value); return *this;}
79 
83  inline RemoteAccessSession& WithArn(const char* value) { SetArn(value); return *this;}
84 
88  inline const Aws::String& GetName() const{ return m_name; }
89 
93  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
94 
98  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = value; }
99 
103  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
104 
108  inline RemoteAccessSession& WithName(const Aws::String& value) { SetName(value); return *this;}
109 
113  inline RemoteAccessSession& WithName(Aws::String&& value) { SetName(value); return *this;}
114 
118  inline RemoteAccessSession& WithName(const char* value) { SetName(value); return *this;}
119 
123  inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; }
124 
128  inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; }
129 
133  inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = value; }
134 
138  inline RemoteAccessSession& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;}
139 
143  inline RemoteAccessSession& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(value); return *this;}
144 
154  inline const ExecutionStatus& GetStatus() const{ return m_status; }
155 
165  inline void SetStatus(const ExecutionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
166 
176  inline void SetStatus(ExecutionStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
177 
187  inline RemoteAccessSession& WithStatus(const ExecutionStatus& value) { SetStatus(value); return *this;}
188 
198  inline RemoteAccessSession& WithStatus(ExecutionStatus&& value) { SetStatus(value); return *this;}
199 
208  inline const ExecutionResult& GetResult() const{ return m_result; }
209 
218  inline void SetResult(const ExecutionResult& value) { m_resultHasBeenSet = true; m_result = value; }
219 
228  inline void SetResult(ExecutionResult&& value) { m_resultHasBeenSet = true; m_result = value; }
229 
238  inline RemoteAccessSession& WithResult(const ExecutionResult& value) { SetResult(value); return *this;}
239 
248  inline RemoteAccessSession& WithResult(ExecutionResult&& value) { SetResult(value); return *this;}
249 
253  inline const Aws::String& GetMessage() const{ return m_message; }
254 
258  inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
259 
263  inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = value; }
264 
268  inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
269 
273  inline RemoteAccessSession& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
274 
278  inline RemoteAccessSession& WithMessage(Aws::String&& value) { SetMessage(value); return *this;}
279 
283  inline RemoteAccessSession& WithMessage(const char* value) { SetMessage(value); return *this;}
284 
288  inline const Aws::Utils::DateTime& GetStarted() const{ return m_started; }
289 
293  inline void SetStarted(const Aws::Utils::DateTime& value) { m_startedHasBeenSet = true; m_started = value; }
294 
298  inline void SetStarted(Aws::Utils::DateTime&& value) { m_startedHasBeenSet = true; m_started = value; }
299 
303  inline RemoteAccessSession& WithStarted(const Aws::Utils::DateTime& value) { SetStarted(value); return *this;}
304 
308  inline RemoteAccessSession& WithStarted(Aws::Utils::DateTime&& value) { SetStarted(value); return *this;}
309 
313  inline const Aws::Utils::DateTime& GetStopped() const{ return m_stopped; }
314 
318  inline void SetStopped(const Aws::Utils::DateTime& value) { m_stoppedHasBeenSet = true; m_stopped = value; }
319 
323  inline void SetStopped(Aws::Utils::DateTime&& value) { m_stoppedHasBeenSet = true; m_stopped = value; }
324 
328  inline RemoteAccessSession& WithStopped(const Aws::Utils::DateTime& value) { SetStopped(value); return *this;}
329 
333  inline RemoteAccessSession& WithStopped(Aws::Utils::DateTime&& value) { SetStopped(value); return *this;}
334 
335 
336  inline const Device& GetDevice() const{ return m_device; }
337 
338 
339  inline void SetDevice(const Device& value) { m_deviceHasBeenSet = true; m_device = value; }
340 
341 
342  inline void SetDevice(Device&& value) { m_deviceHasBeenSet = true; m_device = value; }
343 
344 
345  inline RemoteAccessSession& WithDevice(const Device& value) { SetDevice(value); return *this;}
346 
347 
348  inline RemoteAccessSession& WithDevice(Device&& value) { SetDevice(value); return *this;}
349 
357  inline const BillingMethod& GetBillingMethod() const{ return m_billingMethod; }
358 
366  inline void SetBillingMethod(const BillingMethod& value) { m_billingMethodHasBeenSet = true; m_billingMethod = value; }
367 
375  inline void SetBillingMethod(BillingMethod&& value) { m_billingMethodHasBeenSet = true; m_billingMethod = value; }
376 
384  inline RemoteAccessSession& WithBillingMethod(const BillingMethod& value) { SetBillingMethod(value); return *this;}
385 
393  inline RemoteAccessSession& WithBillingMethod(BillingMethod&& value) { SetBillingMethod(value); return *this;}
394 
395 
396  inline const DeviceMinutes& GetDeviceMinutes() const{ return m_deviceMinutes; }
397 
398 
399  inline void SetDeviceMinutes(const DeviceMinutes& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = value; }
400 
401 
402  inline void SetDeviceMinutes(DeviceMinutes&& value) { m_deviceMinutesHasBeenSet = true; m_deviceMinutes = value; }
403 
404 
405  inline RemoteAccessSession& WithDeviceMinutes(const DeviceMinutes& value) { SetDeviceMinutes(value); return *this;}
406 
407 
408  inline RemoteAccessSession& WithDeviceMinutes(DeviceMinutes&& value) { SetDeviceMinutes(value); return *this;}
409 
413  inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
414 
418  inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
419 
423  inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
424 
428  inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
429 
433  inline RemoteAccessSession& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
434 
438  inline RemoteAccessSession& WithEndpoint(Aws::String&& value) { SetEndpoint(value); return *this;}
439 
443  inline RemoteAccessSession& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
444 
445  private:
446  Aws::String m_arn;
447  bool m_arnHasBeenSet;
448  Aws::String m_name;
449  bool m_nameHasBeenSet;
450  Aws::Utils::DateTime m_created;
451  bool m_createdHasBeenSet;
452  ExecutionStatus m_status;
453  bool m_statusHasBeenSet;
454  ExecutionResult m_result;
455  bool m_resultHasBeenSet;
456  Aws::String m_message;
457  bool m_messageHasBeenSet;
458  Aws::Utils::DateTime m_started;
459  bool m_startedHasBeenSet;
460  Aws::Utils::DateTime m_stopped;
461  bool m_stoppedHasBeenSet;
462  Device m_device;
463  bool m_deviceHasBeenSet;
464  BillingMethod m_billingMethod;
465  bool m_billingMethodHasBeenSet;
466  DeviceMinutes m_deviceMinutes;
467  bool m_deviceMinutesHasBeenSet;
468  Aws::String m_endpoint;
469  bool m_endpointHasBeenSet;
470  };
471 
472 } // namespace Model
473 } // namespace DeviceFarm
474 } // namespace Aws
RemoteAccessSession & WithStatus(ExecutionStatus &&value)
#define AWS_DEVICEFARM_API
RemoteAccessSession & WithArn(Aws::String &&value)
void SetStopped(Aws::Utils::DateTime &&value)
const ExecutionResult & GetResult() const
void SetResult(const ExecutionResult &value)
RemoteAccessSession & WithName(const char *value)
RemoteAccessSession & WithStarted(Aws::Utils::DateTime &&value)
const DeviceMinutes & GetDeviceMinutes() const
RemoteAccessSession & WithCreated(Aws::Utils::DateTime &&value)
void SetStatus(const ExecutionStatus &value)
RemoteAccessSession & WithResult(const ExecutionResult &value)
void SetStarted(Aws::Utils::DateTime &&value)
RemoteAccessSession & WithStatus(const ExecutionStatus &value)
RemoteAccessSession & WithBillingMethod(const BillingMethod &value)
void SetStopped(const Aws::Utils::DateTime &value)
void SetDeviceMinutes(const DeviceMinutes &value)
RemoteAccessSession & WithMessage(Aws::String &&value)
RemoteAccessSession & WithArn(const char *value)
RemoteAccessSession & WithName(const Aws::String &value)
RemoteAccessSession & WithBillingMethod(BillingMethod &&value)
RemoteAccessSession & WithMessage(const Aws::String &value)
RemoteAccessSession & WithDevice(Device &&value)
const ExecutionStatus & GetStatus() const
const Aws::Utils::DateTime & GetStarted() const
RemoteAccessSession & WithDeviceMinutes(DeviceMinutes &&value)
RemoteAccessSession & WithEndpoint(const char *value)
RemoteAccessSession & WithArn(const Aws::String &value)
RemoteAccessSession & WithStopped(const Aws::Utils::DateTime &value)
RemoteAccessSession & WithName(Aws::String &&value)
const BillingMethod & GetBillingMethod() const
const Aws::Utils::DateTime & GetStopped() const
RemoteAccessSession & WithEndpoint(const Aws::String &value)
RemoteAccessSession & WithCreated(const Aws::Utils::DateTime &value)
RemoteAccessSession & WithDevice(const Device &value)
void SetBillingMethod(const BillingMethod &value)
void SetStarted(const Aws::Utils::DateTime &value)
RemoteAccessSession & WithEndpoint(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RemoteAccessSession & WithMessage(const char *value)
RemoteAccessSession & WithStopped(Aws::Utils::DateTime &&value)
RemoteAccessSession & WithResult(ExecutionResult &&value)
RemoteAccessSession & WithDeviceMinutes(const DeviceMinutes &value)
void SetCreated(const Aws::Utils::DateTime &value)
RemoteAccessSession & WithStarted(const Aws::Utils::DateTime &value)
void SetEndpoint(const Aws::String &value)
const Aws::Utils::DateTime & GetCreated() const
void SetCreated(Aws::Utils::DateTime &&value)
JSON (JavaScript Object Notation).