AWS SDK for C++  1.9.109
AWS SDK for C++
S3Location.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 GameLift
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
48  inline const Aws::String& GetBucket() const{ return m_bucket; }
49 
55  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
56 
62  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
63 
69  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
70 
76  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
77 
83  inline S3Location& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
84 
90  inline S3Location& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
91 
97  inline S3Location& WithBucket(const char* value) { SetBucket(value); return *this;}
98 
99 
103  inline const Aws::String& GetKey() const{ return m_key; }
104 
108  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
109 
113  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
114 
118  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
119 
123  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
124 
128  inline S3Location& WithKey(const Aws::String& value) { SetKey(value); return *this;}
129 
133  inline S3Location& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
134 
138  inline S3Location& WithKey(const char* value) { SetKey(value); return *this;}
139 
140 
146  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
147 
153  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
154 
160  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
161 
167  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
168 
174  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
175 
181  inline S3Location& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
182 
188  inline S3Location& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
189 
195  inline S3Location& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
196 
197 
204  inline const Aws::String& GetObjectVersion() const{ return m_objectVersion; }
205 
212  inline bool ObjectVersionHasBeenSet() const { return m_objectVersionHasBeenSet; }
213 
220  inline void SetObjectVersion(const Aws::String& value) { m_objectVersionHasBeenSet = true; m_objectVersion = value; }
221 
228  inline void SetObjectVersion(Aws::String&& value) { m_objectVersionHasBeenSet = true; m_objectVersion = std::move(value); }
229 
236  inline void SetObjectVersion(const char* value) { m_objectVersionHasBeenSet = true; m_objectVersion.assign(value); }
237 
244  inline S3Location& WithObjectVersion(const Aws::String& value) { SetObjectVersion(value); return *this;}
245 
252  inline S3Location& WithObjectVersion(Aws::String&& value) { SetObjectVersion(std::move(value)); return *this;}
253 
260  inline S3Location& WithObjectVersion(const char* value) { SetObjectVersion(value); return *this;}
261 
262  private:
263 
264  Aws::String m_bucket;
265  bool m_bucketHasBeenSet;
266 
267  Aws::String m_key;
268  bool m_keyHasBeenSet;
269 
270  Aws::String m_roleArn;
271  bool m_roleArnHasBeenSet;
272 
273  Aws::String m_objectVersion;
274  bool m_objectVersionHasBeenSet;
275  };
276 
277 } // namespace Model
278 } // namespace GameLift
279 } // namespace Aws
Aws::GameLift::Model::S3Location::WithBucket
S3Location & WithBucket(const Aws::String &value)
Definition: S3Location.h:83
Aws::GameLift::Model::S3Location::WithBucket
S3Location & WithBucket(const char *value)
Definition: S3Location.h:97
Aws::GameLift::Model::S3Location::WithKey
S3Location & WithKey(Aws::String &&value)
Definition: S3Location.h:133
Aws::GameLift::Model::S3Location::SetBucket
void SetBucket(const char *value)
Definition: S3Location.h:76
Aws::GameLift::Model::S3Location::WithKey
S3Location & WithKey(const Aws::String &value)
Definition: S3Location.h:128
Aws::GameLift::Model::S3Location::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: S3Location.h:160
Aws::GameLift::Model::S3Location::WithObjectVersion
S3Location & WithObjectVersion(Aws::String &&value)
Definition: S3Location.h:252
Aws::GameLift::Model::S3Location::SetObjectVersion
void SetObjectVersion(const Aws::String &value)
Definition: S3Location.h:220
Aws::GameLift::Model::S3Location::GetKey
const Aws::String & GetKey() const
Definition: S3Location.h:103
Aws::GameLift::Model::S3Location::operator=
S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::S3Location::SetBucket
void SetBucket(Aws::String &&value)
Definition: S3Location.h:69
Aws::GameLift::Model::S3Location::ObjectVersionHasBeenSet
bool ObjectVersionHasBeenSet() const
Definition: S3Location.h:212
Aws::GameLift::Model::S3Location::S3Location
S3Location(Aws::Utils::Json::JsonView jsonValue)
GameLift_EXPORTS.h
Aws::GameLift::Model::S3Location::WithKey
S3Location & WithKey(const char *value)
Definition: S3Location.h:138
Aws::GameLift::Model::S3Location::S3Location
S3Location()
Aws::GameLift::Model::S3Location::WithRoleArn
S3Location & WithRoleArn(const char *value)
Definition: S3Location.h:195
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GameLift::Model::S3Location::SetKey
void SetKey(const Aws::String &value)
Definition: S3Location.h:113
Aws::GameLift::Model::S3Location::WithRoleArn
S3Location & WithRoleArn(Aws::String &&value)
Definition: S3Location.h:188
Aws::GameLift::Model::S3Location::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::S3Location::SetBucket
void SetBucket(const Aws::String &value)
Definition: S3Location.h:62
Aws::GameLift::Model::S3Location::SetKey
void SetKey(Aws::String &&value)
Definition: S3Location.h:118
Aws::GameLift::Model::S3Location::BucketHasBeenSet
bool BucketHasBeenSet() const
Definition: S3Location.h:55
Aws::GameLift::Model::S3Location::SetObjectVersion
void SetObjectVersion(const char *value)
Definition: S3Location.h:236
Aws::GameLift::Model::S3Location::SetKey
void SetKey(const char *value)
Definition: S3Location.h:123
Aws::GameLift::Model::S3Location::WithObjectVersion
S3Location & WithObjectVersion(const Aws::String &value)
Definition: S3Location.h:244
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::S3Location
Definition: S3Location.h:35
Aws::GameLift::Model::S3Location::WithObjectVersion
S3Location & WithObjectVersion(const char *value)
Definition: S3Location.h:260
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::S3Location::SetObjectVersion
void SetObjectVersion(Aws::String &&value)
Definition: S3Location.h:228
Aws::GameLift::Model::S3Location::GetBucket
const Aws::String & GetBucket() const
Definition: S3Location.h:48
Aws::GameLift::Model::S3Location::GetObjectVersion
const Aws::String & GetObjectVersion() const
Definition: S3Location.h:204
Aws::GameLift::Model::S3Location::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: S3Location.h:153
Aws::GameLift::Model::S3Location::WithBucket
S3Location & WithBucket(Aws::String &&value)
Definition: S3Location.h:90
Aws::GameLift::Model::S3Location::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: S3Location.h:108
Aws::GameLift::Model::S3Location::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: S3Location.h:167
Aws::GameLift::Model::S3Location::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: S3Location.h:146
Aws::GameLift::Model::S3Location::WithRoleArn
S3Location & WithRoleArn(const Aws::String &value)
Definition: S3Location.h:181
Aws::GameLift::Model::S3Location::SetRoleArn
void SetRoleArn(const char *value)
Definition: S3Location.h:174