AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
S3Action.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/mailmanager/MailManager_EXPORTS.h>
9#include <aws/mailmanager/model/ActionFailurePolicy.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace MailManager {
21namespace Model {
22
29class S3Action {
30 public:
31 AWS_MAILMANAGER_API S3Action() = default;
32 AWS_MAILMANAGER_API S3Action(Aws::Utils::Json::JsonView jsonValue);
33 AWS_MAILMANAGER_API S3Action& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
42 inline ActionFailurePolicy GetActionFailurePolicy() const { return m_actionFailurePolicy; }
43 inline bool ActionFailurePolicyHasBeenSet() const { return m_actionFailurePolicyHasBeenSet; }
45 m_actionFailurePolicyHasBeenSet = true;
46 m_actionFailurePolicy = value;
47 }
50 return *this;
51 }
53
55
60 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
61 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
62 template <typename RoleArnT = Aws::String>
63 void SetRoleArn(RoleArnT&& value) {
64 m_roleArnHasBeenSet = true;
65 m_roleArn = std::forward<RoleArnT>(value);
66 }
67 template <typename RoleArnT = Aws::String>
68 S3Action& WithRoleArn(RoleArnT&& value) {
69 SetRoleArn(std::forward<RoleArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
79 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
80 template <typename S3BucketT = Aws::String>
81 void SetS3Bucket(S3BucketT&& value) {
82 m_s3BucketHasBeenSet = true;
83 m_s3Bucket = std::forward<S3BucketT>(value);
84 }
85 template <typename S3BucketT = Aws::String>
86 S3Action& WithS3Bucket(S3BucketT&& value) {
87 SetS3Bucket(std::forward<S3BucketT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetS3Prefix() const { return m_s3Prefix; }
97 inline bool S3PrefixHasBeenSet() const { return m_s3PrefixHasBeenSet; }
98 template <typename S3PrefixT = Aws::String>
99 void SetS3Prefix(S3PrefixT&& value) {
100 m_s3PrefixHasBeenSet = true;
101 m_s3Prefix = std::forward<S3PrefixT>(value);
102 }
103 template <typename S3PrefixT = Aws::String>
104 S3Action& WithS3Prefix(S3PrefixT&& value) {
105 SetS3Prefix(std::forward<S3PrefixT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetS3SseKmsKeyId() const { return m_s3SseKmsKeyId; }
115 inline bool S3SseKmsKeyIdHasBeenSet() const { return m_s3SseKmsKeyIdHasBeenSet; }
116 template <typename S3SseKmsKeyIdT = Aws::String>
117 void SetS3SseKmsKeyId(S3SseKmsKeyIdT&& value) {
118 m_s3SseKmsKeyIdHasBeenSet = true;
119 m_s3SseKmsKeyId = std::forward<S3SseKmsKeyIdT>(value);
120 }
121 template <typename S3SseKmsKeyIdT = Aws::String>
122 S3Action& WithS3SseKmsKeyId(S3SseKmsKeyIdT&& value) {
123 SetS3SseKmsKeyId(std::forward<S3SseKmsKeyIdT>(value));
124 return *this;
125 }
127 private:
129
130 Aws::String m_roleArn;
131
132 Aws::String m_s3Bucket;
133
134 Aws::String m_s3Prefix;
135
136 Aws::String m_s3SseKmsKeyId;
137 bool m_actionFailurePolicyHasBeenSet = false;
138 bool m_roleArnHasBeenSet = false;
139 bool m_s3BucketHasBeenSet = false;
140 bool m_s3PrefixHasBeenSet = false;
141 bool m_s3SseKmsKeyIdHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace MailManager
146} // namespace Aws
void SetActionFailurePolicy(ActionFailurePolicy value)
Definition S3Action.h:44
const Aws::String & GetRoleArn() const
Definition S3Action.h:60
bool ActionFailurePolicyHasBeenSet() const
Definition S3Action.h:43
void SetRoleArn(RoleArnT &&value)
Definition S3Action.h:63
void SetS3Prefix(S3PrefixT &&value)
Definition S3Action.h:99
S3Action & WithS3Bucket(S3BucketT &&value)
Definition S3Action.h:86
AWS_MAILMANAGER_API S3Action()=default
ActionFailurePolicy GetActionFailurePolicy() const
Definition S3Action.h:42
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetS3SseKmsKeyId(S3SseKmsKeyIdT &&value)
Definition S3Action.h:117
S3Action & WithRoleArn(RoleArnT &&value)
Definition S3Action.h:68
S3Action & WithS3Prefix(S3PrefixT &&value)
Definition S3Action.h:104
const Aws::String & GetS3Prefix() const
Definition S3Action.h:96
AWS_MAILMANAGER_API S3Action & operator=(Aws::Utils::Json::JsonView jsonValue)
S3Action & WithActionFailurePolicy(ActionFailurePolicy value)
Definition S3Action.h:48
AWS_MAILMANAGER_API S3Action(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetS3Bucket() const
Definition S3Action.h:78
const Aws::String & GetS3SseKmsKeyId() const
Definition S3Action.h:114
S3Action & WithS3SseKmsKeyId(S3SseKmsKeyIdT &&value)
Definition S3Action.h:122
void SetS3Bucket(S3BucketT &&value)
Definition S3Action.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue