AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
54 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
55 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
56 inline TestAuthorizationRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
57 inline TestAuthorizationRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
58 inline TestAuthorizationRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
60
62
65 inline const Aws::String& GetCognitoIdentityPoolId() const{ return m_cognitoIdentityPoolId; }
66 inline bool CognitoIdentityPoolIdHasBeenSet() const { return m_cognitoIdentityPoolIdHasBeenSet; }
67 inline void SetCognitoIdentityPoolId(const Aws::String& value) { m_cognitoIdentityPoolIdHasBeenSet = true; m_cognitoIdentityPoolId = value; }
68 inline void SetCognitoIdentityPoolId(Aws::String&& value) { m_cognitoIdentityPoolIdHasBeenSet = true; m_cognitoIdentityPoolId = std::move(value); }
69 inline void SetCognitoIdentityPoolId(const char* value) { m_cognitoIdentityPoolIdHasBeenSet = true; m_cognitoIdentityPoolId.assign(value); }
72 inline TestAuthorizationRequest& WithCognitoIdentityPoolId(const char* value) { SetCognitoIdentityPoolId(value); return *this;}
74
76
80 inline const Aws::Vector<AuthInfo>& GetAuthInfos() const{ return m_authInfos; }
81 inline bool AuthInfosHasBeenSet() const { return m_authInfosHasBeenSet; }
82 inline void SetAuthInfos(const Aws::Vector<AuthInfo>& value) { m_authInfosHasBeenSet = true; m_authInfos = value; }
83 inline void SetAuthInfos(Aws::Vector<AuthInfo>&& value) { m_authInfosHasBeenSet = true; m_authInfos = std::move(value); }
84 inline TestAuthorizationRequest& WithAuthInfos(const Aws::Vector<AuthInfo>& value) { SetAuthInfos(value); return *this;}
85 inline TestAuthorizationRequest& WithAuthInfos(Aws::Vector<AuthInfo>&& value) { SetAuthInfos(std::move(value)); return *this;}
86 inline TestAuthorizationRequest& AddAuthInfos(const AuthInfo& value) { m_authInfosHasBeenSet = true; m_authInfos.push_back(value); return *this; }
87 inline TestAuthorizationRequest& AddAuthInfos(AuthInfo&& value) { m_authInfosHasBeenSet = true; m_authInfos.push_back(std::move(value)); return *this; }
89
91
94 inline const Aws::String& GetClientId() const{ return m_clientId; }
95 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
96 inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
97 inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
98 inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
99 inline TestAuthorizationRequest& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
100 inline TestAuthorizationRequest& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
101 inline TestAuthorizationRequest& WithClientId(const char* value) { SetClientId(value); return *this;}
103
105
109 inline const Aws::Vector<Aws::String>& GetPolicyNamesToAdd() const{ return m_policyNamesToAdd; }
110 inline bool PolicyNamesToAddHasBeenSet() const { return m_policyNamesToAddHasBeenSet; }
111 inline void SetPolicyNamesToAdd(const Aws::Vector<Aws::String>& value) { m_policyNamesToAddHasBeenSet = true; m_policyNamesToAdd = value; }
112 inline void SetPolicyNamesToAdd(Aws::Vector<Aws::String>&& value) { m_policyNamesToAddHasBeenSet = true; m_policyNamesToAdd = std::move(value); }
115 inline TestAuthorizationRequest& AddPolicyNamesToAdd(const Aws::String& value) { m_policyNamesToAddHasBeenSet = true; m_policyNamesToAdd.push_back(value); return *this; }
116 inline TestAuthorizationRequest& AddPolicyNamesToAdd(Aws::String&& value) { m_policyNamesToAddHasBeenSet = true; m_policyNamesToAdd.push_back(std::move(value)); return *this; }
117 inline TestAuthorizationRequest& AddPolicyNamesToAdd(const char* value) { m_policyNamesToAddHasBeenSet = true; m_policyNamesToAdd.push_back(value); return *this; }
119
121
125 inline const Aws::Vector<Aws::String>& GetPolicyNamesToSkip() const{ return m_policyNamesToSkip; }
126 inline bool PolicyNamesToSkipHasBeenSet() const { return m_policyNamesToSkipHasBeenSet; }
127 inline void SetPolicyNamesToSkip(const Aws::Vector<Aws::String>& value) { m_policyNamesToSkipHasBeenSet = true; m_policyNamesToSkip = value; }
128 inline void SetPolicyNamesToSkip(Aws::Vector<Aws::String>&& value) { m_policyNamesToSkipHasBeenSet = true; m_policyNamesToSkip = std::move(value); }
131 inline TestAuthorizationRequest& AddPolicyNamesToSkip(const Aws::String& value) { m_policyNamesToSkipHasBeenSet = true; m_policyNamesToSkip.push_back(value); return *this; }
132 inline TestAuthorizationRequest& AddPolicyNamesToSkip(Aws::String&& value) { m_policyNamesToSkipHasBeenSet = true; m_policyNamesToSkip.push_back(std::move(value)); return *this; }
133 inline TestAuthorizationRequest& AddPolicyNamesToSkip(const char* value) { m_policyNamesToSkipHasBeenSet = true; m_policyNamesToSkip.push_back(value); return *this; }
135 private:
136
137 Aws::String m_principal;
138 bool m_principalHasBeenSet = false;
139
140 Aws::String m_cognitoIdentityPoolId;
141 bool m_cognitoIdentityPoolIdHasBeenSet = false;
142
143 Aws::Vector<AuthInfo> m_authInfos;
144 bool m_authInfosHasBeenSet = false;
145
146 Aws::String m_clientId;
147 bool m_clientIdHasBeenSet = false;
148
149 Aws::Vector<Aws::String> m_policyNamesToAdd;
150 bool m_policyNamesToAddHasBeenSet = false;
151
152 Aws::Vector<Aws::String> m_policyNamesToSkip;
153 bool m_policyNamesToSkipHasBeenSet = false;
154 };
155
156} // namespace Model
157} // namespace IoT
158} // namespace Aws
TestAuthorizationRequest & WithCognitoIdentityPoolId(const Aws::String &value)
void SetAuthInfos(Aws::Vector< AuthInfo > &&value)
TestAuthorizationRequest & AddAuthInfos(AuthInfo &&value)
TestAuthorizationRequest & WithPrincipal(const char *value)
TestAuthorizationRequest & WithPolicyNamesToSkip(const Aws::Vector< Aws::String > &value)
void SetPolicyNamesToAdd(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
TestAuthorizationRequest & WithPrincipal(const Aws::String &value)
const Aws::Vector< AuthInfo > & GetAuthInfos() const
TestAuthorizationRequest & AddPolicyNamesToSkip(const char *value)
TestAuthorizationRequest & WithPolicyNamesToAdd(const Aws::Vector< Aws::String > &value)
TestAuthorizationRequest & WithClientId(Aws::String &&value)
TestAuthorizationRequest & WithCognitoIdentityPoolId(Aws::String &&value)
TestAuthorizationRequest & AddPolicyNamesToSkip(const Aws::String &value)
const Aws::Vector< Aws::String > & GetPolicyNamesToSkip() const
TestAuthorizationRequest & WithClientId(const char *value)
void SetPolicyNamesToSkip(Aws::Vector< Aws::String > &&value)
TestAuthorizationRequest & AddPolicyNamesToAdd(const Aws::String &value)
TestAuthorizationRequest & AddPolicyNamesToSkip(Aws::String &&value)
TestAuthorizationRequest & WithPolicyNamesToAdd(Aws::Vector< Aws::String > &&value)
void SetPolicyNamesToSkip(const Aws::Vector< Aws::String > &value)
AWS_IOT_API Aws::String SerializePayload() const override
TestAuthorizationRequest & WithCognitoIdentityPoolId(const char *value)
void SetAuthInfos(const Aws::Vector< AuthInfo > &value)
TestAuthorizationRequest & WithPolicyNamesToSkip(Aws::Vector< Aws::String > &&value)
TestAuthorizationRequest & WithAuthInfos(Aws::Vector< AuthInfo > &&value)
TestAuthorizationRequest & WithAuthInfos(const Aws::Vector< AuthInfo > &value)
void SetCognitoIdentityPoolId(const Aws::String &value)
void SetPolicyNamesToAdd(const Aws::Vector< Aws::String > &value)
TestAuthorizationRequest & AddAuthInfos(const AuthInfo &value)
TestAuthorizationRequest & AddPolicyNamesToAdd(const char *value)
TestAuthorizationRequest & AddPolicyNamesToAdd(Aws::String &&value)
TestAuthorizationRequest & WithPrincipal(Aws::String &&value)
const Aws::Vector< Aws::String > & GetPolicyNamesToAdd() const
TestAuthorizationRequest & WithClientId(const Aws::String &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