AWS SDK for C++  1.8.129
AWS SDK for C++
S3Action.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace SES
22 {
23 namespace Model
24 {
25 
45  {
46  public:
50 
51  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
52  void OutputToStream(Aws::OStream& oStream, const char* location) const;
53 
54 
63  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
64 
73  inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
74 
83  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
84 
93  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
94 
103  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
104 
113  inline S3Action& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
114 
123  inline S3Action& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
124 
133  inline S3Action& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
134 
135 
139  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
140 
144  inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
145 
149  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
150 
154  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
155 
159  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
160 
164  inline S3Action& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
165 
169  inline S3Action& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
170 
174  inline S3Action& WithBucketName(const char* value) { SetBucketName(value); return *this;}
175 
176 
182  inline const Aws::String& GetObjectKeyPrefix() const{ return m_objectKeyPrefix; }
183 
189  inline bool ObjectKeyPrefixHasBeenSet() const { return m_objectKeyPrefixHasBeenSet; }
190 
196  inline void SetObjectKeyPrefix(const Aws::String& value) { m_objectKeyPrefixHasBeenSet = true; m_objectKeyPrefix = value; }
197 
203  inline void SetObjectKeyPrefix(Aws::String&& value) { m_objectKeyPrefixHasBeenSet = true; m_objectKeyPrefix = std::move(value); }
204 
210  inline void SetObjectKeyPrefix(const char* value) { m_objectKeyPrefixHasBeenSet = true; m_objectKeyPrefix.assign(value); }
211 
217  inline S3Action& WithObjectKeyPrefix(const Aws::String& value) { SetObjectKeyPrefix(value); return *this;}
218 
224  inline S3Action& WithObjectKeyPrefix(Aws::String&& value) { SetObjectKeyPrefix(std::move(value)); return *this;}
225 
231  inline S3Action& WithObjectKeyPrefix(const char* value) { SetObjectKeyPrefix(value); return *this;}
232 
233 
265  inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
266 
298  inline bool KmsKeyArnHasBeenSet() const { return m_kmsKeyArnHasBeenSet; }
299 
331  inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
332 
364  inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = std::move(value); }
365 
397  inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
398 
430  inline S3Action& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
431 
463  inline S3Action& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(std::move(value)); return *this;}
464 
496  inline S3Action& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
497 
498  private:
499 
500  Aws::String m_topicArn;
501  bool m_topicArnHasBeenSet;
502 
503  Aws::String m_bucketName;
504  bool m_bucketNameHasBeenSet;
505 
506  Aws::String m_objectKeyPrefix;
507  bool m_objectKeyPrefixHasBeenSet;
508 
509  Aws::String m_kmsKeyArn;
510  bool m_kmsKeyArnHasBeenSet;
511  };
512 
513 } // namespace Model
514 } // namespace SES
515 } // namespace Aws
Aws::SES::Model::S3Action::S3Action
S3Action(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::S3Action::TopicArnHasBeenSet
bool TopicArnHasBeenSet() const
Definition: S3Action.h:73
Aws::SES::Model::S3Action::WithKmsKeyArn
S3Action & WithKmsKeyArn(const char *value)
Definition: S3Action.h:496
Aws::SES::Model::S3Action::SetBucketName
void SetBucketName(const char *value)
Definition: S3Action.h:159
Aws::SES::Model::S3Action::WithKmsKeyArn
S3Action & WithKmsKeyArn(const Aws::String &value)
Definition: S3Action.h:430
Aws::SES::Model::S3Action::WithTopicArn
S3Action & WithTopicArn(Aws::String &&value)
Definition: S3Action.h:123
Aws::SES::Model::S3Action::WithKmsKeyArn
S3Action & WithKmsKeyArn(Aws::String &&value)
Definition: S3Action.h:463
Aws::SES::Model::S3Action::WithObjectKeyPrefix
S3Action & WithObjectKeyPrefix(Aws::String &&value)
Definition: S3Action.h:224
Aws::SES::Model::S3Action::SetKmsKeyArn
void SetKmsKeyArn(Aws::String &&value)
Definition: S3Action.h:364
Aws::SES::Model::S3Action::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::SES::Model::S3Action::WithBucketName
S3Action & WithBucketName(const char *value)
Definition: S3Action.h:174
Aws::SES::Model::S3Action::WithTopicArn
S3Action & WithTopicArn(const Aws::String &value)
Definition: S3Action.h:113
Aws::SES::Model::S3Action::BucketNameHasBeenSet
bool BucketNameHasBeenSet() const
Definition: S3Action.h:144
AWSStreamFwd.h
Aws::SES::Model::S3Action::S3Action
S3Action()
Aws::SES::Model::S3Action::GetTopicArn
const Aws::String & GetTopicArn() const
Definition: S3Action.h:63
Aws::SES::Model::S3Action::SetObjectKeyPrefix
void SetObjectKeyPrefix(Aws::String &&value)
Definition: S3Action.h:203
Aws::SES::Model::S3Action::ObjectKeyPrefixHasBeenSet
bool ObjectKeyPrefixHasBeenSet() const
Definition: S3Action.h:189
Aws::SES::Model::S3Action::GetKmsKeyArn
const Aws::String & GetKmsKeyArn() const
Definition: S3Action.h:265
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::SES::Model::S3Action::SetTopicArn
void SetTopicArn(const Aws::String &value)
Definition: S3Action.h:83
Aws::SES::Model::S3Action::WithTopicArn
S3Action & WithTopicArn(const char *value)
Definition: S3Action.h:133
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SES::Model::S3Action::operator=
S3Action & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SES::Model::S3Action::WithBucketName
S3Action & WithBucketName(const Aws::String &value)
Definition: S3Action.h:164
Aws::SES::Model::S3Action::KmsKeyArnHasBeenSet
bool KmsKeyArnHasBeenSet() const
Definition: S3Action.h:298
Aws::SES::Model::S3Action::SetObjectKeyPrefix
void SetObjectKeyPrefix(const Aws::String &value)
Definition: S3Action.h:196
Aws::SES::Model::S3Action::SetKmsKeyArn
void SetKmsKeyArn(const char *value)
Definition: S3Action.h:397
Aws::SES::Model::S3Action::WithObjectKeyPrefix
S3Action & WithObjectKeyPrefix(const char *value)
Definition: S3Action.h:231
Aws::SES::Model::S3Action::SetTopicArn
void SetTopicArn(Aws::String &&value)
Definition: S3Action.h:93
AWSString.h
Aws::SES::Model::S3Action::WithObjectKeyPrefix
S3Action & WithObjectKeyPrefix(const Aws::String &value)
Definition: S3Action.h:217
Aws::SES::Model::S3Action::WithBucketName
S3Action & WithBucketName(Aws::String &&value)
Definition: S3Action.h:169
SES_EXPORTS.h
Aws::SES::Model::S3Action::GetBucketName
const Aws::String & GetBucketName() const
Definition: S3Action.h:139
AWS_SES_API
#define AWS_SES_API
Definition: SES_EXPORTS.h:28
Aws::SES::Model::S3Action::SetTopicArn
void SetTopicArn(const char *value)
Definition: S3Action.h:103
Aws::SES::Model::S3Action::GetObjectKeyPrefix
const Aws::String & GetObjectKeyPrefix() const
Definition: S3Action.h:182
Aws::SES::Model::S3Action::SetBucketName
void SetBucketName(const Aws::String &value)
Definition: S3Action.h:149
Aws::SES::Model::S3Action
Definition: S3Action.h:45
Aws::SES::Model::S3Action::SetObjectKeyPrefix
void SetObjectKeyPrefix(const char *value)
Definition: S3Action.h:210
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SES::Model::S3Action::SetKmsKeyArn
void SetKmsKeyArn(const Aws::String &value)
Definition: S3Action.h:331
Aws::SES::Model::S3Action::SetBucketName
void SetBucketName(Aws::String &&value)
Definition: S3Action.h:154
index
int index
Definition: cJSON.h:171
Aws::SES::Model::S3Action::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const