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

Represents the Amazon Simple Storage Service (Amazon S3) location where AWS * Application Cost Profiler reports are generated and then written * to.

See Also:

AWS * API Reference

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

Name of the S3 bucket.

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

Name of the S3 bucket.

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

Name of the S3 bucket.

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

Name of the S3 bucket.

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

Name of the S3 bucket.

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

Name of the S3 bucket.

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

Name of the S3 bucket.

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

Name of the S3 bucket.

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

Prefix for the location to write to.

*/ inline const Aws::String& GetPrefix() const{ return m_prefix; } /** *

Prefix for the location to write to.

*/ inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; } /** *

Prefix for the location to write to.

*/ inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; } /** *

Prefix for the location to write to.

*/ inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); } /** *

Prefix for the location to write to.

*/ inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); } /** *

Prefix for the location to write to.

*/ inline S3Location& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;} /** *

Prefix for the location to write to.

*/ inline S3Location& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;} /** *

Prefix for the location to write to.

*/ inline S3Location& WithPrefix(const char* value) { SetPrefix(value); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; Aws::String m_prefix; bool m_prefixHasBeenSet = false; }; } // namespace Model } // namespace ApplicationCostProfiler } // namespace Aws