AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
TestAuthorizationRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iot/model/AuthInfo.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace IoT
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IOT_API TestAuthorizationRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "TestAuthorization"; }
37
38 AWS_IOT_API Aws::String SerializePayload() const override;
39
40 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
51 inline const Aws::String& GetPrincipal() const { return m_principal; }
52 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
53 template<typename PrincipalT = Aws::String>
54 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
55 template<typename PrincipalT = Aws::String>
56 TestAuthorizationRequest& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
58
60
63 inline const Aws::String& GetCognitoIdentityPoolId() const { return m_cognitoIdentityPoolId; }
64 inline bool CognitoIdentityPoolIdHasBeenSet() const { return m_cognitoIdentityPoolIdHasBeenSet; }
65 template<typename CognitoIdentityPoolIdT = Aws::String>
66 void SetCognitoIdentityPoolId(CognitoIdentityPoolIdT&& value) { m_cognitoIdentityPoolIdHasBeenSet = true; m_cognitoIdentityPoolId = std::forward<CognitoIdentityPoolIdT>(value); }
67 template<typename CognitoIdentityPoolIdT = Aws::String>
68 TestAuthorizationRequest& WithCognitoIdentityPoolId(CognitoIdentityPoolIdT&& value) { SetCognitoIdentityPoolId(std::forward<CognitoIdentityPoolIdT>(value)); return *this;}
70
72
76 inline const Aws::Vector<AuthInfo>& GetAuthInfos() const { return m_authInfos; }
77 inline bool AuthInfosHasBeenSet() const { return m_authInfosHasBeenSet; }
78 template<typename AuthInfosT = Aws::Vector<AuthInfo>>
79 void SetAuthInfos(AuthInfosT&& value) { m_authInfosHasBeenSet = true; m_authInfos = std::forward<AuthInfosT>(value); }
80 template<typename AuthInfosT = Aws::Vector<AuthInfo>>
81 TestAuthorizationRequest& WithAuthInfos(AuthInfosT&& value) { SetAuthInfos(std::forward<AuthInfosT>(value)); return *this;}
82 template<typename AuthInfosT = AuthInfo>
83 TestAuthorizationRequest& AddAuthInfos(AuthInfosT&& value) { m_authInfosHasBeenSet = true; m_authInfos.emplace_back(std::forward<AuthInfosT>(value)); return *this; }
85
87
90 inline const Aws::String& GetClientId() const { return m_clientId; }
91 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
92 template<typename ClientIdT = Aws::String>
93 void SetClientId(ClientIdT&& value) { m_clientIdHasBeenSet = true; m_clientId = std::forward<ClientIdT>(value); }
94 template<typename ClientIdT = Aws::String>
95 TestAuthorizationRequest& WithClientId(ClientIdT&& value) { SetClientId(std::forward<ClientIdT>(value)); return *this;}
97
99
103 inline const Aws::Vector<Aws::String>& GetPolicyNamesToAdd() const { return m_policyNamesToAdd; }
104 inline bool PolicyNamesToAddHasBeenSet() const { return m_policyNamesToAddHasBeenSet; }
105 template<typename PolicyNamesToAddT = Aws::Vector<Aws::String>>
106 void SetPolicyNamesToAdd(PolicyNamesToAddT&& value) { m_policyNamesToAddHasBeenSet = true; m_policyNamesToAdd = std::forward<PolicyNamesToAddT>(value); }
107 template<typename PolicyNamesToAddT = Aws::Vector<Aws::String>>
108 TestAuthorizationRequest& WithPolicyNamesToAdd(PolicyNamesToAddT&& value) { SetPolicyNamesToAdd(std::forward<PolicyNamesToAddT>(value)); return *this;}
109 template<typename PolicyNamesToAddT = Aws::String>
110 TestAuthorizationRequest& AddPolicyNamesToAdd(PolicyNamesToAddT&& value) { m_policyNamesToAddHasBeenSet = true; m_policyNamesToAdd.emplace_back(std::forward<PolicyNamesToAddT>(value)); return *this; }
112
114
118 inline const Aws::Vector<Aws::String>& GetPolicyNamesToSkip() const { return m_policyNamesToSkip; }
119 inline bool PolicyNamesToSkipHasBeenSet() const { return m_policyNamesToSkipHasBeenSet; }
120 template<typename PolicyNamesToSkipT = Aws::Vector<Aws::String>>
121 void SetPolicyNamesToSkip(PolicyNamesToSkipT&& value) { m_policyNamesToSkipHasBeenSet = true; m_policyNamesToSkip = std::forward<PolicyNamesToSkipT>(value); }
122 template<typename PolicyNamesToSkipT = Aws::Vector<Aws::String>>
123 TestAuthorizationRequest& WithPolicyNamesToSkip(PolicyNamesToSkipT&& value) { SetPolicyNamesToSkip(std::forward<PolicyNamesToSkipT>(value)); return *this;}
124 template<typename PolicyNamesToSkipT = Aws::String>
125 TestAuthorizationRequest& AddPolicyNamesToSkip(PolicyNamesToSkipT&& value) { m_policyNamesToSkipHasBeenSet = true; m_policyNamesToSkip.emplace_back(std::forward<PolicyNamesToSkipT>(value)); return *this; }
127 private:
128
129 Aws::String m_principal;
130 bool m_principalHasBeenSet = false;
131
132 Aws::String m_cognitoIdentityPoolId;
133 bool m_cognitoIdentityPoolIdHasBeenSet = false;
134
135 Aws::Vector<AuthInfo> m_authInfos;
136 bool m_authInfosHasBeenSet = false;
137
138 Aws::String m_clientId;
139 bool m_clientIdHasBeenSet = false;
140
141 Aws::Vector<Aws::String> m_policyNamesToAdd;
142 bool m_policyNamesToAddHasBeenSet = false;
143
144 Aws::Vector<Aws::String> m_policyNamesToSkip;
145 bool m_policyNamesToSkipHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace IoT
150} // namespace Aws
void SetPolicyNamesToSkip(PolicyNamesToSkipT &&value)
TestAuthorizationRequest & WithPolicyNamesToSkip(PolicyNamesToSkipT &&value)
virtual const char * GetServiceRequestName() const override
TestAuthorizationRequest & WithAuthInfos(AuthInfosT &&value)
TestAuthorizationRequest & WithPolicyNamesToAdd(PolicyNamesToAddT &&value)
const Aws::Vector< AuthInfo > & GetAuthInfos() const
TestAuthorizationRequest & WithCognitoIdentityPoolId(CognitoIdentityPoolIdT &&value)
TestAuthorizationRequest & AddPolicyNamesToSkip(PolicyNamesToSkipT &&value)
const Aws::Vector< Aws::String > & GetPolicyNamesToSkip() const
TestAuthorizationRequest & WithClientId(ClientIdT &&value)
AWS_IOT_API TestAuthorizationRequest()=default
AWS_IOT_API Aws::String SerializePayload() const override
TestAuthorizationRequest & WithPrincipal(PrincipalT &&value)
TestAuthorizationRequest & AddPolicyNamesToAdd(PolicyNamesToAddT &&value)
const Aws::Vector< Aws::String > & GetPolicyNamesToAdd() const
TestAuthorizationRequest & AddAuthInfos(AuthInfosT &&value)
void SetCognitoIdentityPoolId(CognitoIdentityPoolIdT &&value)
void SetPolicyNamesToAdd(PolicyNamesToAddT &&value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector