/** * 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 CreateArchiveResult { public: AWS_EVENTBRIDGE_API CreateArchiveResult(); AWS_EVENTBRIDGE_API CreateArchiveResult(const Aws::AmazonWebServiceResult& result); AWS_EVENTBRIDGE_API CreateArchiveResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN of the archive that was created.

*/ inline const Aws::String& GetArchiveArn() const{ return m_archiveArn; } /** *

The ARN of the archive that was created.

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

The ARN of the archive that was created.

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

The ARN of the archive that was created.

*/ inline void SetArchiveArn(const char* value) { m_archiveArn.assign(value); } /** *

The ARN of the archive that was created.

*/ inline CreateArchiveResult& WithArchiveArn(const Aws::String& value) { SetArchiveArn(value); return *this;} /** *

The ARN of the archive that was created.

*/ inline CreateArchiveResult& WithArchiveArn(Aws::String&& value) { SetArchiveArn(std::move(value)); return *this;} /** *

The ARN of the archive that was created.

*/ inline CreateArchiveResult& WithArchiveArn(const char* value) { SetArchiveArn(value); return *this;} /** *

The state of the archive that was created.

*/ inline const ArchiveState& GetState() const{ return m_state; } /** *

The state of the archive that was created.

*/ inline void SetState(const ArchiveState& value) { m_state = value; } /** *

The state of the archive that was created.

*/ inline void SetState(ArchiveState&& value) { m_state = std::move(value); } /** *

The state of the archive that was created.

*/ inline CreateArchiveResult& WithState(const ArchiveState& value) { SetState(value); return *this;} /** *

The state of the archive that was created.

*/ inline CreateArchiveResult& WithState(ArchiveState&& value) { SetState(std::move(value)); return *this;} /** *

The reason that the archive is in the state.

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

The reason that the archive is in the state.

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

The reason that the archive is in the state.

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

The reason that the archive is in the state.

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

The reason that the archive is in the state.

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

The reason that the archive is in the state.

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

The reason that the archive is in the state.

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

The time at which the archive was created.

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

The time at which the archive was created.

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

The time at which the archive was created.

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

The time at which the archive was created.

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

The time at which the archive was created.

*/ inline CreateArchiveResult& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(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 CreateArchiveResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateArchiveResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateArchiveResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_archiveArn; ArchiveState m_state; Aws::String m_stateReason; Aws::Utils::DateTime m_creationTime; Aws::String m_requestId; }; } // namespace Model } // namespace EventBridge } // namespace Aws