/** * 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 ComputeOptimizer { namespace Model { /** *

Describes the destination Amazon Simple Storage Service (Amazon S3) bucket * name and object keys of a recommendations export file, and its associated * metadata file.

See Also:

AWS * API Reference

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

The name of the Amazon S3 bucket used as the destination of an export * file.

*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *

The name of the Amazon S3 bucket used as the destination of an export * file.

*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *

The name of the Amazon S3 bucket used as the destination of an export * file.

*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *

The name of the Amazon S3 bucket used as the destination of an export * file.

*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *

The name of the Amazon S3 bucket used as the destination of an export * file.

*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *

The name of the Amazon S3 bucket used as the destination of an export * file.

*/ inline S3Destination& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *

The name of the Amazon S3 bucket used as the destination of an export * file.

*/ inline S3Destination& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *

The name of the Amazon S3 bucket used as the destination of an export * file.

*/ inline S3Destination& WithBucket(const char* value) { SetBucket(value); return *this;} /** *

The Amazon S3 bucket key of an export file.

The key uniquely * identifies the object, or export file, in the S3 bucket.

*/ inline const Aws::String& GetKey() const{ return m_key; } /** *

The Amazon S3 bucket key of an export file.

The key uniquely * identifies the object, or export file, in the S3 bucket.

*/ inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } /** *

The Amazon S3 bucket key of an export file.

The key uniquely * identifies the object, or export file, in the S3 bucket.

*/ inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } /** *

The Amazon S3 bucket key of an export file.

The key uniquely * identifies the object, or export file, in the S3 bucket.

*/ inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } /** *

The Amazon S3 bucket key of an export file.

The key uniquely * identifies the object, or export file, in the S3 bucket.

*/ inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } /** *

The Amazon S3 bucket key of an export file.

The key uniquely * identifies the object, or export file, in the S3 bucket.

*/ inline S3Destination& WithKey(const Aws::String& value) { SetKey(value); return *this;} /** *

The Amazon S3 bucket key of an export file.

The key uniquely * identifies the object, or export file, in the S3 bucket.

*/ inline S3Destination& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} /** *

The Amazon S3 bucket key of an export file.

The key uniquely * identifies the object, or export file, in the S3 bucket.

*/ inline S3Destination& WithKey(const char* value) { SetKey(value); return *this;} /** *

The Amazon S3 bucket key of a metadata file.

The key uniquely * identifies the object, or metadata file, in the S3 bucket.

*/ inline const Aws::String& GetMetadataKey() const{ return m_metadataKey; } /** *

The Amazon S3 bucket key of a metadata file.

The key uniquely * identifies the object, or metadata file, in the S3 bucket.

*/ inline bool MetadataKeyHasBeenSet() const { return m_metadataKeyHasBeenSet; } /** *

The Amazon S3 bucket key of a metadata file.

The key uniquely * identifies the object, or metadata file, in the S3 bucket.

*/ inline void SetMetadataKey(const Aws::String& value) { m_metadataKeyHasBeenSet = true; m_metadataKey = value; } /** *

The Amazon S3 bucket key of a metadata file.

The key uniquely * identifies the object, or metadata file, in the S3 bucket.

*/ inline void SetMetadataKey(Aws::String&& value) { m_metadataKeyHasBeenSet = true; m_metadataKey = std::move(value); } /** *

The Amazon S3 bucket key of a metadata file.

The key uniquely * identifies the object, or metadata file, in the S3 bucket.

*/ inline void SetMetadataKey(const char* value) { m_metadataKeyHasBeenSet = true; m_metadataKey.assign(value); } /** *

The Amazon S3 bucket key of a metadata file.

The key uniquely * identifies the object, or metadata file, in the S3 bucket.

*/ inline S3Destination& WithMetadataKey(const Aws::String& value) { SetMetadataKey(value); return *this;} /** *

The Amazon S3 bucket key of a metadata file.

The key uniquely * identifies the object, or metadata file, in the S3 bucket.

*/ inline S3Destination& WithMetadataKey(Aws::String&& value) { SetMetadataKey(std::move(value)); return *this;} /** *

The Amazon S3 bucket key of a metadata file.

The key uniquely * identifies the object, or metadata file, in the S3 bucket.

*/ inline S3Destination& WithMetadataKey(const char* value) { SetMetadataKey(value); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::String m_key; bool m_keyHasBeenSet = false; Aws::String m_metadataKey; bool m_metadataKeyHasBeenSet = false; }; } // namespace Model } // namespace ComputeOptimizer } // namespace Aws