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

The ID of the session.

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

The ID of the session.

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

The ID of the session.

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

The ID of the session.

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

The ID of the session.

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

The ID of the session.

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

The ID of the session.

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

An encrypted token value containing session and caller information. Used to * authenticate the connection to the instance.

*/ inline const Aws::String& GetTokenValue() const{ return m_tokenValue; } /** *

An encrypted token value containing session and caller information. Used to * authenticate the connection to the instance.

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

An encrypted token value containing session and caller information. Used to * authenticate the connection to the instance.

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

An encrypted token value containing session and caller information. Used to * authenticate the connection to the instance.

*/ inline void SetTokenValue(const char* value) { m_tokenValue.assign(value); } /** *

An encrypted token value containing session and caller information. Used to * authenticate the connection to the instance.

*/ inline StartSessionResult& WithTokenValue(const Aws::String& value) { SetTokenValue(value); return *this;} /** *

An encrypted token value containing session and caller information. Used to * authenticate the connection to the instance.

*/ inline StartSessionResult& WithTokenValue(Aws::String&& value) { SetTokenValue(std::move(value)); return *this;} /** *

An encrypted token value containing session and caller information. Used to * authenticate the connection to the instance.

*/ inline StartSessionResult& WithTokenValue(const char* value) { SetTokenValue(value); return *this;} /** *

A URL back to SSM Agent on the instance that the Session Manager client uses * to send commands and receive output from the instance. Format: * wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) *

region represents the Region identifier for an AWS Region * supported by AWS Systems Manager, such as us-east-2 for the US East * (Ohio) Region. For a list of supported region values, see the * Region column in Systems * Manager service endpoints in the AWS General Reference.

* session-id represents the ID of a Session Manager session, such as * 1a2b3c4dEXAMPLE.

*/ inline const Aws::String& GetStreamUrl() const{ return m_streamUrl; } /** *

A URL back to SSM Agent on the instance that the Session Manager client uses * to send commands and receive output from the instance. Format: * wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) *

region represents the Region identifier for an AWS Region * supported by AWS Systems Manager, such as us-east-2 for the US East * (Ohio) Region. For a list of supported region values, see the * Region column in Systems * Manager service endpoints in the AWS General Reference.

* session-id represents the ID of a Session Manager session, such as * 1a2b3c4dEXAMPLE.

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

A URL back to SSM Agent on the instance that the Session Manager client uses * to send commands and receive output from the instance. Format: * wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) *

region represents the Region identifier for an AWS Region * supported by AWS Systems Manager, such as us-east-2 for the US East * (Ohio) Region. For a list of supported region values, see the * Region column in Systems * Manager service endpoints in the AWS General Reference.

* session-id represents the ID of a Session Manager session, such as * 1a2b3c4dEXAMPLE.

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

A URL back to SSM Agent on the instance that the Session Manager client uses * to send commands and receive output from the instance. Format: * wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) *

region represents the Region identifier for an AWS Region * supported by AWS Systems Manager, such as us-east-2 for the US East * (Ohio) Region. For a list of supported region values, see the * Region column in Systems * Manager service endpoints in the AWS General Reference.

* session-id represents the ID of a Session Manager session, such as * 1a2b3c4dEXAMPLE.

*/ inline void SetStreamUrl(const char* value) { m_streamUrl.assign(value); } /** *

A URL back to SSM Agent on the instance that the Session Manager client uses * to send commands and receive output from the instance. Format: * wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) *

region represents the Region identifier for an AWS Region * supported by AWS Systems Manager, such as us-east-2 for the US East * (Ohio) Region. For a list of supported region values, see the * Region column in Systems * Manager service endpoints in the AWS General Reference.

* session-id represents the ID of a Session Manager session, such as * 1a2b3c4dEXAMPLE.

*/ inline StartSessionResult& WithStreamUrl(const Aws::String& value) { SetStreamUrl(value); return *this;} /** *

A URL back to SSM Agent on the instance that the Session Manager client uses * to send commands and receive output from the instance. Format: * wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) *

region represents the Region identifier for an AWS Region * supported by AWS Systems Manager, such as us-east-2 for the US East * (Ohio) Region. For a list of supported region values, see the * Region column in Systems * Manager service endpoints in the AWS General Reference.

* session-id represents the ID of a Session Manager session, such as * 1a2b3c4dEXAMPLE.

*/ inline StartSessionResult& WithStreamUrl(Aws::String&& value) { SetStreamUrl(std::move(value)); return *this;} /** *

A URL back to SSM Agent on the instance that the Session Manager client uses * to send commands and receive output from the instance. Format: * wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) *

region represents the Region identifier for an AWS Region * supported by AWS Systems Manager, such as us-east-2 for the US East * (Ohio) Region. For a list of supported region values, see the * Region column in Systems * Manager service endpoints in the AWS General Reference.

* session-id represents the ID of a Session Manager session, such as * 1a2b3c4dEXAMPLE.

*/ inline StartSessionResult& WithStreamUrl(const char* value) { SetStreamUrl(value); return *this;} private: Aws::String m_sessionId; Aws::String m_tokenValue; Aws::String m_streamUrl; }; } // namespace Model } // namespace SSM } // namespace Aws