AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
S3Target.h
1
6#pragma once
7#include <aws/continuum/Continuum_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Continuum {
20namespace Model {
21
27class S3Target {
28 public:
29 AWS_CONTINUUM_API S3Target() = default;
30 AWS_CONTINUUM_API S3Target(Aws::Utils::Json::JsonView jsonValue);
31 AWS_CONTINUUM_API S3Target& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
36 inline const Aws::String& GetBucket() const { return m_bucket; }
37 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
38 template <typename BucketT = Aws::String>
39 void SetBucket(BucketT&& value) {
40 m_bucketHasBeenSet = true;
41 m_bucket = std::forward<BucketT>(value);
42 }
43 template <typename BucketT = Aws::String>
44 S3Target& WithBucket(BucketT&& value) {
45 SetBucket(std::forward<BucketT>(value));
46 return *this;
47 }
49
51
54 inline const Aws::String& GetKey() const { return m_key; }
55 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
56 template <typename KeyT = Aws::String>
57 void SetKey(KeyT&& value) {
58 m_keyHasBeenSet = true;
59 m_key = std::forward<KeyT>(value);
60 }
61 template <typename KeyT = Aws::String>
62 S3Target& WithKey(KeyT&& value) {
63 SetKey(std::forward<KeyT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetVersion() const { return m_version; }
73 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
74 template <typename VersionT = Aws::String>
75 void SetVersion(VersionT&& value) {
76 m_versionHasBeenSet = true;
77 m_version = std::forward<VersionT>(value);
78 }
79 template <typename VersionT = Aws::String>
80 S3Target& WithVersion(VersionT&& value) {
81 SetVersion(std::forward<VersionT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_bucket;
87
88 Aws::String m_key;
89
90 Aws::String m_version;
91 bool m_bucketHasBeenSet = false;
92 bool m_keyHasBeenSet = false;
93 bool m_versionHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace Continuum
98} // namespace Aws
const Aws::String & GetVersion() const
Definition S3Target.h:72
AWS_CONTINUUM_API Aws::Utils::Json::JsonValue Jsonize() const
S3Target & WithKey(KeyT &&value)
Definition S3Target.h:62
S3Target & WithVersion(VersionT &&value)
Definition S3Target.h:80
AWS_CONTINUUM_API S3Target()=default
const Aws::String & GetKey() const
Definition S3Target.h:54
void SetBucket(BucketT &&value)
Definition S3Target.h:39
AWS_CONTINUUM_API S3Target(Aws::Utils::Json::JsonView jsonValue)
AWS_CONTINUUM_API S3Target & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVersion(VersionT &&value)
Definition S3Target.h:75
void SetKey(KeyT &&value)
Definition S3Target.h:57
const Aws::String & GetBucket() const
Definition S3Target.h:36
S3Target & WithBucket(BucketT &&value)
Definition S3Target.h:44
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue