/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeCatalyst { namespace Model { /** *

Information about the commands that will be run on a Dev Environment when an * SSH session begins.

See Also:

AWS * API Reference

*/ class ExecuteCommandSessionConfiguration { public: AWS_CODECATALYST_API ExecuteCommandSessionConfiguration(); AWS_CODECATALYST_API ExecuteCommandSessionConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_CODECATALYST_API ExecuteCommandSessionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The command used at the beginning of the SSH session to a Dev * Environment.

*/ inline const Aws::String& GetCommand() const{ return m_command; } /** *

The command used at the beginning of the SSH session to a Dev * Environment.

*/ inline bool CommandHasBeenSet() const { return m_commandHasBeenSet; } /** *

The command used at the beginning of the SSH session to a Dev * Environment.

*/ inline void SetCommand(const Aws::String& value) { m_commandHasBeenSet = true; m_command = value; } /** *

The command used at the beginning of the SSH session to a Dev * Environment.

*/ inline void SetCommand(Aws::String&& value) { m_commandHasBeenSet = true; m_command = std::move(value); } /** *

The command used at the beginning of the SSH session to a Dev * Environment.

*/ inline void SetCommand(const char* value) { m_commandHasBeenSet = true; m_command.assign(value); } /** *

The command used at the beginning of the SSH session to a Dev * Environment.

*/ inline ExecuteCommandSessionConfiguration& WithCommand(const Aws::String& value) { SetCommand(value); return *this;} /** *

The command used at the beginning of the SSH session to a Dev * Environment.

*/ inline ExecuteCommandSessionConfiguration& WithCommand(Aws::String&& value) { SetCommand(std::move(value)); return *this;} /** *

The command used at the beginning of the SSH session to a Dev * Environment.

*/ inline ExecuteCommandSessionConfiguration& WithCommand(const char* value) { SetCommand(value); return *this;} /** *

An array of arguments containing arguments and members.

*/ inline const Aws::Vector& GetArguments() const{ return m_arguments; } /** *

An array of arguments containing arguments and members.

*/ inline bool ArgumentsHasBeenSet() const { return m_argumentsHasBeenSet; } /** *

An array of arguments containing arguments and members.

*/ inline void SetArguments(const Aws::Vector& value) { m_argumentsHasBeenSet = true; m_arguments = value; } /** *

An array of arguments containing arguments and members.

*/ inline void SetArguments(Aws::Vector&& value) { m_argumentsHasBeenSet = true; m_arguments = std::move(value); } /** *

An array of arguments containing arguments and members.

*/ inline ExecuteCommandSessionConfiguration& WithArguments(const Aws::Vector& value) { SetArguments(value); return *this;} /** *

An array of arguments containing arguments and members.

*/ inline ExecuteCommandSessionConfiguration& WithArguments(Aws::Vector&& value) { SetArguments(std::move(value)); return *this;} /** *

An array of arguments containing arguments and members.

*/ inline ExecuteCommandSessionConfiguration& AddArguments(const Aws::String& value) { m_argumentsHasBeenSet = true; m_arguments.push_back(value); return *this; } /** *

An array of arguments containing arguments and members.

*/ inline ExecuteCommandSessionConfiguration& AddArguments(Aws::String&& value) { m_argumentsHasBeenSet = true; m_arguments.push_back(std::move(value)); return *this; } /** *

An array of arguments containing arguments and members.

*/ inline ExecuteCommandSessionConfiguration& AddArguments(const char* value) { m_argumentsHasBeenSet = true; m_arguments.push_back(value); return *this; } private: Aws::String m_command; bool m_commandHasBeenSet = false; Aws::Vector m_arguments; bool m_argumentsHasBeenSet = false; }; } // namespace Model } // namespace CodeCatalyst } // namespace Aws