AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
S3Action.h
1
6#pragma once
7#include <aws/mailmanager/MailManager_EXPORTS.h>
8#include <aws/mailmanager/model/ActionFailurePolicy.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MailManager
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_MAILMANAGER_API S3Action() = default;
37 AWS_MAILMANAGER_API S3Action(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MAILMANAGER_API S3Action& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
48 inline ActionFailurePolicy GetActionFailurePolicy() const { return m_actionFailurePolicy; }
49 inline bool ActionFailurePolicyHasBeenSet() const { return m_actionFailurePolicyHasBeenSet; }
50 inline void SetActionFailurePolicy(ActionFailurePolicy value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = value; }
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) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
64 template<typename RoleArnT = Aws::String>
65 S3Action& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
73 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
74 template<typename S3BucketT = Aws::String>
75 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
76 template<typename S3BucketT = Aws::String>
77 S3Action& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
79
81
84 inline const Aws::String& GetS3Prefix() const { return m_s3Prefix; }
85 inline bool S3PrefixHasBeenSet() const { return m_s3PrefixHasBeenSet; }
86 template<typename S3PrefixT = Aws::String>
87 void SetS3Prefix(S3PrefixT&& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = std::forward<S3PrefixT>(value); }
88 template<typename S3PrefixT = Aws::String>
89 S3Action& WithS3Prefix(S3PrefixT&& value) { SetS3Prefix(std::forward<S3PrefixT>(value)); return *this;}
91
93
96 inline const Aws::String& GetS3SseKmsKeyId() const { return m_s3SseKmsKeyId; }
97 inline bool S3SseKmsKeyIdHasBeenSet() const { return m_s3SseKmsKeyIdHasBeenSet; }
98 template<typename S3SseKmsKeyIdT = Aws::String>
99 void SetS3SseKmsKeyId(S3SseKmsKeyIdT&& value) { m_s3SseKmsKeyIdHasBeenSet = true; m_s3SseKmsKeyId = std::forward<S3SseKmsKeyIdT>(value); }
100 template<typename S3SseKmsKeyIdT = Aws::String>
101 S3Action& WithS3SseKmsKeyId(S3SseKmsKeyIdT&& value) { SetS3SseKmsKeyId(std::forward<S3SseKmsKeyIdT>(value)); return *this;}
103 private:
104
106 bool m_actionFailurePolicyHasBeenSet = false;
107
108 Aws::String m_roleArn;
109 bool m_roleArnHasBeenSet = false;
110
111 Aws::String m_s3Bucket;
112 bool m_s3BucketHasBeenSet = false;
113
114 Aws::String m_s3Prefix;
115 bool m_s3PrefixHasBeenSet = false;
116
117 Aws::String m_s3SseKmsKeyId;
118 bool m_s3SseKmsKeyIdHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace MailManager
123} // namespace Aws
void SetActionFailurePolicy(ActionFailurePolicy value)
Definition S3Action.h:50
const Aws::String & GetRoleArn() const
Definition S3Action.h:60
bool ActionFailurePolicyHasBeenSet() const
Definition S3Action.h:49
void SetRoleArn(RoleArnT &&value)
Definition S3Action.h:63
void SetS3Prefix(S3PrefixT &&value)
Definition S3Action.h:87
S3Action & WithS3Bucket(S3BucketT &&value)
Definition S3Action.h:77
AWS_MAILMANAGER_API S3Action()=default
ActionFailurePolicy GetActionFailurePolicy() const
Definition S3Action.h:48
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetS3SseKmsKeyId(S3SseKmsKeyIdT &&value)
Definition S3Action.h:99
S3Action & WithRoleArn(RoleArnT &&value)
Definition S3Action.h:65
S3Action & WithS3Prefix(S3PrefixT &&value)
Definition S3Action.h:89
const Aws::String & GetS3Prefix() const
Definition S3Action.h:84
AWS_MAILMANAGER_API S3Action & operator=(Aws::Utils::Json::JsonView jsonValue)
S3Action & WithActionFailurePolicy(ActionFailurePolicy value)
Definition S3Action.h:51
AWS_MAILMANAGER_API S3Action(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetS3Bucket() const
Definition S3Action.h:72
const Aws::String & GetS3SseKmsKeyId() const
Definition S3Action.h:96
S3Action & WithS3SseKmsKeyId(S3SseKmsKeyIdT &&value)
Definition S3Action.h:101
void SetS3Bucket(S3BucketT &&value)
Definition S3Action.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue