AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
S3FileLocation.h
1
6#pragma once
7#include <aws/awstransfer/Transfer_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 Transfer {
20namespace Model {
21
30 public:
31 AWS_TRANSFER_API S3FileLocation() = default;
32 AWS_TRANSFER_API S3FileLocation(Aws::Utils::Json::JsonView jsonValue);
34 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetBucket() const { return m_bucket; }
41 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
42 template <typename BucketT = Aws::String>
43 void SetBucket(BucketT&& value) {
44 m_bucketHasBeenSet = true;
45 m_bucket = std::forward<BucketT>(value);
46 }
47 template <typename BucketT = Aws::String>
48 S3FileLocation& WithBucket(BucketT&& value) {
49 SetBucket(std::forward<BucketT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::String& GetKey() const { return m_key; }
60 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
61 template <typename KeyT = Aws::String>
62 void SetKey(KeyT&& value) {
63 m_keyHasBeenSet = true;
64 m_key = std::forward<KeyT>(value);
65 }
66 template <typename KeyT = Aws::String>
67 S3FileLocation& WithKey(KeyT&& value) {
68 SetKey(std::forward<KeyT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetVersionId() const { return m_versionId; }
78 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
79 template <typename VersionIdT = Aws::String>
80 void SetVersionId(VersionIdT&& value) {
81 m_versionIdHasBeenSet = true;
82 m_versionId = std::forward<VersionIdT>(value);
83 }
84 template <typename VersionIdT = Aws::String>
85 S3FileLocation& WithVersionId(VersionIdT&& value) {
86 SetVersionId(std::forward<VersionIdT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetEtag() const { return m_etag; }
97 inline bool EtagHasBeenSet() const { return m_etagHasBeenSet; }
98 template <typename EtagT = Aws::String>
99 void SetEtag(EtagT&& value) {
100 m_etagHasBeenSet = true;
101 m_etag = std::forward<EtagT>(value);
102 }
103 template <typename EtagT = Aws::String>
104 S3FileLocation& WithEtag(EtagT&& value) {
105 SetEtag(std::forward<EtagT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_bucket;
111
112 Aws::String m_key;
113
114 Aws::String m_versionId;
115
116 Aws::String m_etag;
117 bool m_bucketHasBeenSet = false;
118 bool m_keyHasBeenSet = false;
119 bool m_versionIdHasBeenSet = false;
120 bool m_etagHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace Transfer
125} // namespace Aws
S3FileLocation & WithBucket(BucketT &&value)
const Aws::String & GetKey() const
void SetVersionId(VersionIdT &&value)
S3FileLocation & WithKey(KeyT &&value)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetEtag() const
const Aws::String & GetBucket() const
const Aws::String & GetVersionId() const
AWS_TRANSFER_API S3FileLocation()=default
AWS_TRANSFER_API S3FileLocation(Aws::Utils::Json::JsonView jsonValue)
AWS_TRANSFER_API S3FileLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
S3FileLocation & WithVersionId(VersionIdT &&value)
S3FileLocation & WithEtag(EtagT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue