AWS SDK for C++  0.14.3
AWS SDK for C++
S3Action.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/email/SES_EXPORTS.h>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Xml
25 {
26  class XmlNode;
27 } // namespace Xml
28 } // namespace Utils
29 namespace SES
30 {
31 namespace Model
32 {
33 
51  {
52  public:
53  S3Action();
54  S3Action(const Aws::Utils::Xml::XmlNode& xmlNode);
55  S3Action& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
56 
57  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
58  void OutputToStream(Aws::OStream& oStream, const char* location) const;
59 
68  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
69 
78  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
79 
88  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
89 
98  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
99 
108  inline S3Action& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
109 
118  inline S3Action& WithTopicArn(Aws::String&& value) { SetTopicArn(value); return *this;}
119 
128  inline S3Action& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
129 
133  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
134 
138  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
139 
143  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
144 
148  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
149 
153  inline S3Action& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
154 
158  inline S3Action& WithBucketName(Aws::String&& value) { SetBucketName(value); return *this;}
159 
163  inline S3Action& WithBucketName(const char* value) { SetBucketName(value); return *this;}
164 
170  inline const Aws::String& GetObjectKeyPrefix() const{ return m_objectKeyPrefix; }
171 
177  inline void SetObjectKeyPrefix(const Aws::String& value) { m_objectKeyPrefixHasBeenSet = true; m_objectKeyPrefix = value; }
178 
184  inline void SetObjectKeyPrefix(Aws::String&& value) { m_objectKeyPrefixHasBeenSet = true; m_objectKeyPrefix = value; }
185 
191  inline void SetObjectKeyPrefix(const char* value) { m_objectKeyPrefixHasBeenSet = true; m_objectKeyPrefix.assign(value); }
192 
198  inline S3Action& WithObjectKeyPrefix(const Aws::String& value) { SetObjectKeyPrefix(value); return *this;}
199 
205  inline S3Action& WithObjectKeyPrefix(Aws::String&& value) { SetObjectKeyPrefix(value); return *this;}
206 
212  inline S3Action& WithObjectKeyPrefix(const char* value) { SetObjectKeyPrefix(value); return *this;}
213 
245  inline const Aws::String& GetKmsKeyArn() const{ return m_kmsKeyArn; }
246 
278  inline void SetKmsKeyArn(const Aws::String& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
279 
311  inline void SetKmsKeyArn(Aws::String&& value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn = value; }
312 
344  inline void SetKmsKeyArn(const char* value) { m_kmsKeyArnHasBeenSet = true; m_kmsKeyArn.assign(value); }
345 
377  inline S3Action& WithKmsKeyArn(const Aws::String& value) { SetKmsKeyArn(value); return *this;}
378 
410  inline S3Action& WithKmsKeyArn(Aws::String&& value) { SetKmsKeyArn(value); return *this;}
411 
443  inline S3Action& WithKmsKeyArn(const char* value) { SetKmsKeyArn(value); return *this;}
444 
445  private:
446  Aws::String m_topicArn;
447  bool m_topicArnHasBeenSet;
448  Aws::String m_bucketName;
449  bool m_bucketNameHasBeenSet;
450  Aws::String m_objectKeyPrefix;
451  bool m_objectKeyPrefixHasBeenSet;
452  Aws::String m_kmsKeyArn;
453  bool m_kmsKeyArnHasBeenSet;
454  };
455 
456 } // namespace Model
457 } // namespace SES
458 } // namespace Aws
S3Action & WithKmsKeyArn(const Aws::String &value)
Definition: S3Action.h:377
void SetKmsKeyArn(Aws::String &&value)
Definition: S3Action.h:311
void SetObjectKeyPrefix(Aws::String &&value)
Definition: S3Action.h:184
void SetTopicArn(const Aws::String &value)
Definition: S3Action.h:78
const Aws::String & GetKmsKeyArn() const
Definition: S3Action.h:245
void SetObjectKeyPrefix(const char *value)
Definition: S3Action.h:191
S3Action & WithObjectKeyPrefix(const Aws::String &value)
Definition: S3Action.h:198
S3Action & WithBucketName(const Aws::String &value)
Definition: S3Action.h:153
S3Action & WithTopicArn(const Aws::String &value)
Definition: S3Action.h:108
void SetTopicArn(const char *value)
Definition: S3Action.h:98
S3Action & WithKmsKeyArn(const char *value)
Definition: S3Action.h:443
S3Action & WithObjectKeyPrefix(Aws::String &&value)
Definition: S3Action.h:205
S3Action & WithTopicArn(const char *value)
Definition: S3Action.h:128
void SetKmsKeyArn(const Aws::String &value)
Definition: S3Action.h:278
void SetBucketName(Aws::String &&value)
Definition: S3Action.h:143
const Aws::String & GetObjectKeyPrefix() const
Definition: S3Action.h:170
S3Action & WithObjectKeyPrefix(const char *value)
Definition: S3Action.h:212
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::String & GetBucketName() const
Definition: S3Action.h:133
S3Action & WithBucketName(Aws::String &&value)
Definition: S3Action.h:158
const Aws::String & GetTopicArn() const
Definition: S3Action.h:68
void SetBucketName(const char *value)
Definition: S3Action.h:148
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetTopicArn(Aws::String &&value)
Definition: S3Action.h:88
S3Action & WithBucketName(const char *value)
Definition: S3Action.h:163
void SetObjectKeyPrefix(const Aws::String &value)
Definition: S3Action.h:177
#define AWS_SES_API
Definition: SES_EXPORTS.h:37
void SetKmsKeyArn(const char *value)
Definition: S3Action.h:344
void SetBucketName(const Aws::String &value)
Definition: S3Action.h:138
S3Action & WithKmsKeyArn(Aws::String &&value)
Definition: S3Action.h:410
JSON (JavaScript Object Notation).
S3Action & WithTopicArn(Aws::String &&value)
Definition: S3Action.h:118