AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
49 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
50 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
51 inline S3Configuration& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
52 inline S3Configuration& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
53 inline S3Configuration& WithBucketName(const char* value) { SetBucketName(value); return *this;}
55
57
60 inline const Aws::String& GetObjectKeyPrefix() const{ return m_objectKeyPrefix; }
61 inline bool ObjectKeyPrefixHasBeenSet() const { return m_objectKeyPrefixHasBeenSet; }
62 inline void SetObjectKeyPrefix(const Aws::String& value) { m_objectKeyPrefixHasBeenSet = true; m_objectKeyPrefix = value; }
63 inline void SetObjectKeyPrefix(Aws::String&& value) { m_objectKeyPrefixHasBeenSet = true; m_objectKeyPrefix = std::move(value); }
64 inline void SetObjectKeyPrefix(const char* value) { m_objectKeyPrefixHasBeenSet = true; m_objectKeyPrefix.assign(value); }
65 inline S3Configuration& WithObjectKeyPrefix(const Aws::String& value) { SetObjectKeyPrefix(value); return *this;}
66 inline S3Configuration& WithObjectKeyPrefix(Aws::String&& value) { SetObjectKeyPrefix(std::move(value)); return *this;}
67 inline S3Configuration& WithObjectKeyPrefix(const char* value) { SetObjectKeyPrefix(value); return *this;}
69
71
76 inline const S3EncryptionOption& GetEncryptionOption() const{ return m_encryptionOption; }
77 inline bool EncryptionOptionHasBeenSet() const { return m_encryptionOptionHasBeenSet; }
78 inline void SetEncryptionOption(const S3EncryptionOption& value) { m_encryptionOptionHasBeenSet = true; m_encryptionOption = value; }
79 inline void SetEncryptionOption(S3EncryptionOption&& value) { m_encryptionOptionHasBeenSet = true; m_encryptionOption = std::move(value); }
80 inline S3Configuration& WithEncryptionOption(const S3EncryptionOption& value) { SetEncryptionOption(value); return *this;}
81 inline S3Configuration& WithEncryptionOption(S3EncryptionOption&& value) { SetEncryptionOption(std::move(value)); return *this;}
83
85
89 inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; }
90 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
91 inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; }
92 inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); }
93 inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); }
94 inline S3Configuration& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;}
95 inline S3Configuration& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;}
96 inline S3Configuration& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;}
98 private:
99
100 Aws::String m_bucketName;
101 bool m_bucketNameHasBeenSet = false;
102
103 Aws::String m_objectKeyPrefix;
104 bool m_objectKeyPrefixHasBeenSet = false;
105
106 S3EncryptionOption m_encryptionOption;
107 bool m_encryptionOptionHasBeenSet = false;
108
109 Aws::String m_kmsKeyId;
110 bool m_kmsKeyIdHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace TimestreamWrite
115} // namespace Aws
void SetEncryptionOption(S3EncryptionOption &&value)
S3Configuration & WithKmsKeyId(Aws::String &&value)
S3Configuration & WithBucketName(const char *value)
S3Configuration & WithKmsKeyId(const Aws::String &value)
S3Configuration & WithObjectKeyPrefix(const char *value)
void SetKmsKeyId(const Aws::String &value)
S3Configuration & WithEncryptionOption(S3EncryptionOption &&value)
void SetBucketName(const Aws::String &value)
AWS_TIMESTREAMWRITE_API S3Configuration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetEncryptionOption(const S3EncryptionOption &value)
void SetObjectKeyPrefix(const Aws::String &value)
S3Configuration & WithBucketName(Aws::String &&value)
S3Configuration & WithKmsKeyId(const char *value)
AWS_TIMESTREAMWRITE_API S3Configuration()
S3Configuration & WithObjectKeyPrefix(Aws::String &&value)
AWS_TIMESTREAMWRITE_API S3Configuration(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
const S3EncryptionOption & GetEncryptionOption() const
const Aws::String & GetObjectKeyPrefix() const
S3Configuration & WithBucketName(const Aws::String &value)
S3Configuration & WithEncryptionOption(const S3EncryptionOption &value)
S3Configuration & WithObjectKeyPrefix(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue