AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
IngestionJobS3Source.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace OpenSearchServerless {
20namespace Model {
21
29 public:
30 AWS_OPENSEARCHSERVERLESS_API IngestionJobS3Source() = default;
31 AWS_OPENSEARCHSERVERLESS_API IngestionJobS3Source(Aws::Utils::Json::JsonView jsonValue);
32 AWS_OPENSEARCHSERVERLESS_API IngestionJobS3Source& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
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 IngestionJobS3Source& WithBucket(BucketT&& value) {
49 SetBucket(std::forward<BucketT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetBucketOwnerAccountId() const { return m_bucketOwnerAccountId; }
59 inline bool BucketOwnerAccountIdHasBeenSet() const { return m_bucketOwnerAccountIdHasBeenSet; }
60 template <typename BucketOwnerAccountIdT = Aws::String>
61 void SetBucketOwnerAccountId(BucketOwnerAccountIdT&& value) {
62 m_bucketOwnerAccountIdHasBeenSet = true;
63 m_bucketOwnerAccountId = std::forward<BucketOwnerAccountIdT>(value);
64 }
65 template <typename BucketOwnerAccountIdT = Aws::String>
66 IngestionJobS3Source& WithBucketOwnerAccountId(BucketOwnerAccountIdT&& value) {
67 SetBucketOwnerAccountId(std::forward<BucketOwnerAccountIdT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetKeyPrefix() const { return m_keyPrefix; }
78 inline bool KeyPrefixHasBeenSet() const { return m_keyPrefixHasBeenSet; }
79 template <typename KeyPrefixT = Aws::String>
80 void SetKeyPrefix(KeyPrefixT&& value) {
81 m_keyPrefixHasBeenSet = true;
82 m_keyPrefix = std::forward<KeyPrefixT>(value);
83 }
84 template <typename KeyPrefixT = Aws::String>
85 IngestionJobS3Source& WithKeyPrefix(KeyPrefixT&& value) {
86 SetKeyPrefix(std::forward<KeyPrefixT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_bucket;
92
93 Aws::String m_bucketOwnerAccountId;
94
95 Aws::String m_keyPrefix;
96 bool m_bucketHasBeenSet = false;
97 bool m_bucketOwnerAccountIdHasBeenSet = false;
98 bool m_keyPrefixHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace OpenSearchServerless
103} // namespace Aws
IngestionJobS3Source & WithKeyPrefix(KeyPrefixT &&value)
IngestionJobS3Source & WithBucket(BucketT &&value)
AWS_OPENSEARCHSERVERLESS_API IngestionJobS3Source()=default
AWS_OPENSEARCHSERVERLESS_API IngestionJobS3Source & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetBucketOwnerAccountId(BucketOwnerAccountIdT &&value)
IngestionJobS3Source & WithBucketOwnerAccountId(BucketOwnerAccountIdT &&value)
AWS_OPENSEARCHSERVERLESS_API IngestionJobS3Source(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue