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

The ID of the publishing destination.

*/ inline const Aws::String& GetDestinationId() const{ return m_destinationId; } /** *

The ID of the publishing destination.

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

The ID of the publishing destination.

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

The ID of the publishing destination.

*/ inline void SetDestinationId(const char* value) { m_destinationId.assign(value); } /** *

The ID of the publishing destination.

*/ inline DescribePublishingDestinationResult& WithDestinationId(const Aws::String& value) { SetDestinationId(value); return *this;} /** *

The ID of the publishing destination.

*/ inline DescribePublishingDestinationResult& WithDestinationId(Aws::String&& value) { SetDestinationId(std::move(value)); return *this;} /** *

The ID of the publishing destination.

*/ inline DescribePublishingDestinationResult& WithDestinationId(const char* value) { SetDestinationId(value); return *this;} /** *

The type of publishing destination. Currently, only Amazon S3 buckets are * supported.

*/ inline const DestinationType& GetDestinationType() const{ return m_destinationType; } /** *

The type of publishing destination. Currently, only Amazon S3 buckets are * supported.

*/ inline void SetDestinationType(const DestinationType& value) { m_destinationType = value; } /** *

The type of publishing destination. Currently, only Amazon S3 buckets are * supported.

*/ inline void SetDestinationType(DestinationType&& value) { m_destinationType = std::move(value); } /** *

The type of publishing destination. Currently, only Amazon S3 buckets are * supported.

*/ inline DescribePublishingDestinationResult& WithDestinationType(const DestinationType& value) { SetDestinationType(value); return *this;} /** *

The type of publishing destination. Currently, only Amazon S3 buckets are * supported.

*/ inline DescribePublishingDestinationResult& WithDestinationType(DestinationType&& value) { SetDestinationType(std::move(value)); return *this;} /** *

The status of the publishing destination.

*/ inline const PublishingStatus& GetStatus() const{ return m_status; } /** *

The status of the publishing destination.

*/ inline void SetStatus(const PublishingStatus& value) { m_status = value; } /** *

The status of the publishing destination.

*/ inline void SetStatus(PublishingStatus&& value) { m_status = std::move(value); } /** *

The status of the publishing destination.

*/ inline DescribePublishingDestinationResult& WithStatus(const PublishingStatus& value) { SetStatus(value); return *this;} /** *

The status of the publishing destination.

*/ inline DescribePublishingDestinationResult& WithStatus(PublishingStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The time, in epoch millisecond format, at which GuardDuty was first unable to * publish findings to the destination.

*/ inline long long GetPublishingFailureStartTimestamp() const{ return m_publishingFailureStartTimestamp; } /** *

The time, in epoch millisecond format, at which GuardDuty was first unable to * publish findings to the destination.

*/ inline void SetPublishingFailureStartTimestamp(long long value) { m_publishingFailureStartTimestamp = value; } /** *

The time, in epoch millisecond format, at which GuardDuty was first unable to * publish findings to the destination.

*/ inline DescribePublishingDestinationResult& WithPublishingFailureStartTimestamp(long long value) { SetPublishingFailureStartTimestamp(value); return *this;} /** *

A DestinationProperties object that includes the * DestinationArn and KmsKeyArn of the publishing * destination.

*/ inline const DestinationProperties& GetDestinationProperties() const{ return m_destinationProperties; } /** *

A DestinationProperties object that includes the * DestinationArn and KmsKeyArn of the publishing * destination.

*/ inline void SetDestinationProperties(const DestinationProperties& value) { m_destinationProperties = value; } /** *

A DestinationProperties object that includes the * DestinationArn and KmsKeyArn of the publishing * destination.

*/ inline void SetDestinationProperties(DestinationProperties&& value) { m_destinationProperties = std::move(value); } /** *

A DestinationProperties object that includes the * DestinationArn and KmsKeyArn of the publishing * destination.

*/ inline DescribePublishingDestinationResult& WithDestinationProperties(const DestinationProperties& value) { SetDestinationProperties(value); return *this;} /** *

A DestinationProperties object that includes the * DestinationArn and KmsKeyArn of the publishing * destination.

*/ inline DescribePublishingDestinationResult& WithDestinationProperties(DestinationProperties&& value) { SetDestinationProperties(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 DescribePublishingDestinationResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribePublishingDestinationResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribePublishingDestinationResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_destinationId; DestinationType m_destinationType; PublishingStatus m_status; long long m_publishingFailureStartTimestamp; DestinationProperties m_destinationProperties; Aws::String m_requestId; }; } // namespace Model } // namespace GuardDuty } // namespace Aws