AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
S3Location.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codedeploy/model/BundleType.h>
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:
36 AWS_CODEDEPLOY_API S3Location();
37 AWS_CODEDEPLOY_API S3Location(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEDEPLOY_API S3Location& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetBucket() const{ return m_bucket; }
48 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
49 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
50 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
51 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
52 inline S3Location& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
53 inline S3Location& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
54 inline S3Location& WithBucket(const char* value) { SetBucket(value); return *this;}
56
58
62 inline const Aws::String& GetKey() const{ return m_key; }
63 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
64 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
65 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
66 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
67 inline S3Location& WithKey(const Aws::String& value) { SetKey(value); return *this;}
68 inline S3Location& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
69 inline S3Location& WithKey(const char* value) { SetKey(value); return *this;}
71
73
81 inline const BundleType& GetBundleType() const{ return m_bundleType; }
82 inline bool BundleTypeHasBeenSet() const { return m_bundleTypeHasBeenSet; }
83 inline void SetBundleType(const BundleType& value) { m_bundleTypeHasBeenSet = true; m_bundleType = value; }
84 inline void SetBundleType(BundleType&& value) { m_bundleTypeHasBeenSet = true; m_bundleType = std::move(value); }
85 inline S3Location& WithBundleType(const BundleType& value) { SetBundleType(value); return *this;}
86 inline S3Location& WithBundleType(BundleType&& value) { SetBundleType(std::move(value)); return *this;}
88
90
95 inline const Aws::String& GetVersion() const{ return m_version; }
96 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
97 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
98 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
99 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
100 inline S3Location& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
101 inline S3Location& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
102 inline S3Location& WithVersion(const char* value) { SetVersion(value); return *this;}
104
106
111 inline const Aws::String& GetETag() const{ return m_eTag; }
112 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
113 inline void SetETag(const Aws::String& value) { m_eTagHasBeenSet = true; m_eTag = value; }
114 inline void SetETag(Aws::String&& value) { m_eTagHasBeenSet = true; m_eTag = std::move(value); }
115 inline void SetETag(const char* value) { m_eTagHasBeenSet = true; m_eTag.assign(value); }
116 inline S3Location& WithETag(const Aws::String& value) { SetETag(value); return *this;}
117 inline S3Location& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;}
118 inline S3Location& WithETag(const char* value) { SetETag(value); return *this;}
120 private:
121
122 Aws::String m_bucket;
123 bool m_bucketHasBeenSet = false;
124
125 Aws::String m_key;
126 bool m_keyHasBeenSet = false;
127
128 BundleType m_bundleType;
129 bool m_bundleTypeHasBeenSet = false;
130
131 Aws::String m_version;
132 bool m_versionHasBeenSet = false;
133
134 Aws::String m_eTag;
135 bool m_eTagHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace CodeDeploy
140} // namespace Aws
void SetKey(const Aws::String &value)
Definition S3Location.h:64
S3Location & WithBundleType(BundleType &&value)
Definition S3Location.h:86
void SetETag(Aws::String &&value)
Definition S3Location.h:114
void SetBundleType(BundleType &&value)
Definition S3Location.h:84
S3Location & WithETag(const Aws::String &value)
Definition S3Location.h:116
S3Location & WithBucket(Aws::String &&value)
Definition S3Location.h:53
const BundleType & GetBundleType() const
Definition S3Location.h:81
const Aws::String & GetETag() const
Definition S3Location.h:111
S3Location & WithKey(const Aws::String &value)
Definition S3Location.h:67
void SetVersion(const Aws::String &value)
Definition S3Location.h:97
const Aws::String & GetBucket() const
Definition S3Location.h:47
void SetVersion(Aws::String &&value)
Definition S3Location.h:98
void SetBucket(const Aws::String &value)
Definition S3Location.h:49
S3Location & WithETag(const char *value)
Definition S3Location.h:118
AWS_CODEDEPLOY_API S3Location(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKey() const
Definition S3Location.h:62
void SetETag(const Aws::String &value)
Definition S3Location.h:113
S3Location & WithKey(Aws::String &&value)
Definition S3Location.h:68
void SetBucket(Aws::String &&value)
Definition S3Location.h:50
void SetBucket(const char *value)
Definition S3Location.h:51
void SetETag(const char *value)
Definition S3Location.h:115
S3Location & WithKey(const char *value)
Definition S3Location.h:69
S3Location & WithBucket(const char *value)
Definition S3Location.h:54
const Aws::String & GetVersion() const
Definition S3Location.h:95
AWS_CODEDEPLOY_API S3Location()
void SetBundleType(const BundleType &value)
Definition S3Location.h:83
S3Location & WithETag(Aws::String &&value)
Definition S3Location.h:117
S3Location & WithBucket(const Aws::String &value)
Definition S3Location.h:52
void SetKey(Aws::String &&value)
Definition S3Location.h:65
S3Location & WithVersion(const Aws::String &value)
Definition S3Location.h:100
void SetVersion(const char *value)
Definition S3Location.h:99
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
S3Location & WithBundleType(const BundleType &value)
Definition S3Location.h:85
void SetKey(const char *value)
Definition S3Location.h:66
AWS_CODEDEPLOY_API S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
S3Location & WithVersion(const char *value)
Definition S3Location.h:102
S3Location & WithVersion(Aws::String &&value)
Definition S3Location.h:101
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue