AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
S3Location.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/databrew/GlueDataBrew_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GlueDataBrew {
20namespace Model {
21
30 public:
31 AWS_GLUEDATABREW_API S3Location() = default;
32 AWS_GLUEDATABREW_API S3Location(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GLUEDATABREW_API S3Location& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GLUEDATABREW_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 S3Location& WithBucket(BucketT&& value) {
49 SetBucket(std::forward<BucketT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetKey() const { return m_key; }
59 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
60 template <typename KeyT = Aws::String>
61 void SetKey(KeyT&& value) {
62 m_keyHasBeenSet = true;
63 m_key = std::forward<KeyT>(value);
64 }
65 template <typename KeyT = Aws::String>
66 S3Location& WithKey(KeyT&& value) {
67 SetKey(std::forward<KeyT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetBucketOwner() const { return m_bucketOwner; }
77 inline bool BucketOwnerHasBeenSet() const { return m_bucketOwnerHasBeenSet; }
78 template <typename BucketOwnerT = Aws::String>
79 void SetBucketOwner(BucketOwnerT&& value) {
80 m_bucketOwnerHasBeenSet = true;
81 m_bucketOwner = std::forward<BucketOwnerT>(value);
82 }
83 template <typename BucketOwnerT = Aws::String>
84 S3Location& WithBucketOwner(BucketOwnerT&& value) {
85 SetBucketOwner(std::forward<BucketOwnerT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_bucket;
91
92 Aws::String m_key;
93
94 Aws::String m_bucketOwner;
95 bool m_bucketHasBeenSet = false;
96 bool m_keyHasBeenSet = false;
97 bool m_bucketOwnerHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace GlueDataBrew
102} // namespace Aws
void SetBucket(BucketT &&value)
Definition S3Location.h:43
const Aws::String & GetBucketOwner() const
Definition S3Location.h:76
AWS_GLUEDATABREW_API S3Location(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUEDATABREW_API S3Location & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
S3Location & WithBucketOwner(BucketOwnerT &&value)
Definition S3Location.h:84
const Aws::String & GetKey() const
Definition S3Location.h:58
S3Location & WithBucket(BucketT &&value)
Definition S3Location.h:48
S3Location & WithKey(KeyT &&value)
Definition S3Location.h:66
AWS_GLUEDATABREW_API S3Location()=default
const Aws::String & GetBucket() const
Definition S3Location.h:40
void SetBucketOwner(BucketOwnerT &&value)
Definition S3Location.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue