AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Transfer
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_TRANSFER_API S3FileLocation() = default;
37 AWS_TRANSFER_API S3FileLocation(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetBucket() const { return m_bucket; }
47 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
48 template<typename BucketT = Aws::String>
49 void SetBucket(BucketT&& value) { m_bucketHasBeenSet = true; m_bucket = std::forward<BucketT>(value); }
50 template<typename BucketT = Aws::String>
51 S3FileLocation& WithBucket(BucketT&& value) { SetBucket(std::forward<BucketT>(value)); return *this;}
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) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
63 template<typename KeyT = Aws::String>
64 S3FileLocation& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
66
68
71 inline const Aws::String& GetVersionId() const { return m_versionId; }
72 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
73 template<typename VersionIdT = Aws::String>
74 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
75 template<typename VersionIdT = Aws::String>
76 S3FileLocation& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
78
80
84 inline const Aws::String& GetEtag() const { return m_etag; }
85 inline bool EtagHasBeenSet() const { return m_etagHasBeenSet; }
86 template<typename EtagT = Aws::String>
87 void SetEtag(EtagT&& value) { m_etagHasBeenSet = true; m_etag = std::forward<EtagT>(value); }
88 template<typename EtagT = Aws::String>
89 S3FileLocation& WithEtag(EtagT&& value) { SetEtag(std::forward<EtagT>(value)); return *this;}
91 private:
92
93 Aws::String m_bucket;
94 bool m_bucketHasBeenSet = false;
95
96 Aws::String m_key;
97 bool m_keyHasBeenSet = false;
98
99 Aws::String m_versionId;
100 bool m_versionIdHasBeenSet = false;
101
102 Aws::String m_etag;
103 bool m_etagHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Transfer
108} // 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