AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
S3Source.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/signer/Signer_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace signer {
20namespace Model {
21
28class S3Source {
29 public:
30 AWS_SIGNER_API S3Source() = default;
31 AWS_SIGNER_API S3Source(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SIGNER_API S3Source& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetBucketName() const { return m_bucketName; }
40 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
41 template <typename BucketNameT = Aws::String>
42 void SetBucketName(BucketNameT&& value) {
43 m_bucketNameHasBeenSet = true;
44 m_bucketName = std::forward<BucketNameT>(value);
45 }
46 template <typename BucketNameT = Aws::String>
47 S3Source& WithBucketName(BucketNameT&& value) {
48 SetBucketName(std::forward<BucketNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetKey() const { return m_key; }
58 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
59 template <typename KeyT = Aws::String>
60 void SetKey(KeyT&& value) {
61 m_keyHasBeenSet = true;
62 m_key = std::forward<KeyT>(value);
63 }
64 template <typename KeyT = Aws::String>
65 S3Source& WithKey(KeyT&& value) {
66 SetKey(std::forward<KeyT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetVersion() const { return m_version; }
76 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
77 template <typename VersionT = Aws::String>
78 void SetVersion(VersionT&& value) {
79 m_versionHasBeenSet = true;
80 m_version = std::forward<VersionT>(value);
81 }
82 template <typename VersionT = Aws::String>
83 S3Source& WithVersion(VersionT&& value) {
84 SetVersion(std::forward<VersionT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_bucketName;
90
91 Aws::String m_key;
92
93 Aws::String m_version;
94 bool m_bucketNameHasBeenSet = false;
95 bool m_keyHasBeenSet = false;
96 bool m_versionHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace signer
101} // namespace Aws
AWS_SIGNER_API S3Source(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetBucketName() const
Definition S3Source.h:39
void SetBucketName(BucketNameT &&value)
Definition S3Source.h:42
AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetKey() const
Definition S3Source.h:57
S3Source & WithBucketName(BucketNameT &&value)
Definition S3Source.h:47
AWS_SIGNER_API S3Source()=default
S3Source & WithVersion(VersionT &&value)
Definition S3Source.h:83
S3Source & WithKey(KeyT &&value)
Definition S3Source.h:65
AWS_SIGNER_API S3Source & operator=(Aws::Utils::Json::JsonView jsonValue)
bool VersionHasBeenSet() const
Definition S3Source.h:76
void SetKey(KeyT &&value)
Definition S3Source.h:60
void SetVersion(VersionT &&value)
Definition S3Source.h:78
bool BucketNameHasBeenSet() const
Definition S3Source.h:40
const Aws::String & GetVersion() const
Definition S3Source.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue