AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
IngestionStreamS3Source.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opensearchserverless/OpenSearchServerless_EXPORTS.h>
10#include <aws/opensearchserverless/model/StreamBucketConfig.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace OpenSearchServerless {
22namespace Model {
23
31 public:
32 AWS_OPENSEARCHSERVERLESS_API IngestionStreamS3Source() = default;
33 AWS_OPENSEARCHSERVERLESS_API IngestionStreamS3Source(Aws::Utils::Json::JsonView jsonValue);
34 AWS_OPENSEARCHSERVERLESS_API IngestionStreamS3Source& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetSqsArn() const { return m_sqsArn; }
43 inline bool SqsArnHasBeenSet() const { return m_sqsArnHasBeenSet; }
44 template <typename SqsArnT = Aws::String>
45 void SetSqsArn(SqsArnT&& value) {
46 m_sqsArnHasBeenSet = true;
47 m_sqsArn = std::forward<SqsArnT>(value);
48 }
49 template <typename SqsArnT = Aws::String>
51 SetSqsArn(std::forward<SqsArnT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<StreamBucketConfig>& GetBuckets() const { return m_buckets; }
62 inline bool BucketsHasBeenSet() const { return m_bucketsHasBeenSet; }
63 template <typename BucketsT = Aws::Vector<StreamBucketConfig>>
64 void SetBuckets(BucketsT&& value) {
65 m_bucketsHasBeenSet = true;
66 m_buckets = std::forward<BucketsT>(value);
67 }
68 template <typename BucketsT = Aws::Vector<StreamBucketConfig>>
70 SetBuckets(std::forward<BucketsT>(value));
71 return *this;
72 }
73 template <typename BucketsT = StreamBucketConfig>
75 m_bucketsHasBeenSet = true;
76 m_buckets.emplace_back(std::forward<BucketsT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_sqsArn;
82
84 bool m_sqsArnHasBeenSet = false;
85 bool m_bucketsHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace OpenSearchServerless
90} // namespace Aws
IngestionStreamS3Source & WithBuckets(BucketsT &&value)
AWS_OPENSEARCHSERVERLESS_API IngestionStreamS3Source()=default
AWS_OPENSEARCHSERVERLESS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_OPENSEARCHSERVERLESS_API IngestionStreamS3Source(Aws::Utils::Json::JsonView jsonValue)
IngestionStreamS3Source & AddBuckets(BucketsT &&value)
const Aws::Vector< StreamBucketConfig > & GetBuckets() const
AWS_OPENSEARCHSERVERLESS_API IngestionStreamS3Source & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue