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/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/model/CannedAccessControlList.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 IoT
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_IOT_API S3Action();
37 AWS_IOT_API S3Action(Aws::Utils::Json::JsonView jsonValue);
40
41
43
46 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
47 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
48 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
49 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
50 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
51 inline S3Action& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
52 inline S3Action& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
53 inline S3Action& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
55
57
60 inline const Aws::String& GetBucketName() const{ return m_bucketName; }
61 inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; }
62 inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; }
63 inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); }
64 inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); }
65 inline S3Action& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;}
66 inline S3Action& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;}
67 inline S3Action& WithBucketName(const char* value) { SetBucketName(value); return *this;}
69
71
76 inline const Aws::String& GetKey() const{ return m_key; }
77 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
78 inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
79 inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
80 inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
81 inline S3Action& WithKey(const Aws::String& value) { SetKey(value); return *this;}
82 inline S3Action& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
83 inline S3Action& WithKey(const char* value) { SetKey(value); return *this;}
85
87
93 inline const CannedAccessControlList& GetCannedAcl() const{ return m_cannedAcl; }
94 inline bool CannedAclHasBeenSet() const { return m_cannedAclHasBeenSet; }
95 inline void SetCannedAcl(const CannedAccessControlList& value) { m_cannedAclHasBeenSet = true; m_cannedAcl = value; }
96 inline void SetCannedAcl(CannedAccessControlList&& value) { m_cannedAclHasBeenSet = true; m_cannedAcl = std::move(value); }
97 inline S3Action& WithCannedAcl(const CannedAccessControlList& value) { SetCannedAcl(value); return *this;}
98 inline S3Action& WithCannedAcl(CannedAccessControlList&& value) { SetCannedAcl(std::move(value)); return *this;}
100 private:
101
102 Aws::String m_roleArn;
103 bool m_roleArnHasBeenSet = false;
104
105 Aws::String m_bucketName;
106 bool m_bucketNameHasBeenSet = false;
107
108 Aws::String m_key;
109 bool m_keyHasBeenSet = false;
110
111 CannedAccessControlList m_cannedAcl;
112 bool m_cannedAclHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace IoT
117} // namespace Aws
S3Action & WithKey(const Aws::String &value)
Definition S3Action.h:81
S3Action & WithCannedAcl(CannedAccessControlList &&value)
Definition S3Action.h:98
void SetBucketName(const Aws::String &value)
Definition S3Action.h:62
const Aws::String & GetKey() const
Definition S3Action.h:76
S3Action & WithBucketName(Aws::String &&value)
Definition S3Action.h:66
S3Action & WithRoleArn(Aws::String &&value)
Definition S3Action.h:52
S3Action & WithRoleArn(const Aws::String &value)
Definition S3Action.h:51
S3Action & WithBucketName(const char *value)
Definition S3Action.h:67
AWS_IOT_API S3Action & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
const CannedAccessControlList & GetCannedAcl() const
Definition S3Action.h:93
S3Action & WithKey(const char *value)
Definition S3Action.h:83
bool BucketNameHasBeenSet() const
Definition S3Action.h:61
AWS_IOT_API S3Action(Aws::Utils::Json::JsonView jsonValue)
void SetRoleArn(const char *value)
Definition S3Action.h:50
void SetCannedAcl(CannedAccessControlList &&value)
Definition S3Action.h:96
void SetBucketName(Aws::String &&value)
Definition S3Action.h:63
S3Action & WithRoleArn(const char *value)
Definition S3Action.h:53
S3Action & WithCannedAcl(const CannedAccessControlList &value)
Definition S3Action.h:97
void SetKey(const Aws::String &value)
Definition S3Action.h:78
void SetKey(Aws::String &&value)
Definition S3Action.h:79
void SetRoleArn(Aws::String &&value)
Definition S3Action.h:49
void SetKey(const char *value)
Definition S3Action.h:80
bool RoleArnHasBeenSet() const
Definition S3Action.h:47
const Aws::String & GetRoleArn() const
Definition S3Action.h:46
bool KeyHasBeenSet() const
Definition S3Action.h:77
const Aws::String & GetBucketName() const
Definition S3Action.h:60
bool CannedAclHasBeenSet() const
Definition S3Action.h:94
void SetBucketName(const char *value)
Definition S3Action.h:64
void SetRoleArn(const Aws::String &value)
Definition S3Action.h:48
S3Action & WithBucketName(const Aws::String &value)
Definition S3Action.h:65
S3Action & WithKey(Aws::String &&value)
Definition S3Action.h:82
void SetCannedAcl(const CannedAccessControlList &value)
Definition S3Action.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue