AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
S3Config.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/EncryptionConfig.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Connect {
21namespace Model {
22
29class S3Config {
30 public:
31 AWS_CONNECT_API S3Config() = default;
32 AWS_CONNECT_API S3Config(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONNECT_API S3Config& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONNECT_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 S3Config& WithBucketName(BucketNameT&& value) {
49 SetBucketName(std::forward<BucketNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetBucketPrefix() const { return m_bucketPrefix; }
59 inline bool BucketPrefixHasBeenSet() const { return m_bucketPrefixHasBeenSet; }
60 template <typename BucketPrefixT = Aws::String>
61 void SetBucketPrefix(BucketPrefixT&& value) {
62 m_bucketPrefixHasBeenSet = true;
63 m_bucketPrefix = std::forward<BucketPrefixT>(value);
64 }
65 template <typename BucketPrefixT = Aws::String>
66 S3Config& WithBucketPrefix(BucketPrefixT&& value) {
67 SetBucketPrefix(std::forward<BucketPrefixT>(value));
68 return *this;
69 }
71
73
76 inline const EncryptionConfig& GetEncryptionConfig() const { return m_encryptionConfig; }
77 inline bool EncryptionConfigHasBeenSet() const { return m_encryptionConfigHasBeenSet; }
78 template <typename EncryptionConfigT = EncryptionConfig>
79 void SetEncryptionConfig(EncryptionConfigT&& value) {
80 m_encryptionConfigHasBeenSet = true;
81 m_encryptionConfig = std::forward<EncryptionConfigT>(value);
82 }
83 template <typename EncryptionConfigT = EncryptionConfig>
84 S3Config& WithEncryptionConfig(EncryptionConfigT&& value) {
85 SetEncryptionConfig(std::forward<EncryptionConfigT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_bucketName;
91
92 Aws::String m_bucketPrefix;
93
94 EncryptionConfig m_encryptionConfig;
95 bool m_bucketNameHasBeenSet = false;
96 bool m_bucketPrefixHasBeenSet = false;
97 bool m_encryptionConfigHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace Connect
102} // namespace Aws
S3Config & WithBucketName(BucketNameT &&value)
Definition S3Config.h:48
AWS_CONNECT_API S3Config()=default
bool EncryptionConfigHasBeenSet() const
Definition S3Config.h:77
S3Config & WithEncryptionConfig(EncryptionConfigT &&value)
Definition S3Config.h:84
const EncryptionConfig & GetEncryptionConfig() const
Definition S3Config.h:76
const Aws::String & GetBucketName() const
Definition S3Config.h:40
AWS_CONNECT_API S3Config & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBucketPrefix(BucketPrefixT &&value)
Definition S3Config.h:61
const Aws::String & GetBucketPrefix() const
Definition S3Config.h:58
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
S3Config & WithBucketPrefix(BucketPrefixT &&value)
Definition S3Config.h:66
void SetBucketName(BucketNameT &&value)
Definition S3Config.h:43
bool BucketPrefixHasBeenSet() const
Definition S3Config.h:59
bool BucketNameHasBeenSet() const
Definition S3Config.h:41
void SetEncryptionConfig(EncryptionConfigT &&value)
Definition S3Config.h:79
AWS_CONNECT_API S3Config(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue