/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A TestGridSession is a single instance of a browser launched from the
* URL provided by a call to CreateTestGridUrl.See Also:
* AWS
* API Reference
The ARN of the session.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN of the session.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN of the session.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN of the session.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN of the session.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN of the session.
*/ inline TestGridSession& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN of the session.
*/ inline TestGridSession& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN of the session.
*/ inline TestGridSession& WithArn(const char* value) { SetArn(value); return *this;} /** *The state of the session.
*/ inline const TestGridSessionStatus& GetStatus() const{ return m_status; } /** *The state of the session.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The state of the session.
*/ inline void SetStatus(const TestGridSessionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The state of the session.
*/ inline void SetStatus(TestGridSessionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The state of the session.
*/ inline TestGridSession& WithStatus(const TestGridSessionStatus& value) { SetStatus(value); return *this;} /** *The state of the session.
*/ inline TestGridSession& WithStatus(TestGridSessionStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The time that the session was started.
*/ inline const Aws::Utils::DateTime& GetCreated() const{ return m_created; } /** *The time that the session was started.
*/ inline bool CreatedHasBeenSet() const { return m_createdHasBeenSet; } /** *The time that the session was started.
*/ inline void SetCreated(const Aws::Utils::DateTime& value) { m_createdHasBeenSet = true; m_created = value; } /** *The time that the session was started.
*/ inline void SetCreated(Aws::Utils::DateTime&& value) { m_createdHasBeenSet = true; m_created = std::move(value); } /** *The time that the session was started.
*/ inline TestGridSession& WithCreated(const Aws::Utils::DateTime& value) { SetCreated(value); return *this;} /** *The time that the session was started.
*/ inline TestGridSession& WithCreated(Aws::Utils::DateTime&& value) { SetCreated(std::move(value)); return *this;} /** *The time the session ended.
*/ inline const Aws::Utils::DateTime& GetEnded() const{ return m_ended; } /** *The time the session ended.
*/ inline bool EndedHasBeenSet() const { return m_endedHasBeenSet; } /** *The time the session ended.
*/ inline void SetEnded(const Aws::Utils::DateTime& value) { m_endedHasBeenSet = true; m_ended = value; } /** *The time the session ended.
*/ inline void SetEnded(Aws::Utils::DateTime&& value) { m_endedHasBeenSet = true; m_ended = std::move(value); } /** *The time the session ended.
*/ inline TestGridSession& WithEnded(const Aws::Utils::DateTime& value) { SetEnded(value); return *this;} /** *The time the session ended.
*/ inline TestGridSession& WithEnded(Aws::Utils::DateTime&& value) { SetEnded(std::move(value)); return *this;} /** *The number of billed minutes that were used for this session.
*/ inline double GetBillingMinutes() const{ return m_billingMinutes; } /** *The number of billed minutes that were used for this session.
*/ inline bool BillingMinutesHasBeenSet() const { return m_billingMinutesHasBeenSet; } /** *The number of billed minutes that were used for this session.
*/ inline void SetBillingMinutes(double value) { m_billingMinutesHasBeenSet = true; m_billingMinutes = value; } /** *The number of billed minutes that were used for this session.
*/ inline TestGridSession& WithBillingMinutes(double value) { SetBillingMinutes(value); return *this;} /** *A JSON object of options and parameters passed to the Selenium WebDriver.
*/ inline const Aws::String& GetSeleniumProperties() const{ return m_seleniumProperties; } /** *A JSON object of options and parameters passed to the Selenium WebDriver.
*/ inline bool SeleniumPropertiesHasBeenSet() const { return m_seleniumPropertiesHasBeenSet; } /** *A JSON object of options and parameters passed to the Selenium WebDriver.
*/ inline void SetSeleniumProperties(const Aws::String& value) { m_seleniumPropertiesHasBeenSet = true; m_seleniumProperties = value; } /** *A JSON object of options and parameters passed to the Selenium WebDriver.
*/ inline void SetSeleniumProperties(Aws::String&& value) { m_seleniumPropertiesHasBeenSet = true; m_seleniumProperties = std::move(value); } /** *A JSON object of options and parameters passed to the Selenium WebDriver.
*/ inline void SetSeleniumProperties(const char* value) { m_seleniumPropertiesHasBeenSet = true; m_seleniumProperties.assign(value); } /** *A JSON object of options and parameters passed to the Selenium WebDriver.
*/ inline TestGridSession& WithSeleniumProperties(const Aws::String& value) { SetSeleniumProperties(value); return *this;} /** *A JSON object of options and parameters passed to the Selenium WebDriver.
*/ inline TestGridSession& WithSeleniumProperties(Aws::String&& value) { SetSeleniumProperties(std::move(value)); return *this;} /** *A JSON object of options and parameters passed to the Selenium WebDriver.
*/ inline TestGridSession& WithSeleniumProperties(const char* value) { SetSeleniumProperties(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; TestGridSessionStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_created; bool m_createdHasBeenSet = false; Aws::Utils::DateTime m_ended; bool m_endedHasBeenSet = false; double m_billingMinutes; bool m_billingMinutesHasBeenSet = false; Aws::String m_seleniumProperties; bool m_seleniumPropertiesHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws