/** * 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 StartSessionResult { public: AWS_SSM_API StartSessionResult(); AWS_SSM_API StartSessionResult(const Aws::AmazonWebServiceResult& result); AWS_SSM_API 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. This * token is used to authenticate the connection to the managed node, and is valid * only long enough to ensure the connection is successful. Never share your * session's token.

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

An encrypted token value containing session and caller information. This * token is used to authenticate the connection to the managed node, and is valid * only long enough to ensure the connection is successful. Never share your * session's token.

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

An encrypted token value containing session and caller information. This * token is used to authenticate the connection to the managed node, and is valid * only long enough to ensure the connection is successful. Never share your * session's token.

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

An encrypted token value containing session and caller information. This * token is used to authenticate the connection to the managed node, and is valid * only long enough to ensure the connection is successful. Never share your * session's token.

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

An encrypted token value containing session and caller information. This * token is used to authenticate the connection to the managed node, and is valid * only long enough to ensure the connection is successful. Never share your * session's token.

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

An encrypted token value containing session and caller information. This * token is used to authenticate the connection to the managed node, and is valid * only long enough to ensure the connection is successful. Never share your * session's token.

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

An encrypted token value containing session and caller information. This * token is used to authenticate the connection to the managed node, and is valid * only long enough to ensure the connection is successful. Never share your * session's token.

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

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

region represents the Region identifier for an Amazon Web * Services Region supported by Amazon Web Services 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 Amazon Web Services 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 managed node that the Session Manager client * uses to send commands and receive output from the node. Format: * wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) *

region represents the Region identifier for an Amazon Web * Services Region supported by Amazon Web Services 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 Amazon Web Services 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 managed node that the Session Manager client * uses to send commands and receive output from the node. Format: * wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) *

region represents the Region identifier for an Amazon Web * Services Region supported by Amazon Web Services 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 Amazon Web Services 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 managed node that the Session Manager client * uses to send commands and receive output from the node. Format: * wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) *

region represents the Region identifier for an Amazon Web * Services Region supported by Amazon Web Services 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 Amazon Web Services 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 managed node that the Session Manager client * uses to send commands and receive output from the node. Format: * wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) *

region represents the Region identifier for an Amazon Web * Services Region supported by Amazon Web Services 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 Amazon Web Services 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 managed node that the Session Manager client * uses to send commands and receive output from the node. Format: * wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) *

region represents the Region identifier for an Amazon Web * Services Region supported by Amazon Web Services 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 Amazon Web Services 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 managed node that the Session Manager client * uses to send commands and receive output from the node. Format: * wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) *

region represents the Region identifier for an Amazon Web * Services Region supported by Amazon Web Services 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 Amazon Web Services 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;} 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 StartSessionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline StartSessionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline StartSessionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_sessionId; Aws::String m_tokenValue; Aws::String m_streamUrl; Aws::String m_requestId; }; } // namespace Model } // namespace SSM } // namespace Aws