AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename BucketT = Aws::String>
50 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
51 template<typename BucketT = Aws::String>
52 S3Location& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
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) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
64 template<typename KeyT = Aws::String>
65 S3Location& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
67
69
77 inline BundleType GetBundleType() const { return m_bundleType; }
78 inline bool BundleTypeHasBeenSet() const { return m_bundleTypeHasBeenSet; }
79 inline void SetBundleType(BundleType value) { m_bundleTypeHasBeenSet = true; m_bundleType = value; }
80 inline S3Location& WithBundleType(BundleType value) { SetBundleType(value); return *this;}
82
84
89 inline const Aws::String& GetVersion() const { return m_version; }
90 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
91 template<typename VersionT = Aws::String>
92 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
93 template<typename VersionT = Aws::String>
94 S3Location& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
96
98
103 inline const Aws::String& GetETag() const { return m_eTag; }
104 inline bool ETagHasBeenSet() const { return m_eTagHasBeenSet; }
105 template<typename ETagT = Aws::String>
106 void SetETag(ETagT&& value) { m_eTagHasBeenSet = true; m_eTag = std::forward<ETagT>(value); }
107 template<typename ETagT = Aws::String>
108 S3Location& WithETag(ETagT&& value) { SetETag(std::forward<ETagT>(value)); return *this;}
110 private:
111
112 Aws::String m_bucket;
113 bool m_bucketHasBeenSet = false;
114
115 Aws::String m_key;
116 bool m_keyHasBeenSet = false;
117
118 BundleType m_bundleType{BundleType::NOT_SET};
119 bool m_bundleTypeHasBeenSet = false;
120
121 Aws::String m_version;
122 bool m_versionHasBeenSet = false;
123
124 Aws::String m_eTag;
125 bool m_eTagHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace CodeDeploy
130} // namespace Aws
AWS_CODEDEPLOY_API S3Location()=default
S3Location & WithBundleType(BundleType value)
Definition S3Location.h:80
const Aws::String & GetETag() const
Definition S3Location.h:103
void SetBucket(BucketT &&value)
Definition S3Location.h:50
const Aws::String & GetBucket() const
Definition S3Location.h:47
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:94
S3Location & WithKey(KeyT &&value)
Definition S3Location.h:65
const Aws::String & GetVersion() const
Definition S3Location.h:89
BundleType GetBundleType() const
Definition S3Location.h:77
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVersion(VersionT &&value)
Definition S3Location.h:92
void SetBundleType(BundleType value)
Definition S3Location.h:79
AWS_CODEDEPLOY_API S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
S3Location & WithBucket(BucketT &&value)
Definition S3Location.h:52
S3Location & WithETag(ETagT &&value)
Definition S3Location.h:108
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue