AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ApplicationPolicyStatement.h
1
6#pragma once
7#include <aws/serverlessrepo/ServerlessApplicationRepository_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.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 ServerlessApplicationRepository
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SERVERLESSAPPLICATIONREPOSITORY_API ApplicationPolicyStatement();
36 AWS_SERVERLESSAPPLICATIONREPOSITORY_API ApplicationPolicyStatement(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SERVERLESSAPPLICATIONREPOSITORY_API ApplicationPolicyStatement& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
48 inline const Aws::Vector<Aws::String>& GetActions() const{ return m_actions; }
49 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
50 inline void SetActions(const Aws::Vector<Aws::String>& value) { m_actionsHasBeenSet = true; m_actions = value; }
51 inline void SetActions(Aws::Vector<Aws::String>&& value) { m_actionsHasBeenSet = true; m_actions = std::move(value); }
52 inline ApplicationPolicyStatement& WithActions(const Aws::Vector<Aws::String>& value) { SetActions(value); return *this;}
53 inline ApplicationPolicyStatement& WithActions(Aws::Vector<Aws::String>&& value) { SetActions(std::move(value)); return *this;}
54 inline ApplicationPolicyStatement& AddActions(const Aws::String& value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
55 inline ApplicationPolicyStatement& AddActions(Aws::String&& value) { m_actionsHasBeenSet = true; m_actions.push_back(std::move(value)); return *this; }
56 inline ApplicationPolicyStatement& AddActions(const char* value) { m_actionsHasBeenSet = true; m_actions.push_back(value); return *this; }
58
60
65 inline const Aws::Vector<Aws::String>& GetPrincipalOrgIDs() const{ return m_principalOrgIDs; }
66 inline bool PrincipalOrgIDsHasBeenSet() const { return m_principalOrgIDsHasBeenSet; }
67 inline void SetPrincipalOrgIDs(const Aws::Vector<Aws::String>& value) { m_principalOrgIDsHasBeenSet = true; m_principalOrgIDs = value; }
68 inline void SetPrincipalOrgIDs(Aws::Vector<Aws::String>&& value) { m_principalOrgIDsHasBeenSet = true; m_principalOrgIDs = std::move(value); }
71 inline ApplicationPolicyStatement& AddPrincipalOrgIDs(const Aws::String& value) { m_principalOrgIDsHasBeenSet = true; m_principalOrgIDs.push_back(value); return *this; }
72 inline ApplicationPolicyStatement& AddPrincipalOrgIDs(Aws::String&& value) { m_principalOrgIDsHasBeenSet = true; m_principalOrgIDs.push_back(std::move(value)); return *this; }
73 inline ApplicationPolicyStatement& AddPrincipalOrgIDs(const char* value) { m_principalOrgIDsHasBeenSet = true; m_principalOrgIDs.push_back(value); return *this; }
75
77
80 inline const Aws::Vector<Aws::String>& GetPrincipals() const{ return m_principals; }
81 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
82 inline void SetPrincipals(const Aws::Vector<Aws::String>& value) { m_principalsHasBeenSet = true; m_principals = value; }
83 inline void SetPrincipals(Aws::Vector<Aws::String>&& value) { m_principalsHasBeenSet = true; m_principals = std::move(value); }
85 inline ApplicationPolicyStatement& WithPrincipals(Aws::Vector<Aws::String>&& value) { SetPrincipals(std::move(value)); return *this;}
86 inline ApplicationPolicyStatement& AddPrincipals(const Aws::String& value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
87 inline ApplicationPolicyStatement& AddPrincipals(Aws::String&& value) { m_principalsHasBeenSet = true; m_principals.push_back(std::move(value)); return *this; }
88 inline ApplicationPolicyStatement& AddPrincipals(const char* value) { m_principalsHasBeenSet = true; m_principals.push_back(value); return *this; }
90
92
95 inline const Aws::String& GetStatementId() const{ return m_statementId; }
96 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
97 inline void SetStatementId(const Aws::String& value) { m_statementIdHasBeenSet = true; m_statementId = value; }
98 inline void SetStatementId(Aws::String&& value) { m_statementIdHasBeenSet = true; m_statementId = std::move(value); }
99 inline void SetStatementId(const char* value) { m_statementIdHasBeenSet = true; m_statementId.assign(value); }
100 inline ApplicationPolicyStatement& WithStatementId(const Aws::String& value) { SetStatementId(value); return *this;}
101 inline ApplicationPolicyStatement& WithStatementId(Aws::String&& value) { SetStatementId(std::move(value)); return *this;}
102 inline ApplicationPolicyStatement& WithStatementId(const char* value) { SetStatementId(value); return *this;}
104 private:
105
106 Aws::Vector<Aws::String> m_actions;
107 bool m_actionsHasBeenSet = false;
108
109 Aws::Vector<Aws::String> m_principalOrgIDs;
110 bool m_principalOrgIDsHasBeenSet = false;
111
112 Aws::Vector<Aws::String> m_principals;
113 bool m_principalsHasBeenSet = false;
114
115 Aws::String m_statementId;
116 bool m_statementIdHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace ServerlessApplicationRepository
121} // namespace Aws
ApplicationPolicyStatement & WithActions(const Aws::Vector< Aws::String > &value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::Utils::Json::JsonValue Jsonize() const
ApplicationPolicyStatement & WithPrincipals(const Aws::Vector< Aws::String > &value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API ApplicationPolicyStatement(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API ApplicationPolicyStatement()
ApplicationPolicyStatement & AddPrincipalOrgIDs(const Aws::String &value)
ApplicationPolicyStatement & WithPrincipalOrgIDs(Aws::Vector< Aws::String > &&value)
ApplicationPolicyStatement & WithPrincipalOrgIDs(const Aws::Vector< Aws::String > &value)
ApplicationPolicyStatement & AddActions(const Aws::String &value)
ApplicationPolicyStatement & WithStatementId(const Aws::String &value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API ApplicationPolicyStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationPolicyStatement & AddPrincipals(const Aws::String &value)
ApplicationPolicyStatement & WithPrincipals(Aws::Vector< Aws::String > &&value)
ApplicationPolicyStatement & WithActions(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue