/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 UpdateConnectionResult { public: AWS_EVENTBRIDGE_API UpdateConnectionResult(); AWS_EVENTBRIDGE_API UpdateConnectionResult(const Aws::AmazonWebServiceResult& result); AWS_EVENTBRIDGE_API UpdateConnectionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN of the connection that was updated.

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

The ARN of the connection that was updated.

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

The ARN of the connection that was updated.

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

The ARN of the connection that was updated.

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

The ARN of the connection that was updated.

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

The ARN of the connection that was updated.

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

The ARN of the connection that was updated.

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

The state of the connection that was updated.

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

The state of the connection that was updated.

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

The state of the connection that was updated.

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

The state of the connection that was updated.

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

The state of the connection that was updated.

*/ inline UpdateConnectionResult& WithConnectionState(ConnectionState&& value) { SetConnectionState(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 UpdateConnectionResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

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

*/ inline UpdateConnectionResult& 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 UpdateConnectionResult& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *

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

*/ inline UpdateConnectionResult& 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 UpdateConnectionResult& WithLastAuthorizedTime(const Aws::Utils::DateTime& value) { SetLastAuthorizedTime(value); return *this;} /** *

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

*/ inline UpdateConnectionResult& 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 UpdateConnectionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateConnectionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateConnectionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_connectionArn; ConnectionState m_connectionState; 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