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

The ARN of the archive.

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

The ARN of the archive.

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

The ARN of the archive.

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

The ARN of the archive.

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

The ARN of the archive.

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

The ARN of the archive.

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

The ARN of the archive.

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

The name of the archive.

*/ inline const Aws::String& GetArchiveName() const{ return m_archiveName; } /** *

The name of the archive.

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

The name of the archive.

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

The name of the archive.

*/ inline void SetArchiveName(const char* value) { m_archiveName.assign(value); } /** *

The name of the archive.

*/ inline DescribeArchiveResult& WithArchiveName(const Aws::String& value) { SetArchiveName(value); return *this;} /** *

The name of the archive.

*/ inline DescribeArchiveResult& WithArchiveName(Aws::String&& value) { SetArchiveName(std::move(value)); return *this;} /** *

The name of the archive.

*/ inline DescribeArchiveResult& WithArchiveName(const char* value) { SetArchiveName(value); return *this;} /** *

The ARN of the event source associated with the archive.

*/ inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; } /** *

The ARN of the event source associated with the archive.

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

The ARN of the event source associated with the archive.

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

The ARN of the event source associated with the archive.

*/ inline void SetEventSourceArn(const char* value) { m_eventSourceArn.assign(value); } /** *

The ARN of the event source associated with the archive.

*/ inline DescribeArchiveResult& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;} /** *

The ARN of the event source associated with the archive.

*/ inline DescribeArchiveResult& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;} /** *

The ARN of the event source associated with the archive.

*/ inline DescribeArchiveResult& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;} /** *

The description of the archive.

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

The description of the archive.

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

The description of the archive.

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

The description of the archive.

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

The description of the archive.

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

The description of the archive.

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

The description of the archive.

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

The event pattern used to filter events sent to the archive.

*/ inline const Aws::String& GetEventPattern() const{ return m_eventPattern; } /** *

The event pattern used to filter events sent to the archive.

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

The event pattern used to filter events sent to the archive.

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

The event pattern used to filter events sent to the archive.

*/ inline void SetEventPattern(const char* value) { m_eventPattern.assign(value); } /** *

The event pattern used to filter events sent to the archive.

*/ inline DescribeArchiveResult& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;} /** *

The event pattern used to filter events sent to the archive.

*/ inline DescribeArchiveResult& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;} /** *

The event pattern used to filter events sent to the archive.

*/ inline DescribeArchiveResult& WithEventPattern(const char* value) { SetEventPattern(value); return *this;} /** *

The state of the archive.

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

The state of the archive.

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

The state of the archive.

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

The state of the archive.

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

The state of the archive.

*/ inline DescribeArchiveResult& 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 DescribeArchiveResult& WithStateReason(const Aws::String& value) { SetStateReason(value); return *this;} /** *

The reason that the archive is in the state.

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

The reason that the archive is in the state.

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

The number of days to retain events for in the archive.

*/ inline int GetRetentionDays() const{ return m_retentionDays; } /** *

The number of days to retain events for in the archive.

*/ inline void SetRetentionDays(int value) { m_retentionDays = value; } /** *

The number of days to retain events for in the archive.

*/ inline DescribeArchiveResult& WithRetentionDays(int value) { SetRetentionDays(value); return *this;} /** *

The size of the archive in bytes.

*/ inline long long GetSizeBytes() const{ return m_sizeBytes; } /** *

The size of the archive in bytes.

*/ inline void SetSizeBytes(long long value) { m_sizeBytes = value; } /** *

The size of the archive in bytes.

*/ inline DescribeArchiveResult& WithSizeBytes(long long value) { SetSizeBytes(value); return *this;} /** *

The number of events in the archive.

*/ inline long long GetEventCount() const{ return m_eventCount; } /** *

The number of events in the archive.

*/ inline void SetEventCount(long long value) { m_eventCount = value; } /** *

The number of events in the archive.

*/ inline DescribeArchiveResult& WithEventCount(long long value) { SetEventCount(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 DescribeArchiveResult& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *

The time at which the archive was created.

*/ inline DescribeArchiveResult& 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 DescribeArchiveResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeArchiveResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeArchiveResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_archiveArn; Aws::String m_archiveName; Aws::String m_eventSourceArn; Aws::String m_description; Aws::String m_eventPattern; ArchiveState m_state; Aws::String m_stateReason; int m_retentionDays; long long m_sizeBytes; long long m_eventCount; Aws::Utils::DateTime m_creationTime; Aws::String m_requestId; }; } // namespace Model } // namespace EventBridge } // namespace Aws