AWS SDK for C++  1.8.95
AWS SDK for C++
S3Config.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace DataSync
22 {
23 namespace Model
24 {
25 
35  {
36  public:
37  S3Config();
39  S3Config& operator=(Aws::Utils::Json::JsonView jsonValue);
40  Aws::Utils::Json::JsonValue Jsonize() const;
41 
42 
47  inline const Aws::String& GetBucketAccessRoleArn() const{ return m_bucketAccessRoleArn; }
48 
53  inline bool BucketAccessRoleArnHasBeenSet() const { return m_bucketAccessRoleArnHasBeenSet; }
54 
59  inline void SetBucketAccessRoleArn(const Aws::String& value) { m_bucketAccessRoleArnHasBeenSet = true; m_bucketAccessRoleArn = value; }
60 
65  inline void SetBucketAccessRoleArn(Aws::String&& value) { m_bucketAccessRoleArnHasBeenSet = true; m_bucketAccessRoleArn = std::move(value); }
66 
71  inline void SetBucketAccessRoleArn(const char* value) { m_bucketAccessRoleArnHasBeenSet = true; m_bucketAccessRoleArn.assign(value); }
72 
77  inline S3Config& WithBucketAccessRoleArn(const Aws::String& value) { SetBucketAccessRoleArn(value); return *this;}
78 
83  inline S3Config& WithBucketAccessRoleArn(Aws::String&& value) { SetBucketAccessRoleArn(std::move(value)); return *this;}
84 
89  inline S3Config& WithBucketAccessRoleArn(const char* value) { SetBucketAccessRoleArn(value); return *this;}
90 
91  private:
92 
93  Aws::String m_bucketAccessRoleArn;
94  bool m_bucketAccessRoleArnHasBeenSet;
95  };
96 
97 } // namespace Model
98 } // namespace DataSync
99 } // namespace Aws
const Aws::String & GetBucketAccessRoleArn() const
Definition: S3Config.h:47
S3Config & WithBucketAccessRoleArn(Aws::String &&value)
Definition: S3Config.h:83
void SetBucketAccessRoleArn(Aws::String &&value)
Definition: S3Config.h:65
void SetBucketAccessRoleArn(const char *value)
Definition: S3Config.h:71
bool BucketAccessRoleArnHasBeenSet() const
Definition: S3Config.h:53
S3Config & WithBucketAccessRoleArn(const Aws::String &value)
Definition: S3Config.h:77
#define AWS_DATASYNC_API
S3Config & WithBucketAccessRoleArn(const char *value)
Definition: S3Config.h:89
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetBucketAccessRoleArn(const Aws::String &value)
Definition: S3Config.h:59