AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AddPolicyStatementRequest.h
1
6#pragma once
7#include <aws/entityresolution/EntityResolution_EXPORTS.h>
8#include <aws/entityresolution/EntityResolutionRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/entityresolution/model/StatementEffect.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EntityResolution
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ENTITYRESOLUTION_API AddPolicyStatementRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AddPolicyStatement"; }
33
34 AWS_ENTITYRESOLUTION_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::Vector<Aws::String>& GetAction() const{ return m_action; }
44 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
45 inline void SetAction(const Aws::Vector<Aws::String>& value) { m_actionHasBeenSet = true; m_action = value; }
46 inline void SetAction(Aws::Vector<Aws::String>&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
47 inline AddPolicyStatementRequest& WithAction(const Aws::Vector<Aws::String>& value) { SetAction(value); return *this;}
48 inline AddPolicyStatementRequest& WithAction(Aws::Vector<Aws::String>&& value) { SetAction(std::move(value)); return *this;}
49 inline AddPolicyStatementRequest& AddAction(const Aws::String& value) { m_actionHasBeenSet = true; m_action.push_back(value); return *this; }
50 inline AddPolicyStatementRequest& AddAction(Aws::String&& value) { m_actionHasBeenSet = true; m_action.push_back(std::move(value)); return *this; }
51 inline AddPolicyStatementRequest& AddAction(const char* value) { m_actionHasBeenSet = true; m_action.push_back(value); return *this; }
53
55
59 inline const Aws::String& GetArn() const{ return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
62 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
63 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
64 inline AddPolicyStatementRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
65 inline AddPolicyStatementRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
66 inline AddPolicyStatementRequest& WithArn(const char* value) { SetArn(value); return *this;}
68
70
73 inline const Aws::String& GetCondition() const{ return m_condition; }
74 inline bool ConditionHasBeenSet() const { return m_conditionHasBeenSet; }
75 inline void SetCondition(const Aws::String& value) { m_conditionHasBeenSet = true; m_condition = value; }
76 inline void SetCondition(Aws::String&& value) { m_conditionHasBeenSet = true; m_condition = std::move(value); }
77 inline void SetCondition(const char* value) { m_conditionHasBeenSet = true; m_condition.assign(value); }
78 inline AddPolicyStatementRequest& WithCondition(const Aws::String& value) { SetCondition(value); return *this;}
79 inline AddPolicyStatementRequest& WithCondition(Aws::String&& value) { SetCondition(std::move(value)); return *this;}
80 inline AddPolicyStatementRequest& WithCondition(const char* value) { SetCondition(value); return *this;}
82
84
92 inline const StatementEffect& GetEffect() const{ return m_effect; }
93 inline bool EffectHasBeenSet() const { return m_effectHasBeenSet; }
94 inline void SetEffect(const StatementEffect& value) { m_effectHasBeenSet = true; m_effect = value; }
95 inline void SetEffect(StatementEffect&& value) { m_effectHasBeenSet = true; m_effect = std::move(value); }
96 inline AddPolicyStatementRequest& WithEffect(const StatementEffect& value) { SetEffect(value); return *this;}
97 inline AddPolicyStatementRequest& WithEffect(StatementEffect&& value) { SetEffect(std::move(value)); return *this;}
99
101
105 inline const Aws::Vector<Aws::String>& GetPrincipal() const{ return m_principal; }
106 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
107 inline void SetPrincipal(const Aws::Vector<Aws::String>& value) { m_principalHasBeenSet = true; m_principal = value; }
108 inline void SetPrincipal(Aws::Vector<Aws::String>&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
110 inline AddPolicyStatementRequest& WithPrincipal(Aws::Vector<Aws::String>&& value) { SetPrincipal(std::move(value)); return *this;}
111 inline AddPolicyStatementRequest& AddPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal.push_back(value); return *this; }
112 inline AddPolicyStatementRequest& AddPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal.push_back(std::move(value)); return *this; }
113 inline AddPolicyStatementRequest& AddPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.push_back(value); return *this; }
115
117
121 inline const Aws::String& GetStatementId() const{ return m_statementId; }
122 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
123 inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
124 inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); }
125 inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
126 inline AddPolicyStatementRequest& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
127 inline AddPolicyStatementRequest& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
128 inline AddPolicyStatementRequest& WithStatementId(const char* value) { SetStatementId(value); return *this;}
130 private:
131
133 bool m_actionHasBeenSet = false;
134
135 Aws::String m_arn;
136 bool m_arnHasBeenSet = false;
137
138 Aws::String m_condition;
139 bool m_conditionHasBeenSet = false;
140
141 StatementEffect m_effect;
142 bool m_effectHasBeenSet = false;
143
144 Aws::Vector<Aws::String> m_principal;
145 bool m_principalHasBeenSet = false;
146
147 Aws::String m_statementId;
148 bool m_statementIdHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace EntityResolution
153} // namespace Aws
AddPolicyStatementRequest & AddAction(Aws::String &&value)
AddPolicyStatementRequest & WithCondition(Aws::String &&value)
AddPolicyStatementRequest & WithStatementId(Aws::String &&value)
AddPolicyStatementRequest & WithAction(const Aws::Vector< Aws::String > &value)
AWS_ENTITYRESOLUTION_API Aws::String SerializePayload() const override
AddPolicyStatementRequest & WithStatementId(const char *value)
AddPolicyStatementRequest & WithPrincipal(Aws::Vector< Aws::String > &&value)
AddPolicyStatementRequest & AddPrincipal(const Aws::String &value)
void SetAction(const Aws::Vector< Aws::String > &value)
AddPolicyStatementRequest & AddPrincipal(const char *value)
AddPolicyStatementRequest & WithArn(Aws::String &&value)
AddPolicyStatementRequest & WithEffect(const StatementEffect &value)
AddPolicyStatementRequest & WithArn(const char *value)
AddPolicyStatementRequest & WithPrincipal(const Aws::Vector< Aws::String > &value)
AddPolicyStatementRequest & WithStatementId(const Aws::String &value)
AddPolicyStatementRequest & WithArn(const Aws::String &value)
void SetPrincipal(const Aws::Vector< Aws::String > &value)
AddPolicyStatementRequest & WithAction(Aws::Vector< Aws::String > &&value)
AddPolicyStatementRequest & AddAction(const Aws::String &value)
AddPolicyStatementRequest & WithCondition(const Aws::String &value)
AddPolicyStatementRequest & WithEffect(StatementEffect &&value)
AddPolicyStatementRequest & AddAction(const char *value)
AddPolicyStatementRequest & WithCondition(const char *value)
AddPolicyStatementRequest & AddPrincipal(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector