AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
VectorBucket.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3vectors/S3Vectors_EXPORTS.h>
10#include <aws/s3vectors/model/EncryptionConfiguration.h>
11#include <aws/s3vectors/model/IndexMode.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace S3Vectors {
23namespace Model {
24
31 public:
32 AWS_S3VECTORS_API VectorBucket() = default;
33 AWS_S3VECTORS_API VectorBucket(Aws::Utils::Json::JsonView jsonValue);
34 AWS_S3VECTORS_API VectorBucket& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetVectorBucketName() const { return m_vectorBucketName; }
42 inline bool VectorBucketNameHasBeenSet() const { return m_vectorBucketNameHasBeenSet; }
43 template <typename VectorBucketNameT = Aws::String>
44 void SetVectorBucketName(VectorBucketNameT&& value) {
45 m_vectorBucketNameHasBeenSet = true;
46 m_vectorBucketName = std::forward<VectorBucketNameT>(value);
47 }
48 template <typename VectorBucketNameT = Aws::String>
49 VectorBucket& WithVectorBucketName(VectorBucketNameT&& value) {
50 SetVectorBucketName(std::forward<VectorBucketNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetVectorBucketArn() const { return m_vectorBucketArn; }
60 inline bool VectorBucketArnHasBeenSet() const { return m_vectorBucketArnHasBeenSet; }
61 template <typename VectorBucketArnT = Aws::String>
62 void SetVectorBucketArn(VectorBucketArnT&& value) {
63 m_vectorBucketArnHasBeenSet = true;
64 m_vectorBucketArn = std::forward<VectorBucketArnT>(value);
65 }
66 template <typename VectorBucketArnT = Aws::String>
67 VectorBucket& WithVectorBucketArn(VectorBucketArnT&& value) {
68 SetVectorBucketArn(std::forward<VectorBucketArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
78 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
79 template <typename CreationTimeT = Aws::Utils::DateTime>
80 void SetCreationTime(CreationTimeT&& value) {
81 m_creationTimeHasBeenSet = true;
82 m_creationTime = std::forward<CreationTimeT>(value);
83 }
84 template <typename CreationTimeT = Aws::Utils::DateTime>
85 VectorBucket& WithCreationTime(CreationTimeT&& value) {
86 SetCreationTime(std::forward<CreationTimeT>(value));
87 return *this;
88 }
90
92
95 inline const EncryptionConfiguration& GetEncryptionConfiguration() const { return m_encryptionConfiguration; }
96 inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; }
97 template <typename EncryptionConfigurationT = EncryptionConfiguration>
98 void SetEncryptionConfiguration(EncryptionConfigurationT&& value) {
99 m_encryptionConfigurationHasBeenSet = true;
100 m_encryptionConfiguration = std::forward<EncryptionConfigurationT>(value);
101 }
102 template <typename EncryptionConfigurationT = EncryptionConfiguration>
103 VectorBucket& WithEncryptionConfiguration(EncryptionConfigurationT&& value) {
104 SetEncryptionConfiguration(std::forward<EncryptionConfigurationT>(value));
105 return *this;
106 }
108
110
115 inline IndexMode GetDefaultIndexMode() const { return m_defaultIndexMode; }
116 inline bool DefaultIndexModeHasBeenSet() const { return m_defaultIndexModeHasBeenSet; }
117 inline void SetDefaultIndexMode(IndexMode value) {
118 m_defaultIndexModeHasBeenSet = true;
119 m_defaultIndexMode = value;
120 }
122 SetDefaultIndexMode(value);
123 return *this;
124 }
126 private:
127 Aws::String m_vectorBucketName;
128
129 Aws::String m_vectorBucketArn;
130
131 Aws::Utils::DateTime m_creationTime{};
132
133 EncryptionConfiguration m_encryptionConfiguration;
134
135 IndexMode m_defaultIndexMode{IndexMode::NOT_SET};
136 bool m_vectorBucketNameHasBeenSet = false;
137 bool m_vectorBucketArnHasBeenSet = false;
138 bool m_creationTimeHasBeenSet = false;
139 bool m_encryptionConfigurationHasBeenSet = false;
140 bool m_defaultIndexModeHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace S3Vectors
145} // namespace Aws
AWS_S3VECTORS_API VectorBucket()=default
void SetVectorBucketArn(VectorBucketArnT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
AWS_S3VECTORS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_S3VECTORS_API VectorBucket(Aws::Utils::Json::JsonView jsonValue)
VectorBucket & WithVectorBucketArn(VectorBucketArnT &&value)
const EncryptionConfiguration & GetEncryptionConfiguration() const
void SetDefaultIndexMode(IndexMode value)
VectorBucket & WithVectorBucketName(VectorBucketNameT &&value)
const Aws::String & GetVectorBucketName() const
VectorBucket & WithDefaultIndexMode(IndexMode value)
void SetVectorBucketName(VectorBucketNameT &&value)
void SetEncryptionConfiguration(EncryptionConfigurationT &&value)
VectorBucket & WithEncryptionConfiguration(EncryptionConfigurationT &&value)
const Aws::String & GetVectorBucketArn() const
VectorBucket & WithCreationTime(CreationTimeT &&value)
AWS_S3VECTORS_API VectorBucket & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTime(CreationTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue