/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace DeviceFarm { namespace Model { /** */ class GetTestGridSessionRequest : public DeviceFarmRequest { public: AWS_DEVICEFARM_API GetTestGridSessionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "GetTestGridSession"; } AWS_DEVICEFARM_API Aws::String SerializePayload() const override; AWS_DEVICEFARM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN for the project that this session belongs to. See * CreateTestGridProject and ListTestGridProjects.

*/ inline const Aws::String& GetProjectArn() const{ return m_projectArn; } /** *

The ARN for the project that this session belongs to. See * CreateTestGridProject and ListTestGridProjects.

*/ inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; } /** *

The ARN for the project that this session belongs to. See * CreateTestGridProject and ListTestGridProjects.

*/ inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; } /** *

The ARN for the project that this session belongs to. See * CreateTestGridProject and ListTestGridProjects.

*/ inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::move(value); } /** *

The ARN for the project that this session belongs to. See * CreateTestGridProject and ListTestGridProjects.

*/ inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); } /** *

The ARN for the project that this session belongs to. See * CreateTestGridProject and ListTestGridProjects.

*/ inline GetTestGridSessionRequest& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;} /** *

The ARN for the project that this session belongs to. See * CreateTestGridProject and ListTestGridProjects.

*/ inline GetTestGridSessionRequest& WithProjectArn(Aws::String&& value) { SetProjectArn(std::move(value)); return *this;} /** *

The ARN for the project that this session belongs to. See * CreateTestGridProject and ListTestGridProjects.

*/ inline GetTestGridSessionRequest& WithProjectArn(const char* value) { SetProjectArn(value); return *this;} /** *

An ID associated with this session.

*/ inline const Aws::String& GetSessionId() const{ return m_sessionId; } /** *

An ID associated with this session.

*/ inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } /** *

An ID associated with this session.

*/ inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } /** *

An ID associated with this session.

*/ inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } /** *

An ID associated with this session.

*/ inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } /** *

An ID associated with this session.

*/ inline GetTestGridSessionRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} /** *

An ID associated with this session.

*/ inline GetTestGridSessionRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} /** *

An ID associated with this session.

*/ inline GetTestGridSessionRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;} /** *

An ARN that uniquely identifies a TestGridSession.

*/ inline const Aws::String& GetSessionArn() const{ return m_sessionArn; } /** *

An ARN that uniquely identifies a TestGridSession.

*/ inline bool SessionArnHasBeenSet() const { return m_sessionArnHasBeenSet; } /** *

An ARN that uniquely identifies a TestGridSession.

*/ inline void SetSessionArn(const Aws::String& value) { m_sessionArnHasBeenSet = true; m_sessionArn = value; } /** *

An ARN that uniquely identifies a TestGridSession.

*/ inline void SetSessionArn(Aws::String&& value) { m_sessionArnHasBeenSet = true; m_sessionArn = std::move(value); } /** *

An ARN that uniquely identifies a TestGridSession.

*/ inline void SetSessionArn(const char* value) { m_sessionArnHasBeenSet = true; m_sessionArn.assign(value); } /** *

An ARN that uniquely identifies a TestGridSession.

*/ inline GetTestGridSessionRequest& WithSessionArn(const Aws::String& value) { SetSessionArn(value); return *this;} /** *

An ARN that uniquely identifies a TestGridSession.

*/ inline GetTestGridSessionRequest& WithSessionArn(Aws::String&& value) { SetSessionArn(std::move(value)); return *this;} /** *

An ARN that uniquely identifies a TestGridSession.

*/ inline GetTestGridSessionRequest& WithSessionArn(const char* value) { SetSessionArn(value); return *this;} private: Aws::String m_projectArn; bool m_projectArnHasBeenSet = false; Aws::String m_sessionId; bool m_sessionIdHasBeenSet = false; Aws::String m_sessionArn; bool m_sessionArnHasBeenSet = false; }; } // namespace Model } // namespace DeviceFarm } // namespace Aws