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/iot/IoT_EXPORTS.h>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace IoT
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  S3Action();
40  S3Action(const Aws::Utils::Json::JsonValue& jsonValue);
41  S3Action& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
48 
52  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
53 
57  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
58 
62  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
63 
67  inline S3Action& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
68 
72  inline S3Action& WithRoleArn(Aws::String&& value) { SetRoleArn(value); return *this;}
73 
77  inline S3Action& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
78 
82  inline const Aws::String& GetBucketName() const{ return m_bucketName; }
83 
87  inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
88 
92  inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
93 
97  inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
98 
102  inline S3Action& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
103 
107  inline S3Action& WithBucketName(Aws::String&& value) { SetBucketName(value); return *this;}
108 
112  inline S3Action& WithBucketName(const char* value) { SetBucketName(value); return *this;}
113 
117  inline const Aws::String& GetKey() const{ return m_key; }
118 
122  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
123 
127  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
128 
132  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
133 
137  inline S3Action& WithKey(const Aws::String& value) { SetKey(value); return *this;}
138 
142  inline S3Action& WithKey(Aws::String&& value) { SetKey(value); return *this;}
143 
147  inline S3Action& WithKey(const char* value) { SetKey(value); return *this;}
148 
149  private:
150  Aws::String m_roleArn;
151  bool m_roleArnHasBeenSet;
152  Aws::String m_bucketName;
153  bool m_bucketNameHasBeenSet;
154  Aws::String m_key;
155  bool m_keyHasBeenSet;
156  };
157 
158 } // namespace Model
159 } // namespace IoT
160 } // namespace Aws
void SetKey(Aws::String &&value)
Definition: S3Action.h:127
S3Action & WithBucketName(const char *value)
Definition: S3Action.h:112
void SetKey(const Aws::String &value)
Definition: S3Action.h:122
void SetBucketName(const char *value)
Definition: S3Action.h:97
const Aws::String & GetBucketName() const
Definition: S3Action.h:82
S3Action & WithKey(const Aws::String &value)
Definition: S3Action.h:137
S3Action & WithKey(Aws::String &&value)
Definition: S3Action.h:142
S3Action & WithRoleArn(Aws::String &&value)
Definition: S3Action.h:72
void SetRoleArn(const char *value)
Definition: S3Action.h:62
void SetRoleArn(Aws::String &&value)
Definition: S3Action.h:57
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
S3Action & WithBucketName(const Aws::String &value)
Definition: S3Action.h:102
S3Action & WithRoleArn(const char *value)
Definition: S3Action.h:77
void SetBucketName(const Aws::String &value)
Definition: S3Action.h:87
void SetRoleArn(const Aws::String &value)
Definition: S3Action.h:52
const Aws::String & GetKey() const
Definition: S3Action.h:117
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const Aws::String & GetRoleArn() const
Definition: S3Action.h:47
S3Action & WithKey(const char *value)
Definition: S3Action.h:147
S3Action & WithBucketName(Aws::String &&value)
Definition: S3Action.h:107
void SetBucketName(Aws::String &&value)
Definition: S3Action.h:92
void SetKey(const char *value)
Definition: S3Action.h:132
JSON (JavaScript Object Notation).
S3Action & WithRoleArn(const Aws::String &value)
Definition: S3Action.h:67