AWS SDK for C++

AWS SDK for C++ Version 1.11.814

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
33 public:
34 AWS_MACIE2_API S3Destination() = default;
35 AWS_MACIE2_API S3Destination(Aws::Utils::Json::JsonView jsonValue);
37 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetBucketName() const { return m_bucketName; }
45 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
46 template <typename BucketNameT = Aws::String>
47 void SetBucketName(BucketNameT&& value) {
48 m_bucketNameHasBeenSet = true;
49 m_bucketName = std::forward<BucketNameT>(value);
50 }
51 template <typename BucketNameT = Aws::String>
52 S3Destination& WithBucketName(BucketNameT&& value) {
53 SetBucketName(std::forward<BucketNameT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetExpectedBucketOwner() const { return m_expectedBucketOwner; }
64 inline bool ExpectedBucketOwnerHasBeenSet() const { return m_expectedBucketOwnerHasBeenSet; }
65 template <typename ExpectedBucketOwnerT = Aws::String>
66 void SetExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
67 m_expectedBucketOwnerHasBeenSet = true;
68 m_expectedBucketOwner = std::forward<ExpectedBucketOwnerT>(value);
69 }
70 template <typename ExpectedBucketOwnerT = Aws::String>
71 S3Destination& WithExpectedBucketOwner(ExpectedBucketOwnerT&& value) {
72 SetExpectedBucketOwner(std::forward<ExpectedBucketOwnerT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetKeyPrefix() const { return m_keyPrefix; }
83 inline bool KeyPrefixHasBeenSet() const { return m_keyPrefixHasBeenSet; }
84 template <typename KeyPrefixT = Aws::String>
85 void SetKeyPrefix(KeyPrefixT&& value) {
86 m_keyPrefixHasBeenSet = true;
87 m_keyPrefix = std::forward<KeyPrefixT>(value);
88 }
89 template <typename KeyPrefixT = Aws::String>
90 S3Destination& WithKeyPrefix(KeyPrefixT&& value) {
91 SetKeyPrefix(std::forward<KeyPrefixT>(value));
92 return *this;
93 }
95
97
103 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
104 inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
105 template <typename KmsKeyArnT = Aws::String>
106 void SetKmsKeyArn(KmsKeyArnT&& value) {
107 m_kmsKeyArnHasBeenSet = true;
108 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
109 }
110 template <typename KmsKeyArnT = Aws::String>
111 S3Destination& WithKmsKeyArn(KmsKeyArnT&& value) {
112 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_bucketName;
118
119 Aws::String m_expectedBucketOwner;
120
121 Aws::String m_keyPrefix;
122
123 Aws::String m_kmsKeyArn;
124 bool m_bucketNameHasBeenSet = false;
125 bool m_expectedBucketOwnerHasBeenSet = false;
126 bool m_keyPrefixHasBeenSet = false;
127 bool m_kmsKeyArnHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Macie2
132} // namespace Aws
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetKeyPrefix(KeyPrefixT &&value)
void SetExpectedBucketOwner(ExpectedBucketOwnerT &&value)
AWS_MACIE2_API S3Destination & operator=(Aws::Utils::Json::JsonView jsonValue)
S3Destination & WithExpectedBucketOwner(ExpectedBucketOwnerT &&value)
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 & GetExpectedBucketOwner() const
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