/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace GuardDuty { namespace Model { /** *

Contains the Amazon Resource Name (ARN) of the resource to publish to, such * as an S3 bucket, and the ARN of the KMS key to use to encrypt published * findings.

See Also:

AWS * API Reference

*/ class DestinationProperties { public: AWS_GUARDDUTY_API DestinationProperties(); AWS_GUARDDUTY_API DestinationProperties(Aws::Utils::Json::JsonView jsonValue); AWS_GUARDDUTY_API DestinationProperties& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The ARN of the resource to publish to.

To specify an S3 bucket folder * use the following format: arn:aws:s3:::DOC-EXAMPLE-BUCKET/myFolder/ *

*/ inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; } /** *

The ARN of the resource to publish to.

To specify an S3 bucket folder * use the following format: arn:aws:s3:::DOC-EXAMPLE-BUCKET/myFolder/ *

*/ inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; } /** *

The ARN of the resource to publish to.

To specify an S3 bucket folder * use the following format: arn:aws:s3:::DOC-EXAMPLE-BUCKET/myFolder/ *

*/ inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; } /** *

The ARN of the resource to publish to.

To specify an S3 bucket folder * use the following format: arn:aws:s3:::DOC-EXAMPLE-BUCKET/myFolder/ *

*/ inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); } /** *

The ARN of the resource to publish to.

To specify an S3 bucket folder * use the following format: arn:aws:s3:::DOC-EXAMPLE-BUCKET/myFolder/ *

*/ inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); } /** *

The ARN of the resource to publish to.

To specify an S3 bucket folder * use the following format: arn:aws:s3:::DOC-EXAMPLE-BUCKET/myFolder/ *

*/ inline DestinationProperties& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;} /** *

The ARN of the resource to publish to.

To specify an S3 bucket folder * use the following format: arn:aws:s3:::DOC-EXAMPLE-BUCKET/myFolder/ *

*/ inline DestinationProperties& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;} /** *

The ARN of the resource to publish to.

To specify an S3 bucket folder * use the following format: arn:aws:s3:::DOC-EXAMPLE-BUCKET/myFolder/ *

*/ inline DestinationProperties& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;} /** *

The ARN of the KMS key to use for encryption.

*/ inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; } /** *

The ARN of the KMS key to use for encryption.

*/ inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; } /** *

The ARN of the KMS key to use for encryption.

*/ inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; } /** *

The ARN of the KMS key to use for encryption.

*/ inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); } /** *

The ARN of the KMS key to use for encryption.

*/ inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); } /** *

The ARN of the KMS key to use for encryption.

*/ inline DestinationProperties& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;} /** *

The ARN of the KMS key to use for encryption.

*/ inline DestinationProperties& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;} /** *

The ARN of the KMS key to use for encryption.

*/ inline DestinationProperties& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;} private: Aws::String m_destinationArn; bool m_destinationArnHasBeenSet = false; Aws::String m_kmsKeyArn; bool m_kmsKeyArnHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws