AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
S3Destination.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Macie2 {
20namespace Model {
21
30 public:
31 AWS_MACIE2_API S3Destination() = default;
32 AWS_MACIE2_API S3Destination(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetBucketName() const { return m_bucketName; }
42 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
43 template <typename BucketNameT = Aws::String>
44 void SetBucketName(BucketNameT&& value) {
45 m_bucketNameHasBeenSet = true;
46 m_bucketName = std::forward<BucketNameT>(value);
47 }
48 template <typename BucketNameT = Aws::String>
49 S3Destination& WithBucketName(BucketNameT&& value) {
50 SetBucketName(std::forward<BucketNameT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetKeyPrefix() const { return m_keyPrefix; }
61 inline bool KeyPrefixHasBeenSet() const { return m_keyPrefixHasBeenSet; }
62 template <typename KeyPrefixT = Aws::String>
63 void SetKeyPrefix(KeyPrefixT&& value) {
64 m_keyPrefixHasBeenSet = true;
65 m_keyPrefix = std::forward<KeyPrefixT>(value);
66 }
67 template <typename KeyPrefixT = Aws::String>
68 S3Destination& WithKeyPrefix(KeyPrefixT&& value) {
69 SetKeyPrefix(std::forward<KeyPrefixT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
82 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
83 template <typename KmsKeyArnT = Aws::String>
84 void SetKmsKeyArn(KmsKeyArnT&& value) {
85 m_kmsKeyArnHasBeenSet = true;
86 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
87 }
88 template <typename KmsKeyArnT = Aws::String>
89 S3Destination& WithKmsKeyArn(KmsKeyArnT&& value) {
90 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_bucketName;
96
97 Aws::String m_keyPrefix;
98
99 Aws::String m_kmsKeyArn;
100 bool m_bucketNameHasBeenSet = false;
101 bool m_keyPrefixHasBeenSet = false;
102 bool m_kmsKeyArnHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace Macie2
107} // namespace Aws
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKeyPrefix(KeyPrefixT &&value)
AWS_MACIE2_API S3Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
S3Destination & WithKmsKeyArn(KmsKeyArnT &&value)
const Aws::String & GetKeyPrefix() const
void SetKmsKeyArn(KmsKeyArnT &&value)
const Aws::String & GetBucketName() const
AWS_MACIE2_API S3Destination(Aws::Utils::Json::JsonView jsonValue)
AWS_MACIE2_API S3Destination()=default
const Aws::String & GetKmsKeyArn() const
S3Destination & WithBucketName(BucketNameT &&value)
void SetBucketName(BucketNameT &&value)
S3Destination & WithKeyPrefix(KeyPrefixT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue