AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ActionFailurePolicy& GetActionFailurePolicy() const{ return m_actionFailurePolicy; }
49 inline bool ActionFailurePolicyHasBeenSet() const { return m_actionFailurePolicyHasBeenSet; }
50 inline void SetActionFailurePolicy(const ActionFailurePolicy& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = value; }
51 inline void SetActionFailurePolicy(ActionFailurePolicy&& value) { m_actionFailurePolicyHasBeenSet = true; m_actionFailurePolicy = std::move(value); }
52 inline S3Action& WithActionFailurePolicy(const ActionFailurePolicy& value) { SetActionFailurePolicy(value); return *this;}
53 inline S3Action& WithActionFailurePolicy(ActionFailurePolicy&& value) { SetActionFailurePolicy(std::move(value)); return *this;}
55
57
62 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
63 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
64 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
65 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
66 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
67 inline S3Action& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
68 inline S3Action& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
69 inline S3Action& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
71
73
76 inline const Aws::String& GetS3Bucket() const{ return m_s3Bucket; }
77 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
78 inline void SetS3Bucket(const Aws::String& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = value; }
79 inline void SetS3Bucket(Aws::String&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::move(value); }
80 inline void SetS3Bucket(const char* value) { m_s3BucketHasBeenSet = true; m_s3Bucket.assign(value); }
81 inline S3Action& WithS3Bucket(const Aws::String& value) { SetS3Bucket(value); return *this;}
82 inline S3Action& WithS3Bucket(Aws::String&& value) { SetS3Bucket(std::move(value)); return *this;}
83 inline S3Action& WithS3Bucket(const char* value) { SetS3Bucket(value); return *this;}
85
87
90 inline const Aws::String& GetS3Prefix() const{ return m_s3Prefix; }
91 inline bool S3PrefixHasBeenSet() const { return m_s3PrefixHasBeenSet; }
92 inline void SetS3Prefix(const Aws::String& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = value; }
93 inline void SetS3Prefix(Aws::String&& value) { m_s3PrefixHasBeenSet = true; m_s3Prefix = std::move(value); }
94 inline void SetS3Prefix(const char* value) { m_s3PrefixHasBeenSet = true; m_s3Prefix.assign(value); }
95 inline S3Action& WithS3Prefix(const Aws::String& value) { SetS3Prefix(value); return *this;}
96 inline S3Action& WithS3Prefix(Aws::String&& value) { SetS3Prefix(std::move(value)); return *this;}
97 inline S3Action& WithS3Prefix(const char* value) { SetS3Prefix(value); return *this;}
99
101
104 inline const Aws::String& GetS3SseKmsKeyId() const{ return m_s3SseKmsKeyId; }
105 inline bool S3SseKmsKeyIdHasBeenSet() const { return m_s3SseKmsKeyIdHasBeenSet; }
106 inline void SetS3SseKmsKeyId(const Aws::String& value) { m_s3SseKmsKeyIdHasBeenSet = true; m_s3SseKmsKeyId = value; }
107 inline void SetS3SseKmsKeyId(Aws::String&& value) { m_s3SseKmsKeyIdHasBeenSet = true; m_s3SseKmsKeyId = std::move(value); }
108 inline void SetS3SseKmsKeyId(const char* value) { m_s3SseKmsKeyIdHasBeenSet = true; m_s3SseKmsKeyId.assign(value); }
109 inline S3Action& WithS3SseKmsKeyId(const Aws::String& value) { SetS3SseKmsKeyId(value); return *this;}
110 inline S3Action& WithS3SseKmsKeyId(Aws::String&& value) { SetS3SseKmsKeyId(std::move(value)); return *this;}
111 inline S3Action& WithS3SseKmsKeyId(const char* value) { SetS3SseKmsKeyId(value); return *this;}
113 private:
114
115 ActionFailurePolicy m_actionFailurePolicy;
116 bool m_actionFailurePolicyHasBeenSet = false;
117
118 Aws::String m_roleArn;
119 bool m_roleArnHasBeenSet = false;
120
121 Aws::String m_s3Bucket;
122 bool m_s3BucketHasBeenSet = false;
123
124 Aws::String m_s3Prefix;
125 bool m_s3PrefixHasBeenSet = false;
126
127 Aws::String m_s3SseKmsKeyId;
128 bool m_s3SseKmsKeyIdHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace MailManager
133} // namespace Aws
S3Action & WithS3Bucket(const Aws::String &value)
Definition S3Action.h:81
S3Action & WithRoleArn(const Aws::String &value)
Definition S3Action.h:67
const Aws::String & GetRoleArn() const
Definition S3Action.h:62
bool ActionFailurePolicyHasBeenSet() const
Definition S3Action.h:49
S3Action & WithS3Bucket(Aws::String &&value)
Definition S3Action.h:82
void SetS3SseKmsKeyId(const Aws::String &value)
Definition S3Action.h:106
S3Action & WithActionFailurePolicy(ActionFailurePolicy &&value)
Definition S3Action.h:53
void SetS3Bucket(Aws::String &&value)
Definition S3Action.h:79
S3Action & WithRoleArn(Aws::String &&value)
Definition S3Action.h:68
AWS_MAILMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRoleArn(Aws::String &&value)
Definition S3Action.h:65
void SetS3Prefix(Aws::String &&value)
Definition S3Action.h:93
void SetRoleArn(const Aws::String &value)
Definition S3Action.h:64
void SetS3Bucket(const char *value)
Definition S3Action.h:80
void SetS3Prefix(const char *value)
Definition S3Action.h:94
void SetS3SseKmsKeyId(Aws::String &&value)
Definition S3Action.h:107
S3Action & WithS3Prefix(const Aws::String &value)
Definition S3Action.h:95
void SetS3Prefix(const Aws::String &value)
Definition S3Action.h:92
S3Action & WithS3Bucket(const char *value)
Definition S3Action.h:83
S3Action & WithActionFailurePolicy(const ActionFailurePolicy &value)
Definition S3Action.h:52
S3Action & WithS3SseKmsKeyId(const char *value)
Definition S3Action.h:111
const Aws::String & GetS3Prefix() const
Definition S3Action.h:90
S3Action & WithS3Prefix(const char *value)
Definition S3Action.h:97
S3Action & WithS3SseKmsKeyId(Aws::String &&value)
Definition S3Action.h:110
void SetS3SseKmsKeyId(const char *value)
Definition S3Action.h:108
AWS_MAILMANAGER_API S3Action & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetActionFailurePolicy(ActionFailurePolicy &&value)
Definition S3Action.h:51
void SetRoleArn(const char *value)
Definition S3Action.h:66
AWS_MAILMANAGER_API S3Action(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetS3Bucket() const
Definition S3Action.h:76
const Aws::String & GetS3SseKmsKeyId() const
Definition S3Action.h:104
S3Action & WithS3SseKmsKeyId(const Aws::String &value)
Definition S3Action.h:109
void SetS3Bucket(const Aws::String &value)
Definition S3Action.h:78
void SetActionFailurePolicy(const ActionFailurePolicy &value)
Definition S3Action.h:50
AWS_MAILMANAGER_API S3Action()
const ActionFailurePolicy & GetActionFailurePolicy() const
Definition S3Action.h:48
S3Action & WithRoleArn(const char *value)
Definition S3Action.h:69
S3Action & WithS3Prefix(Aws::String &&value)
Definition S3Action.h:96
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue