AWS SDK for C++  1.8.95
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:
37  S3Location();
39  S3Location& operator=(Aws::Utils::Json::JsonView jsonValue);
40  Aws::Utils::Json::JsonValue Jsonize() const;
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
void SetKey(const char *value)
Definition: S3Location.h:123
S3Location & WithBucket(const Aws::String &value)
Definition: S3Location.h:83
const Aws::String & GetRoleArn() const
Definition: S3Location.h:146
S3Location & WithBucket(const char *value)
Definition: S3Location.h:97
S3Location & WithBucket(Aws::String &&value)
Definition: S3Location.h:90
#define AWS_GAMELIFT_API
const Aws::String & GetKey() const
Definition: S3Location.h:103
S3Location & WithKey(const char *value)
Definition: S3Location.h:138
S3Location & WithObjectVersion(Aws::String &&value)
Definition: S3Location.h:252
S3Location & WithRoleArn(const char *value)
Definition: S3Location.h:195
void SetObjectVersion(const char *value)
Definition: S3Location.h:236
void SetBucket(const Aws::String &value)
Definition: S3Location.h:62
void SetRoleArn(const char *value)
Definition: S3Location.h:174
S3Location & WithKey(const Aws::String &value)
Definition: S3Location.h:128
S3Location & WithObjectVersion(const Aws::String &value)
Definition: S3Location.h:244
S3Location & WithRoleArn(Aws::String &&value)
Definition: S3Location.h:188
void SetRoleArn(Aws::String &&value)
Definition: S3Location.h:167
void SetKey(const Aws::String &value)
Definition: S3Location.h:113
void SetObjectVersion(const Aws::String &value)
Definition: S3Location.h:220
void SetKey(Aws::String &&value)
Definition: S3Location.h:118
S3Location & WithKey(Aws::String &&value)
Definition: S3Location.h:133
void SetBucket(const char *value)
Definition: S3Location.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetObjectVersion() const
Definition: S3Location.h:204
void SetBucket(Aws::String &&value)
Definition: S3Location.h:69
S3Location & WithRoleArn(const Aws::String &value)
Definition: S3Location.h:181
const Aws::String & GetBucket() const
Definition: S3Location.h:48
S3Location & WithObjectVersion(const char *value)
Definition: S3Location.h:260
void SetObjectVersion(Aws::String &&value)
Definition: S3Location.h:228
void SetRoleArn(const Aws::String &value)
Definition: S3Location.h:160