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

The Amazon Resource Name (ARN) of the AWS Identity and Access Management * (IAM) role that is used to access an Amazon S3 bucket.

For detailed * information about using such a role, see Creating a Location for Amazon S3 in * the AWS DataSync User Guide.

See Also:

AWS * API Reference

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

The Amazon S3 bucket to access. This bucket is used as a parameter in the * CreateLocationS3 operation.

*/ inline const Aws::String& GetBucketAccessRoleArn() const{ return m_bucketAccessRoleArn; } /** *

The Amazon S3 bucket to access. This bucket is used as a parameter in the * CreateLocationS3 operation.

*/ inline bool BucketAccessRoleArnHasBeenSet() const { return m_bucketAccessRoleArnHasBeenSet; } /** *

The Amazon S3 bucket to access. This bucket is used as a parameter in the * CreateLocationS3 operation.

*/ inline void SetBucketAccessRoleArn(const Aws::String& value) { m_bucketAccessRoleArnHasBeenSet = true; m_bucketAccessRoleArn = value; } /** *

The Amazon S3 bucket to access. This bucket is used as a parameter in the * CreateLocationS3 operation.

*/ inline void SetBucketAccessRoleArn(Aws::String&& value) { m_bucketAccessRoleArnHasBeenSet = true; m_bucketAccessRoleArn = std::move(value); } /** *

The Amazon S3 bucket to access. This bucket is used as a parameter in the * CreateLocationS3 operation.

*/ inline void SetBucketAccessRoleArn(const char* value) { m_bucketAccessRoleArnHasBeenSet = true; m_bucketAccessRoleArn.assign(value); } /** *

The Amazon S3 bucket to access. This bucket is used as a parameter in the * CreateLocationS3 operation.

*/ inline S3Config& WithBucketAccessRoleArn(const Aws::String& value) { SetBucketAccessRoleArn(value); return *this;} /** *

The Amazon S3 bucket to access. This bucket is used as a parameter in the * CreateLocationS3 operation.

*/ inline S3Config& WithBucketAccessRoleArn(Aws::String&& value) { SetBucketAccessRoleArn(std::move(value)); return *this;} /** *

The Amazon S3 bucket to access. This bucket is used as a parameter in the * CreateLocationS3 operation.

*/ inline S3Config& WithBucketAccessRoleArn(const char* value) { SetBucketAccessRoleArn(value); return *this;} private: Aws::String m_bucketAccessRoleArn; bool m_bucketAccessRoleArnHasBeenSet; }; } // namespace Model } // namespace DataSync } // namespace Aws