/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The Amazon Resource Name (ARN) of the Identity and Access Management (IAM)
* role used to access an Amazon S3 bucket. For detailed information about
* using such a role, see Creating a Location for Amazon S3 in the DataSync User
* Guide.See Also:
AWS
* API Reference
The ARN of the IAM role for accessing the S3 bucket.
*/ inline const Aws::String& GetBucketAccessRoleArn() const{ return m_bucketAccessRoleArn; } /** *The ARN of the IAM role for accessing the S3 bucket.
*/ inline bool BucketAccessRoleArnHasBeenSet() const { return m_bucketAccessRoleArnHasBeenSet; } /** *The ARN of the IAM role for accessing the S3 bucket.
*/ inline void SetBucketAccessRoleArn(const Aws::String& value) { m_bucketAccessRoleArnHasBeenSet = true; m_bucketAccessRoleArn = value; } /** *The ARN of the IAM role for accessing the S3 bucket.
*/ inline void SetBucketAccessRoleArn(Aws::String&& value) { m_bucketAccessRoleArnHasBeenSet = true; m_bucketAccessRoleArn = std::move(value); } /** *The ARN of the IAM role for accessing the S3 bucket.
*/ inline void SetBucketAccessRoleArn(const char* value) { m_bucketAccessRoleArnHasBeenSet = true; m_bucketAccessRoleArn.assign(value); } /** *The ARN of the IAM role for accessing the S3 bucket.
*/ inline S3Config& WithBucketAccessRoleArn(const Aws::String& value) { SetBucketAccessRoleArn(value); return *this;} /** *The ARN of the IAM role for accessing the S3 bucket.
*/ inline S3Config& WithBucketAccessRoleArn(Aws::String&& value) { SetBucketAccessRoleArn(std::move(value)); return *this;} /** *The ARN of the IAM role for accessing the S3 bucket.
*/ inline S3Config& WithBucketAccessRoleArn(const char* value) { SetBucketAccessRoleArn(value); return *this;} private: Aws::String m_bucketAccessRoleArn; bool m_bucketAccessRoleArnHasBeenSet = false; }; } // namespace Model } // namespace DataSync } // namespace Aws