/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include An action taken by a TestGridSession browser instance.See
* Also:
AWS
* API Reference
The action taken by the session.
*/ inline const Aws::String& GetAction() const{ return m_action; } /** *The action taken by the session.
*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *The action taken by the session.
*/ inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; } /** *The action taken by the session.
*/ inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *The action taken by the session.
*/ inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); } /** *The action taken by the session.
*/ inline TestGridSessionAction& WithAction(const Aws::String& value) { SetAction(value); return *this;} /** *The action taken by the session.
*/ inline TestGridSessionAction& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;} /** *The action taken by the session.
*/ inline TestGridSessionAction& WithAction(const char* value) { SetAction(value); return *this;} /** *The time that the session invoked the action.
*/ inline const Aws::Utils::DateTime& GetStarted() const{ return m_started; } /** *The time that the session invoked the action.
*/ inline bool StartedHasBeenSet() const { return m_startedHasBeenSet; } /** *The time that the session invoked the action.
*/ inline void SetStarted(const Aws::Utils::DateTime& value) { m_startedHasBeenSet = true; m_started = value; } /** *The time that the session invoked the action.
*/ inline void SetStarted(Aws::Utils::DateTime&& value) { m_startedHasBeenSet = true; m_started = std::move(value); } /** *The time that the session invoked the action.
*/ inline TestGridSessionAction& WithStarted(const Aws::Utils::DateTime& value) { SetStarted(value); return *this;} /** *The time that the session invoked the action.
*/ inline TestGridSessionAction& WithStarted(Aws::Utils::DateTime&& value) { SetStarted(std::move(value)); return *this;} /** *The time, in milliseconds, that the action took to complete in the * browser.
*/ inline long long GetDuration() const{ return m_duration; } /** *The time, in milliseconds, that the action took to complete in the * browser.
*/ inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; } /** *The time, in milliseconds, that the action took to complete in the * browser.
*/ inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; } /** *The time, in milliseconds, that the action took to complete in the * browser.
*/ inline TestGridSessionAction& WithDuration(long long value) { SetDuration(value); return *this;} /** *HTTP status code returned to the browser when the action was taken.
*/ inline const Aws::String& GetStatusCode() const{ return m_statusCode; } /** *HTTP status code returned to the browser when the action was taken.
*/ inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } /** *HTTP status code returned to the browser when the action was taken.
*/ inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } /** *HTTP status code returned to the browser when the action was taken.
*/ inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); } /** *HTTP status code returned to the browser when the action was taken.
*/ inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); } /** *HTTP status code returned to the browser when the action was taken.
*/ inline TestGridSessionAction& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;} /** *HTTP status code returned to the browser when the action was taken.
*/ inline TestGridSessionAction& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;} /** *HTTP status code returned to the browser when the action was taken.
*/ inline TestGridSessionAction& WithStatusCode(const char* value) { SetStatusCode(value); return *this;} /** *HTTP method that the browser used to make the request.
*/ inline const Aws::String& GetRequestMethod() const{ return m_requestMethod; } /** *HTTP method that the browser used to make the request.
*/ inline bool RequestMethodHasBeenSet() const { return m_requestMethodHasBeenSet; } /** *HTTP method that the browser used to make the request.
*/ inline void SetRequestMethod(const Aws::String& value) { m_requestMethodHasBeenSet = true; m_requestMethod = value; } /** *HTTP method that the browser used to make the request.
*/ inline void SetRequestMethod(Aws::String&& value) { m_requestMethodHasBeenSet = true; m_requestMethod = std::move(value); } /** *HTTP method that the browser used to make the request.
*/ inline void SetRequestMethod(const char* value) { m_requestMethodHasBeenSet = true; m_requestMethod.assign(value); } /** *HTTP method that the browser used to make the request.
*/ inline TestGridSessionAction& WithRequestMethod(const Aws::String& value) { SetRequestMethod(value); return *this;} /** *HTTP method that the browser used to make the request.
*/ inline TestGridSessionAction& WithRequestMethod(Aws::String&& value) { SetRequestMethod(std::move(value)); return *this;} /** *HTTP method that the browser used to make the request.
*/ inline TestGridSessionAction& WithRequestMethod(const char* value) { SetRequestMethod(value); return *this;} private: Aws::String m_action; bool m_actionHasBeenSet = false; Aws::Utils::DateTime m_started; bool m_startedHasBeenSet = false; long long m_duration; bool m_durationHasBeenSet = false; Aws::String m_statusCode; bool m_statusCodeHasBeenSet = false; Aws::String m_requestMethod; bool m_requestMethodHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws