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

Represents the Amazon Simple Storage Service (Amazon S3) location where usage * data is read from.

See Also:

AWS * API Reference

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

Name of the bucket.

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

Name of the bucket.

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

Name of the bucket.

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

Name of the bucket.

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

Name of the bucket.

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

Name of the bucket.

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

Name of the bucket.

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

Name of the bucket.

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

Key of the object.

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

Key of the object.

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

Key of the object.

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

Key of the object.

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

Key of the object.

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

Key of the object.

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

Key of the object.

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

Key of the object.

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

Region of the bucket. Only required for Regions that are disabled by default. * For more infomration about Regions that are disabled by default, see * Enabling a Region in the AWS General Reference guide.

*/ inline const S3BucketRegion& GetRegion() const{ return m_region; } /** *

Region of the bucket. Only required for Regions that are disabled by default. * For more infomration about Regions that are disabled by default, see * Enabling a Region in the AWS General Reference guide.

*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *

Region of the bucket. Only required for Regions that are disabled by default. * For more infomration about Regions that are disabled by default, see * Enabling a Region in the AWS General Reference guide.

*/ inline void SetRegion(const S3BucketRegion& value) { m_regionHasBeenSet = true; m_region = value; } /** *

Region of the bucket. Only required for Regions that are disabled by default. * For more infomration about Regions that are disabled by default, see * Enabling a Region in the AWS General Reference guide.

*/ inline void SetRegion(S3BucketRegion&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *

Region of the bucket. Only required for Regions that are disabled by default. * For more infomration about Regions that are disabled by default, see * Enabling a Region in the AWS General Reference guide.

*/ inline SourceS3Location& WithRegion(const S3BucketRegion& value) { SetRegion(value); return *this;} /** *

Region of the bucket. Only required for Regions that are disabled by default. * For more infomration about Regions that are disabled by default, see * Enabling a Region in the AWS General Reference guide.

*/ inline SourceS3Location& WithRegion(S3BucketRegion&& value) { SetRegion(std::move(value)); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::String m_key; bool m_keyHasBeenSet = false; S3BucketRegion m_region; bool m_regionHasBeenSet = false; }; } // namespace Model } // namespace ApplicationCostProfiler } // namespace Aws