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

The location of the bucket.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

The location of the bucket.

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

The location of the bucket.

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

The location of the bucket.

*/ inline void SetLocation(const char* value) { m_location.assign(value); } /** *

The location of the bucket.

*/ inline CreateBucketResult& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

The location of the bucket.

*/ inline CreateBucketResult& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

The location of the bucket.

*/ inline CreateBucketResult& WithLocation(const char* value) { SetLocation(value); return *this;} /** *

The Amazon Resource Name (ARN) of the bucket.

For using this parameter * with Amazon S3 on Outposts with the REST API, you must specify the name and the * x-amz-outpost-id as well.

For using this parameter with S3 on Outposts * with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket * accessed in the format * arn:aws:s3-outposts:<Region>:<account-id>:outpost/<outpost-id>/bucket/<my-bucket-name>. * For example, to access the bucket reports through Outpost * my-outpost owned by account 123456789012 in Region * us-west-2, use the URL encoding of * arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. * The value must be URL encoded.

*/ inline const Aws::String& GetBucketArn() const{ return m_bucketArn; } /** *

The Amazon Resource Name (ARN) of the bucket.

For using this parameter * with Amazon S3 on Outposts with the REST API, you must specify the name and the * x-amz-outpost-id as well.

For using this parameter with S3 on Outposts * with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket * accessed in the format * arn:aws:s3-outposts:<Region>:<account-id>:outpost/<outpost-id>/bucket/<my-bucket-name>. * For example, to access the bucket reports through Outpost * my-outpost owned by account 123456789012 in Region * us-west-2, use the URL encoding of * arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. * The value must be URL encoded.

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

The Amazon Resource Name (ARN) of the bucket.

For using this parameter * with Amazon S3 on Outposts with the REST API, you must specify the name and the * x-amz-outpost-id as well.

For using this parameter with S3 on Outposts * with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket * accessed in the format * arn:aws:s3-outposts:<Region>:<account-id>:outpost/<outpost-id>/bucket/<my-bucket-name>. * For example, to access the bucket reports through Outpost * my-outpost owned by account 123456789012 in Region * us-west-2, use the URL encoding of * arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. * The value must be URL encoded.

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

The Amazon Resource Name (ARN) of the bucket.

For using this parameter * with Amazon S3 on Outposts with the REST API, you must specify the name and the * x-amz-outpost-id as well.

For using this parameter with S3 on Outposts * with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket * accessed in the format * arn:aws:s3-outposts:<Region>:<account-id>:outpost/<outpost-id>/bucket/<my-bucket-name>. * For example, to access the bucket reports through Outpost * my-outpost owned by account 123456789012 in Region * us-west-2, use the URL encoding of * arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. * The value must be URL encoded.

*/ inline void SetBucketArn(const char* value) { m_bucketArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the bucket.

For using this parameter * with Amazon S3 on Outposts with the REST API, you must specify the name and the * x-amz-outpost-id as well.

For using this parameter with S3 on Outposts * with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket * accessed in the format * arn:aws:s3-outposts:<Region>:<account-id>:outpost/<outpost-id>/bucket/<my-bucket-name>. * For example, to access the bucket reports through Outpost * my-outpost owned by account 123456789012 in Region * us-west-2, use the URL encoding of * arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. * The value must be URL encoded.

*/ inline CreateBucketResult& WithBucketArn(const Aws::String& value) { SetBucketArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the bucket.

For using this parameter * with Amazon S3 on Outposts with the REST API, you must specify the name and the * x-amz-outpost-id as well.

For using this parameter with S3 on Outposts * with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket * accessed in the format * arn:aws:s3-outposts:<Region>:<account-id>:outpost/<outpost-id>/bucket/<my-bucket-name>. * For example, to access the bucket reports through Outpost * my-outpost owned by account 123456789012 in Region * us-west-2, use the URL encoding of * arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. * The value must be URL encoded.

*/ inline CreateBucketResult& WithBucketArn(Aws::String&& value) { SetBucketArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the bucket.

For using this parameter * with Amazon S3 on Outposts with the REST API, you must specify the name and the * x-amz-outpost-id as well.

For using this parameter with S3 on Outposts * with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket * accessed in the format * arn:aws:s3-outposts:<Region>:<account-id>:outpost/<outpost-id>/bucket/<my-bucket-name>. * For example, to access the bucket reports through Outpost * my-outpost owned by account 123456789012 in Region * us-west-2, use the URL encoding of * arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports. * The value must be URL encoded.

*/ inline CreateBucketResult& WithBucketArn(const char* value) { SetBucketArn(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 CreateBucketResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateBucketResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateBucketResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_location; Aws::String m_bucketArn; Aws::String m_requestId; }; } // namespace Model } // namespace S3Control } // namespace Aws