AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
S3Location.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/model/BundleType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeDeploy {
21namespace Model {
22
30 public:
31 AWS_CODEDEPLOY_API S3Location() = default;
32 AWS_CODEDEPLOY_API S3Location(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEDEPLOY_API S3Location& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetBucket() const { return m_bucket; }
42 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
43 template <typename BucketT = Aws::String>
44 void SetBucket(BucketT&& value) {
45 m_bucketHasBeenSet = true;
46 m_bucket = std::forward<BucketT>(value);
47 }
48 template <typename BucketT = Aws::String>
49 S3Location& WithBucket(BucketT&& value) {
50 SetBucket(std::forward<BucketT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetKey() const { return m_key; }
61 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
62 template <typename KeyT = Aws::String>
63 void SetKey(KeyT&& value) {
64 m_keyHasBeenSet = true;
65 m_key = std::forward<KeyT>(value);
66 }
67 template <typename KeyT = Aws::String>
68 S3Location& WithKey(KeyT&& value) {
69 SetKey(std::forward<KeyT>(value));
70 return *this;
71 }
73
75
83 inline BundleType GetBundleType() const { return m_bundleType; }
84 inline bool BundleTypeHasBeenSet() const { return m_bundleTypeHasBeenSet; }
85 inline void SetBundleType(BundleType value) {
86 m_bundleTypeHasBeenSet = true;
87 m_bundleType = value;
88 }
90 SetBundleType(value);
91 return *this;
92 }
94
96
101 inline const Aws::String& GetVersion() const { return m_version; }
102 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
103 template <typename VersionT = Aws::String>
104 void SetVersion(VersionT&& value) {
105 m_versionHasBeenSet = true;
106 m_version = std::forward<VersionT>(value);
107 }
108 template <typename VersionT = Aws::String>
109 S3Location& WithVersion(VersionT&& value) {
110 SetVersion(std::forward<VersionT>(value));
111 return *this;
112 }
114
116
121 inline const Aws::String& GetETag() const { return m_eTag; }
122 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
123 template <typename ETagT = Aws::String>
124 void SetETag(ETagT&& value) {
125 m_eTagHasBeenSet = true;
126 m_eTag = std::forward<ETagT>(value);
127 }
128 template <typename ETagT = Aws::String>
129 S3Location& WithETag(ETagT&& value) {
130 SetETag(std::forward<ETagT>(value));
131 return *this;
132 }
134 private:
135 Aws::String m_bucket;
136
137 Aws::String m_key;
138
139 BundleType m_bundleType{BundleType::NOT_SET};
140
141 Aws::String m_version;
142
143 Aws::String m_eTag;
144 bool m_bucketHasBeenSet = false;
145 bool m_keyHasBeenSet = false;
146 bool m_bundleTypeHasBeenSet = false;
147 bool m_versionHasBeenSet = false;
148 bool m_eTagHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace CodeDeploy
153} // namespace Aws
AWS_CODEDEPLOY_API S3Location()=default
S3Location & WithBundleType(BundleType value)
Definition S3Location.h:89
const Aws::String & GetETag() const
Definition S3Location.h:121
void SetBucket(BucketT &&value)
Definition S3Location.h:44
const Aws::String & GetBucket() const
Definition S3Location.h:41
AWS_CODEDEPLOY_API S3Location(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetKey() const
Definition S3Location.h:60
S3Location & WithVersion(VersionT &&value)
Definition S3Location.h:109
S3Location & WithKey(KeyT &&value)
Definition S3Location.h:68
const Aws::String & GetVersion() const
Definition S3Location.h:101
BundleType GetBundleType() const
Definition S3Location.h:83
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVersion(VersionT &&value)
Definition S3Location.h:104
void SetBundleType(BundleType value)
Definition S3Location.h:85
AWS_CODEDEPLOY_API S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
S3Location & WithBucket(BucketT &&value)
Definition S3Location.h:49
S3Location & WithETag(ETagT &&value)
Definition S3Location.h:129
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue