AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Permission.h
1
6#pragma once
7#include <aws/signer/Signer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace signer
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SIGNER_API Permission();
36 AWS_SIGNER_API Permission(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAction() const{ return m_action; }
46 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
47 inline void SetAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action = value; }
48 inline void SetAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
49 inline void SetAction(const char* value) { m_actionHasBeenSet = true; m_action.assign(value); }
50 inline Permission& WithAction(const Aws::String& value) { SetAction(value); return *this;}
51 inline Permission& WithAction(Aws::String&& value) { SetAction(std::move(value)); return *this;}
52 inline Permission& WithAction(const char* value) { SetAction(value); return *this;}
54
56
59 inline const Aws::String& GetPrincipal() const{ return m_principal; }
60 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
61 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
62 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
63 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
64 inline Permission& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
65 inline Permission& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
66 inline Permission& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
68
70
73 inline const Aws::String& GetStatementId() const{ return m_statementId; }
74 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
75 inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
76 inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); }
77 inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
78 inline Permission& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
79 inline Permission& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
80 inline Permission& WithStatementId(const char* value) { SetStatementId(value); return *this;}
82
84
87 inline const Aws::String& GetProfileVersion() const{ return m_profileVersion; }
88 inline bool ProfileVersionHasBeenSet() const { return m_profileVersionHasBeenSet; }
89 inline void SetProfileVersion(const Aws::String& value) { m_profileVersionHasBeenSet = true; m_profileVersion = value; }
90 inline void SetProfileVersion(Aws::String&& value) { m_profileVersionHasBeenSet = true; m_profileVersion = std::move(value); }
91 inline void SetProfileVersion(const char* value) { m_profileVersionHasBeenSet = true; m_profileVersion.assign(value); }
92 inline Permission& WithProfileVersion(const Aws::String& value) { SetProfileVersion(value); return *this;}
93 inline Permission& WithProfileVersion(Aws::String&& value) { SetProfileVersion(std::move(value)); return *this;}
94 inline Permission& WithProfileVersion(const char* value) { SetProfileVersion(value); return *this;}
96 private:
97
98 Aws::String m_action;
99 bool m_actionHasBeenSet = false;
100
101 Aws::String m_principal;
102 bool m_principalHasBeenSet = false;
103
104 Aws::String m_statementId;
105 bool m_statementIdHasBeenSet = false;
106
107 Aws::String m_profileVersion;
108 bool m_profileVersionHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace signer
113} // namespace Aws
void SetPrincipal(Aws::String &&value)
Definition Permission.h:62
Permission & WithAction(const char *value)
Definition Permission.h:52
Permission & WithAction(Aws::String &&value)
Definition Permission.h:51
void SetPrincipal(const Aws::String &value)
Definition Permission.h:61
Permission & WithAction(const Aws::String &value)
Definition Permission.h:50
void SetProfileVersion(const char *value)
Definition Permission.h:91
AWS_SIGNER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetAction() const
Definition Permission.h:45
Permission & WithStatementId(const char *value)
Definition Permission.h:80
const Aws::String & GetPrincipal() const
Definition Permission.h:59
Permission & WithPrincipal(Aws::String &&value)
Definition Permission.h:65
Permission & WithProfileVersion(const char *value)
Definition Permission.h:94
void SetStatementId(Aws::String &&value)
Definition Permission.h:76
void SetProfileVersion(Aws::String &&value)
Definition Permission.h:90
Permission & WithProfileVersion(const Aws::String &value)
Definition Permission.h:92
void SetStatementId(const char *value)
Definition Permission.h:77
const Aws::String & GetStatementId() const
Definition Permission.h:73
void SetAction(Aws::String &&value)
Definition Permission.h:48
void SetAction(const char *value)
Definition Permission.h:49
const Aws::String & GetProfileVersion() const
Definition Permission.h:87
Permission & WithStatementId(Aws::String &&value)
Definition Permission.h:79
Permission & WithProfileVersion(Aws::String &&value)
Definition Permission.h:93
bool ProfileVersionHasBeenSet() const
Definition Permission.h:88
Permission & WithPrincipal(const Aws::String &value)
Definition Permission.h:64
AWS_SIGNER_API Permission & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatementId(const Aws::String &value)
Definition Permission.h:75
AWS_SIGNER_API Permission(Aws::Utils::Json::JsonView jsonValue)
Permission & WithStatementId(const Aws::String &value)
Definition Permission.h:78
void SetAction(const Aws::String &value)
Definition Permission.h:47
void SetPrincipal(const char *value)
Definition Permission.h:63
void SetProfileVersion(const Aws::String &value)
Definition Permission.h:89
Permission & WithPrincipal(const char *value)
Definition Permission.h:66
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue