AWS SDK for C++  1.8.21
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 
46  inline const Aws::String& GetBucket() const{ return m_bucket; }
47 
51  inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
52 
56  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
57 
61  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
62 
66  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
67 
71  inline S3Location& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
72 
76  inline S3Location& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
77 
81  inline S3Location& WithBucket(const char* value) { SetBucket(value); return *this;}
82 
83 
87  inline const Aws::String& GetKey() const{ return m_key; }
88 
92  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
93 
97  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
98 
102  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
103 
107  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
108 
112  inline S3Location& WithKey(const Aws::String& value) { SetKey(value); return *this;}
113 
117  inline S3Location& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
118 
122  inline S3Location& WithKey(const char* value) { SetKey(value); return *this;}
123 
124 
130  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
131 
137  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
138 
144  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
145 
151  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
152 
158  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
159 
165  inline S3Location& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
166 
172  inline S3Location& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
173 
179  inline S3Location& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
180 
181 
188  inline const Aws::String& GetObjectVersion() const{ return m_objectVersion; }
189 
196  inline bool ObjectVersionHasBeenSet() const { return m_objectVersionHasBeenSet; }
197 
204  inline void SetObjectVersion(const Aws::String& value) { m_objectVersionHasBeenSet = true; m_objectVersion = value; }
205 
212  inline void SetObjectVersion(Aws::String&& value) { m_objectVersionHasBeenSet = true; m_objectVersion = std::move(value); }
213 
220  inline void SetObjectVersion(const char* value) { m_objectVersionHasBeenSet = true; m_objectVersion.assign(value); }
221 
228  inline S3Location& WithObjectVersion(const Aws::String& value) { SetObjectVersion(value); return *this;}
229 
236  inline S3Location& WithObjectVersion(Aws::String&& value) { SetObjectVersion(std::move(value)); return *this;}
237 
244  inline S3Location& WithObjectVersion(const char* value) { SetObjectVersion(value); return *this;}
245 
246  private:
247 
248  Aws::String m_bucket;
249  bool m_bucketHasBeenSet;
250 
251  Aws::String m_key;
252  bool m_keyHasBeenSet;
253 
254  Aws::String m_roleArn;
255  bool m_roleArnHasBeenSet;
256 
257  Aws::String m_objectVersion;
258  bool m_objectVersionHasBeenSet;
259  };
260 
261 } // namespace Model
262 } // namespace GameLift
263 } // namespace Aws
void SetKey(const char *value)
Definition: S3Location.h:107
S3Location & WithBucket(const Aws::String &value)
Definition: S3Location.h:71
const Aws::String & GetRoleArn() const
Definition: S3Location.h:130
S3Location & WithBucket(const char *value)
Definition: S3Location.h:81
S3Location & WithBucket(Aws::String &&value)
Definition: S3Location.h:76
#define AWS_GAMELIFT_API
const Aws::String & GetKey() const
Definition: S3Location.h:87
S3Location & WithKey(const char *value)
Definition: S3Location.h:122
S3Location & WithObjectVersion(Aws::String &&value)
Definition: S3Location.h:236
S3Location & WithRoleArn(const char *value)
Definition: S3Location.h:179
void SetObjectVersion(const char *value)
Definition: S3Location.h:220
void SetBucket(const Aws::String &value)
Definition: S3Location.h:56
void SetRoleArn(const char *value)
Definition: S3Location.h:158
S3Location & WithKey(const Aws::String &value)
Definition: S3Location.h:112
S3Location & WithObjectVersion(const Aws::String &value)
Definition: S3Location.h:228
S3Location & WithRoleArn(Aws::String &&value)
Definition: S3Location.h:172
void SetRoleArn(Aws::String &&value)
Definition: S3Location.h:151
void SetKey(const Aws::String &value)
Definition: S3Location.h:97
void SetObjectVersion(const Aws::String &value)
Definition: S3Location.h:204
void SetKey(Aws::String &&value)
Definition: S3Location.h:102
S3Location & WithKey(Aws::String &&value)
Definition: S3Location.h:117
void SetBucket(const char *value)
Definition: S3Location.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetObjectVersion() const
Definition: S3Location.h:188
void SetBucket(Aws::String &&value)
Definition: S3Location.h:61
S3Location & WithRoleArn(const Aws::String &value)
Definition: S3Location.h:165
const Aws::String & GetBucket() const
Definition: S3Location.h:46
S3Location & WithObjectVersion(const char *value)
Definition: S3Location.h:244
void SetObjectVersion(Aws::String &&value)
Definition: S3Location.h:212
void SetRoleArn(const Aws::String &value)
Definition: S3Location.h:144