AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
S3Location.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace KafkaConnect {
20namespace Model {
21
28 public:
29 AWS_KAFKACONNECT_API S3Location() = default;
30 AWS_KAFKACONNECT_API S3Location(Aws::Utils::Json::JsonView jsonValue);
31 AWS_KAFKACONNECT_API S3Location& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetBucketArn() const { return m_bucketArn; }
39 inline bool BucketArnHasBeenSet() const { return m_bucketArnHasBeenSet; }
40 template <typename BucketArnT = Aws::String>
41 void SetBucketArn(BucketArnT&& value) {
42 m_bucketArnHasBeenSet = true;
43 m_bucketArn = std::forward<BucketArnT>(value);
44 }
45 template <typename BucketArnT = Aws::String>
46 S3Location& WithBucketArn(BucketArnT&& value) {
47 SetBucketArn(std::forward<BucketArnT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetFileKey() const { return m_fileKey; }
57 inline bool FileKeyHasBeenSet() const { return m_fileKeyHasBeenSet; }
58 template <typename FileKeyT = Aws::String>
59 void SetFileKey(FileKeyT&& value) {
60 m_fileKeyHasBeenSet = true;
61 m_fileKey = std::forward<FileKeyT>(value);
62 }
63 template <typename FileKeyT = Aws::String>
64 S3Location& WithFileKey(FileKeyT&& value) {
65 SetFileKey(std::forward<FileKeyT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetObjectVersion() const { return m_objectVersion; }
75 inline bool ObjectVersionHasBeenSet() const { return m_objectVersionHasBeenSet; }
76 template <typename ObjectVersionT = Aws::String>
77 void SetObjectVersion(ObjectVersionT&& value) {
78 m_objectVersionHasBeenSet = true;
79 m_objectVersion = std::forward<ObjectVersionT>(value);
80 }
81 template <typename ObjectVersionT = Aws::String>
82 S3Location& WithObjectVersion(ObjectVersionT&& value) {
83 SetObjectVersion(std::forward<ObjectVersionT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_bucketArn;
89
90 Aws::String m_fileKey;
91
92 Aws::String m_objectVersion;
93 bool m_bucketArnHasBeenSet = false;
94 bool m_fileKeyHasBeenSet = false;
95 bool m_objectVersionHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace KafkaConnect
100} // namespace Aws
void SetBucketArn(BucketArnT &&value)
Definition S3Location.h:41
void SetFileKey(FileKeyT &&value)
Definition S3Location.h:59
void SetObjectVersion(ObjectVersionT &&value)
Definition S3Location.h:77
S3Location & WithObjectVersion(ObjectVersionT &&value)
Definition S3Location.h:82
AWS_KAFKACONNECT_API S3Location(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetFileKey() const
Definition S3Location.h:56
AWS_KAFKACONNECT_API S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKACONNECT_API S3Location()=default
S3Location & WithFileKey(FileKeyT &&value)
Definition S3Location.h:64
const Aws::String & GetObjectVersion() const
Definition S3Location.h:74
AWS_KAFKACONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetBucketArn() const
Definition S3Location.h:38
S3Location & WithBucketArn(BucketArnT &&value)
Definition S3Location.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue