AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ActionsT = Aws::Vector<Aws::String>>
51 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
52 template<typename ActionsT = Aws::Vector<Aws::String>>
53 ApplicationPolicyStatement& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
54 template<typename ActionsT = Aws::String>
55 ApplicationPolicyStatement& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
57
59
64 inline const Aws::Vector<Aws::String>& GetPrincipalOrgIDs() const { return m_principalOrgIDs; }
65 inline bool PrincipalOrgIDsHasBeenSet() const { return m_principalOrgIDsHasBeenSet; }
66 template<typename PrincipalOrgIDsT = Aws::Vector<Aws::String>>
67 void SetPrincipalOrgIDs(PrincipalOrgIDsT&& value) { m_principalOrgIDsHasBeenSet = true; m_principalOrgIDs = std::forward<PrincipalOrgIDsT>(value); }
68 template<typename PrincipalOrgIDsT = Aws::Vector<Aws::String>>
69 ApplicationPolicyStatement& WithPrincipalOrgIDs(PrincipalOrgIDsT&& value) { SetPrincipalOrgIDs(std::forward<PrincipalOrgIDsT>(value)); return *this;}
70 template<typename PrincipalOrgIDsT = Aws::String>
71 ApplicationPolicyStatement& AddPrincipalOrgIDs(PrincipalOrgIDsT&& value) { m_principalOrgIDsHasBeenSet = true; m_principalOrgIDs.emplace_back(std::forward<PrincipalOrgIDsT>(value)); return *this; }
73
75
78 inline const Aws::Vector<Aws::String>& GetPrincipals() const { return m_principals; }
79 inline bool PrincipalsHasBeenSet() const { return m_principalsHasBeenSet; }
80 template<typename PrincipalsT = Aws::Vector<Aws::String>>
81 void SetPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet = true; m_principals = std::forward<PrincipalsT>(value); }
82 template<typename PrincipalsT = Aws::Vector<Aws::String>>
83 ApplicationPolicyStatement& WithPrincipals(PrincipalsT&& value) { SetPrincipals(std::forward<PrincipalsT>(value)); return *this;}
84 template<typename PrincipalsT = Aws::String>
85 ApplicationPolicyStatement& AddPrincipals(PrincipalsT&& value) { m_principalsHasBeenSet = true; m_principals.emplace_back(std::forward<PrincipalsT>(value)); return *this; }
87
89
92 inline const Aws::String& GetStatementId() const { return m_statementId; }
93 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
94 template<typename StatementIdT = Aws::String>
95 void SetStatementId(StatementIdT&& value) { m_statementIdHasBeenSet = true; m_statementId = std::forward<StatementIdT>(value); }
96 template<typename StatementIdT = Aws::String>
97 ApplicationPolicyStatement& WithStatementId(StatementIdT&& value) { SetStatementId(std::forward<StatementIdT>(value)); return *this;}
99 private:
100
101 Aws::Vector<Aws::String> m_actions;
102 bool m_actionsHasBeenSet = false;
103
104 Aws::Vector<Aws::String> m_principalOrgIDs;
105 bool m_principalOrgIDsHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_principals;
108 bool m_principalsHasBeenSet = false;
109
110 Aws::String m_statementId;
111 bool m_statementIdHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace ServerlessApplicationRepository
116} // namespace Aws
AWS_SERVERLESSAPPLICATIONREPOSITORY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SERVERLESSAPPLICATIONREPOSITORY_API ApplicationPolicyStatement()=default
AWS_SERVERLESSAPPLICATIONREPOSITORY_API ApplicationPolicyStatement(Aws::Utils::Json::JsonView jsonValue)
ApplicationPolicyStatement & AddPrincipalOrgIDs(PrincipalOrgIDsT &&value)
AWS_SERVERLESSAPPLICATIONREPOSITORY_API ApplicationPolicyStatement & operator=(Aws::Utils::Json::JsonView jsonValue)
ApplicationPolicyStatement & WithPrincipalOrgIDs(PrincipalOrgIDsT &&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