AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
S3Configuration.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/timestream-write/model/S3EncryptionOption.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace TimestreamWrite
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_TIMESTREAMWRITE_API S3Configuration() = default;
37 AWS_TIMESTREAMWRITE_API S3Configuration(Aws::Utils::Json::JsonView jsonValue);
38 AWS_TIMESTREAMWRITE_API S3Configuration& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetBucketName() const { return m_bucketName; }
47 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
48 template<typename BucketNameT = Aws::String>
49 void SetBucketName(BucketNameT&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::forward<BucketNameT>(value); }
50 template<typename BucketNameT = Aws::String>
51 S3Configuration& WithBucketName(BucketNameT&& value) { SetBucketName(std::forward<BucketNameT>(value)); return *this;}
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) { m_objectKeyPrefixHasBeenSet = true; m_objectKeyPrefix = std::forward<ObjectKeyPrefixT>(value); }
62 template<typename ObjectKeyPrefixT = Aws::String>
63 S3Configuration& WithObjectKeyPrefix(ObjectKeyPrefixT&& value) { SetObjectKeyPrefix(std::forward<ObjectKeyPrefixT>(value)); return *this;}
65
67
72 inline S3EncryptionOption GetEncryptionOption() const { return m_encryptionOption; }
73 inline bool EncryptionOptionHasBeenSet() const { return m_encryptionOptionHasBeenSet; }
74 inline void SetEncryptionOption(S3EncryptionOption value) { m_encryptionOptionHasBeenSet = true; m_encryptionOption = value; }
77
79
83 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
84 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
85 template<typename KmsKeyIdT = Aws::String>
86 void SetKmsKeyId(KmsKeyIdT&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::forward<KmsKeyIdT>(value); }
87 template<typename KmsKeyIdT = Aws::String>
88 S3Configuration& WithKmsKeyId(KmsKeyIdT&& value) { SetKmsKeyId(std::forward<KmsKeyIdT>(value)); return *this;}
90 private:
91
92 Aws::String m_bucketName;
93 bool m_bucketNameHasBeenSet = false;
94
95 Aws::String m_objectKeyPrefix;
96 bool m_objectKeyPrefixHasBeenSet = false;
97
99 bool m_encryptionOptionHasBeenSet = false;
100
101 Aws::String m_kmsKeyId;
102 bool m_kmsKeyIdHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace TimestreamWrite
107} // 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