AWS SDK for C++  1.9.123
AWS SDK for C++
S3Action.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
46 
50  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
51 
55  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
56 
60  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
61 
65  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
66 
70  inline S3Action& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
71 
75  inline S3Action& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
76 
80  inline S3Action& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
81 
82 
86  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
87 
91  inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
92 
96  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
97 
101  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
102 
106  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
107 
111  inline S3Action& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
112 
116  inline S3Action& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
117 
121  inline S3Action& WithBucketName(const char* value) { SetBucketName(value); return *this;}
122 
123 
129  inline const Aws::String& GetKey() const{ return m_key; }
130 
136  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
137 
143  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
144 
150  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
151 
157  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
158 
164  inline S3Action& WithKey(const Aws::String& value) { SetKey(value); return *this;}
165 
171  inline S3Action& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
172 
178  inline S3Action& WithKey(const char* value) { SetKey(value); return *this;}
179 
180 
187  inline const CannedAccessControlList& GetCannedAcl() const{ return m_cannedAcl; }
188 
195  inline bool CannedAclHasBeenSet() const { return m_cannedAclHasBeenSet; }
196 
203  inline void SetCannedAcl(const CannedAccessControlList& value) { m_cannedAclHasBeenSet = true; m_cannedAcl = value; }
204 
211  inline void SetCannedAcl(CannedAccessControlList&& value) { m_cannedAclHasBeenSet = true; m_cannedAcl = std::move(value); }
212 
219  inline S3Action& WithCannedAcl(const CannedAccessControlList& value) { SetCannedAcl(value); return *this;}
220 
227  inline S3Action& WithCannedAcl(CannedAccessControlList&& value) { SetCannedAcl(std::move(value)); return *this;}
228 
229  private:
230 
231  Aws::String m_roleArn;
232  bool m_roleArnHasBeenSet;
233 
234  Aws::String m_bucketName;
235  bool m_bucketNameHasBeenSet;
236 
237  Aws::String m_key;
238  bool m_keyHasBeenSet;
239 
240  CannedAccessControlList m_cannedAcl;
241  bool m_cannedAclHasBeenSet;
242  };
243 
244 } // namespace Model
245 } // namespace IoT
246 } // namespace Aws
Aws::IoT::Model::S3Action::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: S3Action.h:50
Aws::IoT::Model::S3Action::WithRoleArn
S3Action & WithRoleArn(const char *value)
Definition: S3Action.h:80
Aws::IoT::Model::S3Action::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: S3Action.h:60
Aws::IoT::Model::S3Action::operator=
S3Action & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::CannedAccessControlList
CannedAccessControlList
Definition: CannedAccessControlList.h:17
Aws::IoT::Model::S3Action::WithKey
S3Action & WithKey(const Aws::String &value)
Definition: S3Action.h:164
Aws::IoT::Model::S3Action::CannedAclHasBeenSet
bool CannedAclHasBeenSet() const
Definition: S3Action.h:195
Aws::IoT::Model::S3Action::BucketNameHasBeenSet
bool BucketNameHasBeenSet() const
Definition: S3Action.h:91
Aws::IoT::Model::S3Action::SetCannedAcl
void SetCannedAcl(const CannedAccessControlList &value)
Definition: S3Action.h:203
Aws::IoT::Model::S3Action::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: S3Action.h:45
Aws::IoT::Model::S3Action::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::S3Action::S3Action
S3Action(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::S3Action::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: S3Action.h:136
Aws::IoT::Model::S3Action::WithRoleArn
S3Action & WithRoleArn(Aws::String &&value)
Definition: S3Action.h:75
Aws::IoT::Model::S3Action::GetCannedAcl
const CannedAccessControlList & GetCannedAcl() const
Definition: S3Action.h:187
Aws::IoT::Model::S3Action::WithCannedAcl
S3Action & WithCannedAcl(const CannedAccessControlList &value)
Definition: S3Action.h:219
Aws::IoT::Model::S3Action::SetBucketName
void SetBucketName(const Aws::String &value)
Definition: S3Action.h:96
CannedAccessControlList.h
Aws::IoT::Model::S3Action::SetKey
void SetKey(const char *value)
Definition: S3Action.h:157
Aws::IoT::Model::S3Action::SetCannedAcl
void SetCannedAcl(CannedAccessControlList &&value)
Definition: S3Action.h:211
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::S3Action
Definition: S3Action.h:34
Aws::IoT::Model::S3Action::SetBucketName
void SetBucketName(Aws::String &&value)
Definition: S3Action.h:101
Aws::IoT::Model::S3Action::SetRoleArn
void SetRoleArn(const char *value)
Definition: S3Action.h:65
Aws::IoT::Model::S3Action::WithBucketName
S3Action & WithBucketName(Aws::String &&value)
Definition: S3Action.h:116
Aws::IoT::Model::S3Action::S3Action
S3Action()
Aws::IoT::Model::S3Action::SetBucketName
void SetBucketName(const char *value)
Definition: S3Action.h:106
Aws::IoT::Model::S3Action::GetKey
const Aws::String & GetKey() const
Definition: S3Action.h:129
Aws::IoT::Model::S3Action::WithRoleArn
S3Action & WithRoleArn(const Aws::String &value)
Definition: S3Action.h:70
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::S3Action::WithKey
S3Action & WithKey(const char *value)
Definition: S3Action.h:178
Aws::IoT::Model::S3Action::WithCannedAcl
S3Action & WithCannedAcl(CannedAccessControlList &&value)
Definition: S3Action.h:227
Aws::IoT::Model::S3Action::GetBucketName
const Aws::String & GetBucketName() const
Definition: S3Action.h:86
Aws::IoT::Model::S3Action::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: S3Action.h:55
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::S3Action::SetKey
void SetKey(Aws::String &&value)
Definition: S3Action.h:150
Aws::IoT::Model::S3Action::WithKey
S3Action & WithKey(Aws::String &&value)
Definition: S3Action.h:171
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::S3Action::WithBucketName
S3Action & WithBucketName(const char *value)
Definition: S3Action.h:121
Aws::IoT::Model::S3Action::WithBucketName
S3Action & WithBucketName(const Aws::String &value)
Definition: S3Action.h:111
Aws::IoT::Model::S3Action::SetKey
void SetKey(const Aws::String &value)
Definition: S3Action.h:143
IoT_EXPORTS.h