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

The ARN of the connection retrieved.

*/ inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; } /** *

The ARN of the connection retrieved.

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

The ARN of the connection retrieved.

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

The ARN of the connection retrieved.

*/ inline void SetConnectionArn(const char* value) { m_connectionArn.assign(value); } /** *

The ARN of the connection retrieved.

*/ inline DescribeConnectionResult& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;} /** *

The ARN of the connection retrieved.

*/ inline DescribeConnectionResult& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;} /** *

The ARN of the connection retrieved.

*/ inline DescribeConnectionResult& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;} /** *

The name of the connection retrieved.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the connection retrieved.

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

The name of the connection retrieved.

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

The name of the connection retrieved.

*/ inline void SetName(const char* value) { m_name.assign(value); } /** *

The name of the connection retrieved.

*/ inline DescribeConnectionResult& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the connection retrieved.

*/ inline DescribeConnectionResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the connection retrieved.

*/ inline DescribeConnectionResult& WithName(const char* value) { SetName(value); return *this;} /** *

The description for the connection retrieved.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

The description for the connection retrieved.

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

The description for the connection retrieved.

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

The description for the connection retrieved.

*/ inline void SetDescription(const char* value) { m_description.assign(value); } /** *

The description for the connection retrieved.

*/ inline DescribeConnectionResult& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

The description for the connection retrieved.

*/ inline DescribeConnectionResult& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

The description for the connection retrieved.

*/ inline DescribeConnectionResult& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The state of the connection retrieved.

*/ inline const ConnectionState& GetConnectionState() const{ return m_connectionState; } /** *

The state of the connection retrieved.

*/ inline void SetConnectionState(const ConnectionState& value) { m_connectionState = value; } /** *

The state of the connection retrieved.

*/ inline void SetConnectionState(ConnectionState&& value) { m_connectionState = std::move(value); } /** *

The state of the connection retrieved.

*/ inline DescribeConnectionResult& WithConnectionState(const ConnectionState& value) { SetConnectionState(value); return *this;} /** *

The state of the connection retrieved.

*/ inline DescribeConnectionResult& WithConnectionState(ConnectionState&& value) { SetConnectionState(std::move(value)); return *this;} /** *

The reason that the connection is in the current connection state.

*/ inline const Aws::String& GetStateReason() const{ return m_stateReason; } /** *

The reason that the connection is in the current connection state.

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

The reason that the connection is in the current connection state.

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

The reason that the connection is in the current connection state.

*/ inline void SetStateReason(const char* value) { m_stateReason.assign(value); } /** *

The reason that the connection is in the current connection state.

*/ inline DescribeConnectionResult& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;} /** *

The reason that the connection is in the current connection state.

*/ inline DescribeConnectionResult& WithStateReason(Aws::String&& value) { SetStateReason(std::move(value)); return *this;} /** *

The reason that the connection is in the current connection state.

*/ inline DescribeConnectionResult& WithStateReason(const char* value) { SetStateReason(value); return *this;} /** *

The type of authorization specified for the connection.

*/ inline const ConnectionAuthorizationType& GetAuthorizationType() const{ return m_authorizationType; } /** *

The type of authorization specified for the connection.

*/ inline void SetAuthorizationType(const ConnectionAuthorizationType& value) { m_authorizationType = value; } /** *

The type of authorization specified for the connection.

*/ inline void SetAuthorizationType(ConnectionAuthorizationType&& value) { m_authorizationType = std::move(value); } /** *

The type of authorization specified for the connection.

*/ inline DescribeConnectionResult& WithAuthorizationType(const ConnectionAuthorizationType& value) { SetAuthorizationType(value); return *this;} /** *

The type of authorization specified for the connection.

*/ inline DescribeConnectionResult& WithAuthorizationType(ConnectionAuthorizationType&& value) { SetAuthorizationType(std::move(value)); return *this;} /** *

The ARN of the secret created from the authorization parameters specified for * the connection.

*/ inline const Aws::String& GetSecretArn() const{ return m_secretArn; } /** *

The ARN of the secret created from the authorization parameters specified for * the connection.

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

The ARN of the secret created from the authorization parameters specified for * the connection.

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

The ARN of the secret created from the authorization parameters specified for * the connection.

*/ inline void SetSecretArn(const char* value) { m_secretArn.assign(value); } /** *

The ARN of the secret created from the authorization parameters specified for * the connection.

*/ inline DescribeConnectionResult& WithSecretArn(const Aws::String& value) { SetSecretArn(value); return *this;} /** *

The ARN of the secret created from the authorization parameters specified for * the connection.

*/ inline DescribeConnectionResult& WithSecretArn(Aws::String&& value) { SetSecretArn(std::move(value)); return *this;} /** *

The ARN of the secret created from the authorization parameters specified for * the connection.

*/ inline DescribeConnectionResult& WithSecretArn(const char* value) { SetSecretArn(value); return *this;} /** *

The parameters to use for authorization for the connection.

*/ inline const ConnectionAuthResponseParameters& GetAuthParameters() const{ return m_authParameters; } /** *

The parameters to use for authorization for the connection.

*/ inline void SetAuthParameters(const ConnectionAuthResponseParameters& value) { m_authParameters = value; } /** *

The parameters to use for authorization for the connection.

*/ inline void SetAuthParameters(ConnectionAuthResponseParameters&& value) { m_authParameters = std::move(value); } /** *

The parameters to use for authorization for the connection.

*/ inline DescribeConnectionResult& WithAuthParameters(const ConnectionAuthResponseParameters& value) { SetAuthParameters(value); return *this;} /** *

The parameters to use for authorization for the connection.

*/ inline DescribeConnectionResult& WithAuthParameters(ConnectionAuthResponseParameters&& value) { SetAuthParameters(std::move(value)); return *this;} /** *

A time stamp for the time that the connection was created.

*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *

A time stamp for the time that the connection was created.

*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTime = value; } /** *

A time stamp for the time that the connection was created.

*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTime = std::move(value); } /** *

A time stamp for the time that the connection was created.

*/ inline DescribeConnectionResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

