AWS SDK for C++

AWS SDK for C++ Version 1.11.756

Loading...
Searching...
No Matches
S3Configuration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
9#include <aws/timestream-write/model/S3EncryptionOption.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace TimestreamWrite {
21namespace Model {
22
30 public:
31 AWS_TIMESTREAMWRITE_API S3Configuration() = default;
32 AWS_TIMESTREAMWRITE_API S3Configuration(Aws::Utils::Json::JsonView jsonValue);
33 AWS_TIMESTREAMWRITE_API S3Configuration& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetBucketName() const { return m_bucketName; }
41 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
42 template <typename BucketNameT = Aws::String>
43 void SetBucketName(BucketNameT&& value) {
44 m_bucketNameHasBeenSet = true;
45 m_bucketName = std::forward<BucketNameT>(value);
46 }
47 template <typename BucketNameT = Aws::String>
48 S3Configuration& WithBucketName(BucketNameT&& value) {
49 SetBucketName(std::forward<BucketNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetObjectKeyPrefix() const { return m_objectKeyPrefix; }
59 inline bool ObjectKeyPrefixHasBeenSet() const { return m_objectKeyPrefixHasBeenSet; }
60 template <typename ObjectKeyPrefixT = Aws::String>
61 void SetObjectKeyPrefix(ObjectKeyPrefixT&& value) {
62 m_objectKeyPrefixHasBeenSet = true;
63 m_objectKeyPrefix = std::forward<ObjectKeyPrefixT>(value);
64 }
65 template <typename ObjectKeyPrefixT = Aws::String>
66 S3Configuration& WithObjectKeyPrefix(ObjectKeyPrefixT&& value) {
67 SetObjectKeyPrefix(std::forward<ObjectKeyPrefixT>(value));
68 return *this;
69 }
71
73
78 inline S3EncryptionOption GetEncryptionOption() const { return m_encryptionOption; }
79 inline bool EncryptionOptionHasBeenSet() const { return m_encryptionOptionHasBeenSet; }
81 m_encryptionOptionHasBeenSet = true;
82 m_encryptionOption = value;
83 }
86 return *this;
87 }
89
91
95 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
96 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
97 template <typename KmsKeyIdT = Aws::String>
98 void SetKmsKeyId(KmsKeyIdT&& value) {
99 m_kmsKeyIdHasBeenSet = true;
100 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
101 }
102 template <typename KmsKeyIdT = Aws::String>
103 S3Configuration& WithKmsKeyId(KmsKeyIdT&& value) {
104 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
105 return *this;
106 }
108 private:
109 Aws::String m_bucketName;
110
111 Aws::String m_objectKeyPrefix;
112
114
115 Aws::String m_kmsKeyId;
116 bool m_bucketNameHasBeenSet = false;
117 bool m_objectKeyPrefixHasBeenSet = false;
118 bool m_encryptionOptionHasBeenSet = false;
119 bool m_kmsKeyIdHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace TimestreamWrite
124} // namespace Aws
S3Configuration & WithKmsKeyId(KmsKeyIdT &&value)
void SetEncryptionOption(S3EncryptionOption value)
AWS_TIMESTREAMWRITE_API S3Configuration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMWRITE_API S3Configuration()=default
S3Configuration & WithEncryptionOption(S3EncryptionOption value)
S3EncryptionOption GetEncryptionOption() const
S3Configuration & WithBucketName(BucketNameT &&value)
void SetObjectKeyPrefix(ObjectKeyPrefixT &&value)
S3Configuration & WithObjectKeyPrefix(ObjectKeyPrefixT &&value)
AWS_TIMESTREAMWRITE_API S3Configuration(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetObjectKeyPrefix() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue