/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ECS { namespace Model { class ExecuteCommandResult { public: AWS_ECS_API ExecuteCommandResult(); AWS_ECS_API ExecuteCommandResult(const Aws::AmazonWebServiceResult& result); AWS_ECS_API ExecuteCommandResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline const Aws::String& GetClusterArn() const{ return m_clusterArn; } /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline void SetClusterArn(const Aws::String& value) { m_clusterArn = value; } /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline void SetClusterArn(Aws::String&& value) { m_clusterArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline void SetClusterArn(const char* value) { m_clusterArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline ExecuteCommandResult& WithClusterArn(const Aws::String& value) { SetClusterArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline ExecuteCommandResult& WithClusterArn(Aws::String&& value) { SetClusterArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the cluster.

*/ inline ExecuteCommandResult& WithClusterArn(const char* value) { SetClusterArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the container.

*/ inline const Aws::String& GetContainerArn() const{ return m_containerArn; } /** *

The Amazon Resource Name (ARN) of the container.

*/ inline void SetContainerArn(const Aws::String& value) { m_containerArn = value; } /** *

The Amazon Resource Name (ARN) of the container.

*/ inline void SetContainerArn(Aws::String&& value) { m_containerArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the container.

*/ inline void SetContainerArn(const char* value) { m_containerArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the container.

*/ inline ExecuteCommandResult& WithContainerArn(const Aws::String& value) { SetContainerArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the container.

*/ inline ExecuteCommandResult& WithContainerArn(Aws::String&& value) { SetContainerArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the container.

*/ inline ExecuteCommandResult& WithContainerArn(const char* value) { SetContainerArn(value); return *this;} /** *

The name of the container.

*/ inline const Aws::String& GetContainerName() const{ return m_containerName; } /** *

The name of the container.

*/ inline void SetContainerName(const Aws::String& value) { m_containerName = value; } /** *

The name of the container.

*/ inline void SetContainerName(Aws::String&& value) { m_containerName = std::move(value); } /** *

The name of the container.

*/ inline void SetContainerName(const char* value) { m_containerName.assign(value); } /** *

The name of the container.

*/ inline ExecuteCommandResult& WithContainerName(const Aws::String& value) { SetContainerName(value); return *this;} /** *

The name of the container.

*/ inline ExecuteCommandResult& WithContainerName(Aws::String&& value) { SetContainerName(std::move(value)); return *this;} /** *

The name of the container.

*/ inline ExecuteCommandResult& WithContainerName(const char* value) { SetContainerName(value); return *this;} /** *

Determines whether the execute command session is running in interactive * mode. Amazon ECS only supports initiating interactive sessions, so you must * specify true for this value.

*/ inline bool GetInteractive() const{ return m_interactive; } /** *

Determines whether the execute command session is running in interactive * mode. Amazon ECS only supports initiating interactive sessions, so you must * specify true for this value.

*/ inline void SetInteractive(bool value) { m_interactive = value; } /** *

Determines whether the execute command session is running in interactive * mode. Amazon ECS only supports initiating interactive sessions, so you must * specify true for this value.

*/ inline ExecuteCommandResult& WithInteractive(bool value) { SetInteractive(value); return *this;} /** *

The details of the SSM session that was created for this instance of * execute-command.

*/ inline const Session& GetSession() const{ return m_session; } /** *

The details of the SSM session that was created for this instance of * execute-command.

*/ inline void SetSession(const Session& value) { m_session = value; } /** *

The details of the SSM session that was created for this instance of * execute-command.

*/ inline void SetSession(Session&& value) { m_session = std::move(value); } /** *

The details of the SSM session that was created for this instance of * execute-command.

*/ inline ExecuteCommandResult& WithSession(const Session& value) { SetSession(value); return *this;} /** *

The details of the SSM session that was created for this instance of * execute-command.

*/ inline ExecuteCommandResult& WithSession(Session&& value) { SetSession(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the task.

*/ inline const Aws::String& GetTaskArn() const{ return m_taskArn; } /** *

The Amazon Resource Name (ARN) of the task.

*/ inline void SetTaskArn(const Aws::String& value) { m_taskArn = value; } /** *

The Amazon Resource Name (ARN) of the task.

*/ inline void SetTaskArn(Aws::String&& value) { m_taskArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the task.

*/ inline void SetTaskArn(const char* value) { m_taskArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the task.

*/ inline ExecuteCommandResult& WithTaskArn(const Aws::String& value) { SetTaskArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the task.

*/ inline ExecuteCommandResult& WithTaskArn(Aws::String&& value) { SetTaskArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the task.

*/ inline ExecuteCommandResult& WithTaskArn(const char* value) { SetTaskArn(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline ExecuteCommandResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline ExecuteCommandResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline ExecuteCommandResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_clusterArn; Aws::String m_containerArn; Aws::String m_containerName; bool m_interactive; Session m_session; Aws::String m_taskArn; Aws::String m_requestId; }; } // namespace Model } // namespace ECS } // namespace Aws