AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
49 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
50 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
51 inline S3FileLocation& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
52 inline S3FileLocation& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
53 inline S3FileLocation& WithBucket(const char* value) { SetBucket(value); return *this;}
55
57
61 inline const Aws::String& GetKey() const{ return m_key; }
62 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
63 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
64 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
65 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
66 inline S3FileLocation& WithKey(const Aws::String& value) { SetKey(value); return *this;}
67 inline S3FileLocation& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
68 inline S3FileLocation& WithKey(const char* value) { SetKey(value); return *this;}
70
72
75 inline const Aws::String& GetVersionId() const{ return m_versionId; }
76 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
77 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
78 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
79 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
80 inline S3FileLocation& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
81 inline S3FileLocation& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
82 inline S3FileLocation& WithVersionId(const char* value) { SetVersionId(value); return *this;}
84
86
90 inline const Aws::String& GetEtag() const{ return m_etag; }
91 inline bool EtagHasBeenSet() const { return m_etagHasBeenSet; }
92 inline void SetEtag(const Aws::String& value) { m_etagHasBeenSet = true; m_etag = value; }
93 inline void SetEtag(Aws::String&& value) { m_etagHasBeenSet = true; m_etag = std::move(value); }
94 inline void SetEtag(const char* value) { m_etagHasBeenSet = true; m_etag.assign(value); }
95 inline S3FileLocation& WithEtag(const Aws::String& value) { SetEtag(value); return *this;}
96 inline S3FileLocation& WithEtag(Aws::String&& value) { SetEtag(std::move(value)); return *this;}
97 inline S3FileLocation& WithEtag(const char* value) { SetEtag(value); return *this;}
99 private:
100
101 Aws::String m_bucket;
102 bool m_bucketHasBeenSet = false;
103
104 Aws::String m_key;
105 bool m_keyHasBeenSet = false;
106
107 Aws::String m_versionId;
108 bool m_versionIdHasBeenSet = false;
109
110 Aws::String m_etag;
111 bool m_etagHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Transfer
116} // namespace Aws
const Aws::String & GetKey() const
void SetEtag(const Aws::String &value)
S3FileLocation & WithEtag(const char *value)
AWS_TRANSFER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVersionId(const char *value)
void SetBucket(Aws::String &&value)
const Aws::String & GetEtag() const
const Aws::String & GetBucket() const
void SetKey(const Aws::String &value)
const Aws::String & GetVersionId() const
S3FileLocation & WithBucket(const char *value)
void SetEtag(Aws::String &&value)
S3FileLocation & WithVersionId(const Aws::String &value)
S3FileLocation & WithVersionId(Aws::String &&value)
void SetBucket(const Aws::String &value)
S3FileLocation & WithVersionId(const char *value)
S3FileLocation & WithKey(const Aws::String &value)
void SetVersionId(Aws::String &&value)
S3FileLocation & WithEtag(Aws::String &&value)
void SetKey(Aws::String &&value)
AWS_TRANSFER_API S3FileLocation(Aws::Utils::Json::JsonView jsonValue)
S3FileLocation & WithEtag(const Aws::String &value)
S3FileLocation & WithKey(const char *value)
AWS_TRANSFER_API S3FileLocation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVersionId(const Aws::String &value)
void SetBucket(const char *value)
S3FileLocation & WithKey(Aws::String &&value)
S3FileLocation & WithBucket(const Aws::String &value)
S3FileLocation & WithBucket(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue