AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
ReportS3Configuration.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
29 public:
30 AWS_TIMESTREAMWRITE_API ReportS3Configuration() = default;
31 AWS_TIMESTREAMWRITE_API ReportS3Configuration(Aws::Utils::Json::JsonView jsonValue);
32 AWS_TIMESTREAMWRITE_API ReportS3Configuration& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetBucketName() const { return m_bucketName; }
40 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
41 template <typename BucketNameT = Aws::String>
42 void SetBucketName(BucketNameT&& value) {
43 m_bucketNameHasBeenSet = true;
44 m_bucketName = std::forward<BucketNameT>(value);
45 }
46 template <typename BucketNameT = Aws::String>
47 ReportS3Configuration& WithBucketName(BucketNameT&& value) {
48 SetBucketName(std::forward<BucketNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetObjectKeyPrefix() const { return m_objectKeyPrefix; }
58 inline bool ObjectKeyPrefixHasBeenSet() const { return m_objectKeyPrefixHasBeenSet; }
59 template <typename ObjectKeyPrefixT = Aws::String>
60 void SetObjectKeyPrefix(ObjectKeyPrefixT&& value) {
61 m_objectKeyPrefixHasBeenSet = true;
62 m_objectKeyPrefix = std::forward<ObjectKeyPrefixT>(value);
63 }
64 template <typename ObjectKeyPrefixT = Aws::String>
65 ReportS3Configuration& WithObjectKeyPrefix(ObjectKeyPrefixT&& value) {
66 SetObjectKeyPrefix(std::forward<ObjectKeyPrefixT>(value));
67 return *this;
68 }
70
72
75 inline S3EncryptionOption GetEncryptionOption() const { return m_encryptionOption; }
76 inline bool EncryptionOptionHasBeenSet() const { return m_encryptionOptionHasBeenSet; }
78 m_encryptionOptionHasBeenSet = true;
79 m_encryptionOption = value;
80 }
83 return *this;
84 }
86
88
91 inline const Aws::String& GetKmsKeyId() const { return m_kmsKeyId; }
92 inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; }
93 template <typename KmsKeyIdT = Aws::String>
94 void SetKmsKeyId(KmsKeyIdT&& value) {
95 m_kmsKeyIdHasBeenSet = true;
96 m_kmsKeyId = std::forward<KmsKeyIdT>(value);
97 }
98 template <typename KmsKeyIdT = Aws::String>
99 ReportS3Configuration& WithKmsKeyId(KmsKeyIdT&& value) {
100 SetKmsKeyId(std::forward<KmsKeyIdT>(value));
101 return *this;
102 }
104 private:
105 Aws::String m_bucketName;
106
107 Aws::String m_objectKeyPrefix;
108
110
111 Aws::String m_kmsKeyId;
112 bool m_bucketNameHasBeenSet = false;
113 bool m_objectKeyPrefixHasBeenSet = false;
114 bool m_encryptionOptionHasBeenSet = false;
115 bool m_kmsKeyIdHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace TimestreamWrite
120} // namespace Aws
ReportS3Configuration & WithKmsKeyId(KmsKeyIdT &&value)
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
ReportS3Configuration & WithObjectKeyPrefix(ObjectKeyPrefixT &&value)
AWS_TIMESTREAMWRITE_API ReportS3Configuration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMWRITE_API ReportS3Configuration(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMWRITE_API ReportS3Configuration()=default
ReportS3Configuration & WithEncryptionOption(S3EncryptionOption value)
ReportS3Configuration & WithBucketName(BucketNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue