AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
S3Location.h
Go to the documentation of this file.
1
6#pragma once
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeDeploy
23{
24namespace Model
25{
26
34 {
35 public:
40
41
46 inline const Aws::String& GetBucket() const{ return m_bucket; }
47
52 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
53
58 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
59
64 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
65
70 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
71
76 inline S3Location& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
77
82 inline S3Location& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
83
88 inline S3Location& WithBucket(const char* value) { SetBucket(value); return *this;}
89
90
95 inline const Aws::String& GetKey() const{ return m_key; }
96
101 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
102
107 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
108
113 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
114
119 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
120
125 inline S3Location& WithKey(const Aws::String& value) { SetKey(value); return *this;}
126
131 inline S3Location& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
132
137 inline S3Location& WithKey(const char* value) { SetKey(value); return *this;}
138
139
146 inline const BundleType& GetBundleType() const{ return m_bundleType; }
147
154 inline bool BundleTypeHasBeenSet() const { return m_bundleTypeHasBeenSet; }
155
162 inline void SetBundleType(const BundleType& value) { m_bundleTypeHasBeenSet = true; m_bundleType = value; }
163
170 inline void SetBundleType(BundleType&& value) { m_bundleTypeHasBeenSet = true; m_bundleType = std::move(value); }
171
178 inline S3Location& WithBundleType(const BundleType& value) { SetBundleType(value); return *this;}
179
186 inline S3Location& WithBundleType(BundleType&& value) { SetBundleType(std::move(value)); return *this;}
187
188
194 inline const Aws::String& GetVersion() const{ return m_version; }
195
201 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
202
208 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
209
215 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
216
222 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
223
229 inline S3Location& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
230
236 inline S3Location& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
237
243 inline S3Location& WithVersion(const char* value) { SetVersion(value); return *this;}
244
245
251 inline const Aws::String& GetETag() const{ return m_eTag; }
252
258 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
259
265 inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; }
266
272 inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); }
273
279 inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); }
280
286 inline S3Location& WithETag(const Aws::String& value) { SetETag(value); return *this;}
287
293 inline S3Location& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
294
300 inline S3Location& WithETag(const char* value) { SetETag(value); return *this;}
301
302 private:
303
304 Aws::String m_bucket;
305 bool m_bucketHasBeenSet = false;
306
307 Aws::String m_key;
308 bool m_keyHasBeenSet = false;
309
310 BundleType m_bundleType;
311 bool m_bundleTypeHasBeenSet = false;
312
313 Aws::String m_version;
314 bool m_versionHasBeenSet = false;
315
316 Aws::String m_eTag;
317 bool m_eTagHasBeenSet = false;
318 };
319
320} // namespace Model
321} // namespace CodeDeploy
322} // namespace Aws
#define AWS_CODEDEPLOY_API
void SetKey(const Aws::String &value)
Definition: S3Location.h:107
S3Location & WithBundleType(BundleType &&value)
Definition: S3Location.h:186
void SetETag(Aws::String &&value)
Definition: S3Location.h:272
void SetBundleType(BundleType &&value)
Definition: S3Location.h:170
S3Location & WithETag(const Aws::String &value)
Definition: S3Location.h:286
S3Location & WithBucket(Aws::String &&value)
Definition: S3Location.h:82
const BundleType & GetBundleType() const
Definition: S3Location.h:146
const Aws::String & GetETag() const
Definition: S3Location.h:251
S3Location & WithKey(const Aws::String &value)
Definition: S3Location.h:125
void SetVersion(const Aws::String &value)
Definition: S3Location.h:208
const Aws::String & GetBucket() const
Definition: S3Location.h:46
void SetVersion(Aws::String &&value)
Definition: S3Location.h:215
void SetBucket(const Aws::String &value)
Definition: S3Location.h:58
S3Location & WithETag(const char *value)
Definition: S3Location.h:300
AWS_CODEDEPLOY_API S3Location(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKey() const
Definition: S3Location.h:95
void SetETag(const Aws::String &value)
Definition: S3Location.h:265
S3Location & WithKey(Aws::String &&value)
Definition: S3Location.h:131
void SetBucket(Aws::String &&value)
Definition: S3Location.h:64
void SetBucket(const char *value)
Definition: S3Location.h:70
void SetETag(const char *value)
Definition: S3Location.h:279
S3Location & WithKey(const char *value)
Definition: S3Location.h:137
S3Location & WithBucket(const char *value)
Definition: S3Location.h:88
const Aws::String & GetVersion() const
Definition: S3Location.h:194
AWS_CODEDEPLOY_API S3Location()
void SetBundleType(const BundleType &value)
Definition: S3Location.h:162
S3Location & WithETag(Aws::String &&value)
Definition: S3Location.h:293
S3Location & WithBucket(const Aws::String &value)
Definition: S3Location.h:76
void SetKey(Aws::String &&value)
Definition: S3Location.h:113
S3Location & WithVersion(const Aws::String &value)
Definition: S3Location.h:229
void SetVersion(const char *value)
Definition: S3Location.h:222
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
S3Location & WithBundleType(const BundleType &value)
Definition: S3Location.h:178
void SetKey(const char *value)
Definition: S3Location.h:119
AWS_CODEDEPLOY_API S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
S3Location & WithVersion(const char *value)
Definition: S3Location.h:243
S3Location & WithVersion(Aws::String &&value)
Definition: S3Location.h:236
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String