A time stamp for the time that the connection was created.

*/ inline DescribeConnectionResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *

A time stamp for the time that the connection was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

A time stamp for the time that the connection was last modified.

*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTime = value; } /** *

A time stamp for the time that the connection was last modified.

*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTime = std::move(value); } /** *

A time stamp for the time that the connection was last modified.

*/ inline DescribeConnectionResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

A time stamp for the time that the connection was last modified.

*/ inline DescribeConnectionResult& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

A time stamp for the time that the connection was last authorized.

*/ inline const Aws::Utils::DateTime& GetLastAuthorizedTime() const{ return m_lastAuthorizedTime; } /** *

A time stamp for the time that the connection was last authorized.

*/ inline void SetLastAuthorizedTime(const Aws::Utils::DateTime& value) { m_lastAuthorizedTime = value; } /** *

A time stamp for the time that the connection was last authorized.

*/ inline void SetLastAuthorizedTime(Aws::Utils::DateTime&& value) { m_lastAuthorizedTime = std::move(value); } /** *

A time stamp for the time that the connection was last authorized.

*/ inline DescribeConnectionResult& WithLastAuthorizedTime(const Aws::Utils::DateTime& value) { SetLastAuthorizedTime(value); return *this;} /** *

A time stamp for the time that the connection was last authorized.

*/ inline DescribeConnectionResult& WithLastAuthorizedTime(Aws::Utils::DateTime&& value) { SetLastAuthorizedTime(std::move(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 DescribeConnectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeConnectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeConnectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_connectionArn; Aws::String m_name; Aws::String m_description; ConnectionState m_connectionState; Aws::String m_stateReason; ConnectionAuthorizationType m_authorizationType; Aws::String m_secretArn; ConnectionAuthResponseParameters m_authParameters; Aws::Utils::DateTime m_creationTime; Aws::Utils::DateTime m_lastModifiedTime; Aws::Utils::DateTime m_lastAuthorizedTime; Aws::String m_requestId; }; } // namespace Model } // namespace EventBridge } // namespace Aws