AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociatePermissionRequest.h
1
6#pragma once
7#include <aws/qbusiness/QBusiness_EXPORTS.h>
8#include <aws/qbusiness/QBusinessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/qbusiness/model/PermissionCondition.h>
12#include <utility>
13
14namespace Aws
15{
16namespace QBusiness
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_QBUSINESS_API AssociatePermissionRequest() = default;
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 "AssociatePermission"; }
33
34 AWS_QBUSINESS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetApplicationId() const { return m_applicationId; }
42 inline bool ApplicationIdHasBeenSet() const { return m_applicationIdHasBeenSet; }
43 template<typename ApplicationIdT = Aws::String>
44 void SetApplicationId(ApplicationIdT&& value) { m_applicationIdHasBeenSet = true; m_applicationId = std::forward<ApplicationIdT>(value); }
45 template<typename ApplicationIdT = Aws::String>
46 AssociatePermissionRequest& WithApplicationId(ApplicationIdT&& value) { SetApplicationId(std::forward<ApplicationIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetStatementId() const { return m_statementId; }
54 inline bool StatementIdHasBeenSet() const { return m_statementIdHasBeenSet; }
55 template<typename StatementIdT = Aws::String>
56 void SetStatementId(StatementIdT&& value) { m_statementIdHasBeenSet = true; m_statementId = std::forward<StatementIdT>(value); }
57 template<typename StatementIdT = Aws::String>
58 AssociatePermissionRequest& WithStatementId(StatementIdT&& value) { SetStatementId(std::forward<StatementIdT>(value)); return *this;}
60
62
65 inline const Aws::Vector<Aws::String>& GetActions() const { return m_actions; }
66 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
67 template<typename ActionsT = Aws::Vector<Aws::String>>
68 void SetActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions = std::forward<ActionsT>(value); }
69 template<typename ActionsT = Aws::Vector<Aws::String>>
70 AssociatePermissionRequest& WithActions(ActionsT&& value) { SetActions(std::forward<ActionsT>(value)); return *this;}
71 template<typename ActionsT = Aws::String>
72 AssociatePermissionRequest& AddActions(ActionsT&& value) { m_actionsHasBeenSet = true; m_actions.emplace_back(std::forward<ActionsT>(value)); return *this; }
74
76
81 inline const Aws::Vector<PermissionCondition>& GetConditions() const { return m_conditions; }
82 inline bool ConditionsHasBeenSet() const { return m_conditionsHasBeenSet; }
83 template<typename ConditionsT = Aws::Vector<PermissionCondition>>
84 void SetConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions = std::forward<ConditionsT>(value); }
85 template<typename ConditionsT = Aws::Vector<PermissionCondition>>
86 AssociatePermissionRequest& WithConditions(ConditionsT&& value) { SetConditions(std::forward<ConditionsT>(value)); return *this;}
87 template<typename ConditionsT = PermissionCondition>
88 AssociatePermissionRequest& AddConditions(ConditionsT&& value) { m_conditionsHasBeenSet = true; m_conditions.emplace_back(std::forward<ConditionsT>(value)); return *this; }
90
92
96 inline const Aws::String& GetPrincipal() const { return m_principal; }
97 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
98 template<typename PrincipalT = Aws::String>
99 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
100 template<typename PrincipalT = Aws::String>
101 AssociatePermissionRequest& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
103 private:
104
105 Aws::String m_applicationId;
106 bool m_applicationIdHasBeenSet = false;
107
108 Aws::String m_statementId;
109 bool m_statementIdHasBeenSet = false;
110
111 Aws::Vector<Aws::String> m_actions;
112 bool m_actionsHasBeenSet = false;
113
115 bool m_conditionsHasBeenSet = false;
116
117 Aws::String m_principal;
118 bool m_principalHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace QBusiness
123} // namespace Aws
AWS_QBUSINESS_API AssociatePermissionRequest()=default
AssociatePermissionRequest & AddConditions(ConditionsT &&value)
virtual const char * GetServiceRequestName() const override
AssociatePermissionRequest & WithPrincipal(PrincipalT &&value)
AssociatePermissionRequest & WithStatementId(StatementIdT &&value)
const Aws::Vector< Aws::String > & GetActions() const
const Aws::Vector< PermissionCondition > & GetConditions() const
AssociatePermissionRequest & WithActions(ActionsT &&value)
AssociatePermissionRequest & AddActions(ActionsT &&value)
AssociatePermissionRequest & WithApplicationId(ApplicationIdT &&value)
AWS_QBUSINESS_API Aws::String SerializePayload() const override
AssociatePermissionRequest & WithConditions(ConditionsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector