/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace SSM { namespace Model { /** */ class AWS_SSM_API StartSessionRequest : public SSMRequest { public: StartSessionRequest(); // 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 "StartSession"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The instance to connect to for the session.

*/ inline const Aws::String& GetTarget() const{ return m_target; } /** *

The instance to connect to for the session.

*/ inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; } /** *

The instance to connect to for the session.

*/ inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; } /** *

The instance to connect to for the session.

*/ inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); } /** *

The instance to connect to for the session.

*/ inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); } /** *

The instance to connect to for the session.

*/ inline StartSessionRequest& WithTarget(const Aws::String& value) { SetTarget(value); return *this;} /** *

The instance to connect to for the session.

*/ inline StartSessionRequest& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;} /** *

The instance to connect to for the session.

*/ inline StartSessionRequest& WithTarget(const char* value) { SetTarget(value); return *this;} /** *

The name of the SSM document to define the parameters and plugin settings for * the session. For example, SSM-SessionManagerRunShell. You can call * the GetDocument API to verify the document exists before attempting to * start a session. If no document name is provided, a shell to the instance is * launched by default.

*/ inline const Aws::String& GetDocumentName() const{ return m_documentName; } /** *

The name of the SSM document to define the parameters and plugin settings for * the session. For example, SSM-SessionManagerRunShell. You can call * the GetDocument API to verify the document exists before attempting to * start a session. If no document name is provided, a shell to the instance is * launched by default.

*/ inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; } /** *

The name of the SSM document to define the parameters and plugin settings for * the session. For example, SSM-SessionManagerRunShell. You can call * the GetDocument API to verify the document exists before attempting to * start a session. If no document name is provided, a shell to the instance is * launched by default.

*/ inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; } /** *

The name of the SSM document to define the parameters and plugin settings for * the session. For example, SSM-SessionManagerRunShell. You can call * the GetDocument API to verify the document exists before attempting to * start a session. If no document name is provided, a shell to the instance is * launched by default.

*/ inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = std::move(value); } /** *

The name of the SSM document to define the parameters and plugin settings for * the session. For example, SSM-SessionManagerRunShell. You can call * the GetDocument API to verify the document exists before attempting to * start a session. If no document name is provided, a shell to the instance is * launched by default.

*/ inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); } /** *

The name of the SSM document to define the parameters and plugin settings for * the session. For example, SSM-SessionManagerRunShell. You can call * the GetDocument API to verify the document exists before attempting to * start a session. If no document name is provided, a shell to the instance is * launched by default.

*/ inline StartSessionRequest& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;} /** *

The name of the SSM document to define the parameters and plugin settings for * the session. For example, SSM-SessionManagerRunShell. You can call * the GetDocument API to verify the document exists before attempting to * start a session. If no document name is provided, a shell to the instance is * launched by default.

*/ inline StartSessionRequest& WithDocumentName(Aws::String&& value) { SetDocumentName(std::move(value)); return *this;} /** *

The name of the SSM document to define the parameters and plugin settings for * the session. For example, SSM-SessionManagerRunShell. You can call * the GetDocument API to verify the document exists before attempting to * start a session. If no document name is provided, a shell to the instance is * launched by default.

*/ inline StartSessionRequest& WithDocumentName(const char* value) { SetDocumentName(value); return *this;} /** *

Reserved for future use.

*/ inline const Aws::Map>& GetParameters() const{ return m_parameters; } /** *

Reserved for future use.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

Reserved for future use.

*/ inline void SetParameters(const Aws::Map>& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

Reserved for future use.

*/ inline void SetParameters(Aws::Map>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

Reserved for future use.

*/ inline StartSessionRequest& WithParameters(const Aws::Map>& value) { SetParameters(value); return *this;} /** *

Reserved for future use.

*/ inline StartSessionRequest& WithParameters(Aws::Map>&& value) { SetParameters(std::move(value)); return *this;} /** *

Reserved for future use.

*/ inline StartSessionRequest& AddParameters(const Aws::String& key, const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

Reserved for future use.

*/ inline StartSessionRequest& AddParameters(Aws::String&& key, const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

Reserved for future use.

*/ inline StartSessionRequest& AddParameters(const Aws::String& key, Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

Reserved for future use.

*/ inline StartSessionRequest& AddParameters(Aws::String&& key, Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; } /** *

Reserved for future use.

*/ inline StartSessionRequest& AddParameters(const char* key, Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

Reserved for future use.

*/ inline StartSessionRequest& AddParameters(const char* key, const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } private: Aws::String m_target; bool m_targetHasBeenSet; Aws::String m_documentName; bool m_documentNameHasBeenSet; Aws::Map> m_parameters; bool m_parametersHasBeenSet; }; } // namespace Model } // namespace SSM } // namespace Aws