AWS SDK for C++  1.9.108
AWS SDK for C++
GetEffectivePoliciesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoT
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "GetEffectivePolicies"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
48  inline const Aws::String& GetPrincipal() const{ return m_principal; }
49 
57  inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
58 
66  inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
67 
75  inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
76 
84  inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
85 
93  inline GetEffectivePoliciesRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
94 
102  inline GetEffectivePoliciesRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
103 
111  inline GetEffectivePoliciesRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
112 
113 
117  inline const Aws::String& GetCognitoIdentityPoolId() const{ return m_cognitoIdentityPoolId; }
118 
122  inline bool CognitoIdentityPoolIdHasBeenSet() const { return m_cognitoIdentityPoolIdHasBeenSet; }
123 
127  inline void SetCognitoIdentityPoolId(const Aws::String& value) { m_cognitoIdentityPoolIdHasBeenSet = true; m_cognitoIdentityPoolId = value; }
128 
132  inline void SetCognitoIdentityPoolId(Aws::String&& value) { m_cognitoIdentityPoolIdHasBeenSet = true; m_cognitoIdentityPoolId = std::move(value); }
133 
137  inline void SetCognitoIdentityPoolId(const char* value) { m_cognitoIdentityPoolIdHasBeenSet = true; m_cognitoIdentityPoolId.assign(value); }
138 
142  inline GetEffectivePoliciesRequest& WithCognitoIdentityPoolId(const Aws::String& value) { SetCognitoIdentityPoolId(value); return *this;}
143 
147  inline GetEffectivePoliciesRequest& WithCognitoIdentityPoolId(Aws::String&& value) { SetCognitoIdentityPoolId(std::move(value)); return *this;}
148 
152  inline GetEffectivePoliciesRequest& WithCognitoIdentityPoolId(const char* value) { SetCognitoIdentityPoolId(value); return *this;}
153 
154 
158  inline const Aws::String& GetThingName() const{ return m_thingName; }
159 
163  inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
164 
168  inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
169 
173  inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
174 
178  inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
179 
183  inline GetEffectivePoliciesRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
184 
188  inline GetEffectivePoliciesRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
189 
193  inline GetEffectivePoliciesRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
194 
195  private:
196 
197  Aws::String m_principal;
198  bool m_principalHasBeenSet;
199 
200  Aws::String m_cognitoIdentityPoolId;
201  bool m_cognitoIdentityPoolIdHasBeenSet;
202 
203  Aws::String m_thingName;
204  bool m_thingNameHasBeenSet;
205  };
206 
207 } // namespace Model
208 } // namespace IoT
209 } // namespace Aws
Aws::IoT::Model::GetEffectivePoliciesRequest::SetCognitoIdentityPoolId
void SetCognitoIdentityPoolId(const char *value)
Definition: GetEffectivePoliciesRequest.h:137
Aws::IoT::Model::GetEffectivePoliciesRequest::SetPrincipal
void SetPrincipal(Aws::String &&value)
Definition: GetEffectivePoliciesRequest.h:75
Aws::IoT::Model::GetEffectivePoliciesRequest::WithCognitoIdentityPoolId
GetEffectivePoliciesRequest & WithCognitoIdentityPoolId(Aws::String &&value)
Definition: GetEffectivePoliciesRequest.h:147
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::GetEffectivePoliciesRequest::GetPrincipal
const Aws::String & GetPrincipal() const
Definition: GetEffectivePoliciesRequest.h:48
Aws::IoT::Model::GetEffectivePoliciesRequest::WithPrincipal
GetEffectivePoliciesRequest & WithPrincipal(Aws::String &&value)
Definition: GetEffectivePoliciesRequest.h:102
Aws::IoT::Model::GetEffectivePoliciesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::GetEffectivePoliciesRequest::WithThingName
GetEffectivePoliciesRequest & WithThingName(Aws::String &&value)
Definition: GetEffectivePoliciesRequest.h:188
Aws::IoT::Model::GetEffectivePoliciesRequest::WithThingName
GetEffectivePoliciesRequest & WithThingName(const Aws::String &value)
Definition: GetEffectivePoliciesRequest.h:183
Aws::IoT::Model::GetEffectivePoliciesRequest::CognitoIdentityPoolIdHasBeenSet
bool CognitoIdentityPoolIdHasBeenSet() const
Definition: GetEffectivePoliciesRequest.h:122
Aws::IoT::Model::GetEffectivePoliciesRequest::WithPrincipal
GetEffectivePoliciesRequest & WithPrincipal(const Aws::String &value)
Definition: GetEffectivePoliciesRequest.h:93
Aws::IoT::Model::GetEffectivePoliciesRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::GetEffectivePoliciesRequest::SetThingName
void SetThingName(const char *value)
Definition: GetEffectivePoliciesRequest.h:178
Aws::IoT::Model::GetEffectivePoliciesRequest::SetPrincipal
void SetPrincipal(const Aws::String &value)
Definition: GetEffectivePoliciesRequest.h:66
Aws::IoT::Model::GetEffectivePoliciesRequest::SetPrincipal
void SetPrincipal(const char *value)
Definition: GetEffectivePoliciesRequest.h:84
Aws::IoT::Model::GetEffectivePoliciesRequest
Definition: GetEffectivePoliciesRequest.h:26
Aws::IoT::Model::GetEffectivePoliciesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetEffectivePoliciesRequest.h:34
Aws::IoT::Model::GetEffectivePoliciesRequest::SetThingName
void SetThingName(const Aws::String &value)
Definition: GetEffectivePoliciesRequest.h:168
Aws::IoT::Model::GetEffectivePoliciesRequest::GetEffectivePoliciesRequest
GetEffectivePoliciesRequest()
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::GetEffectivePoliciesRequest::WithThingName
GetEffectivePoliciesRequest & WithThingName(const char *value)
Definition: GetEffectivePoliciesRequest.h:193
Aws::IoT::Model::GetEffectivePoliciesRequest::SetThingName
void SetThingName(Aws::String &&value)
Definition: GetEffectivePoliciesRequest.h:173
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::GetEffectivePoliciesRequest::SetCognitoIdentityPoolId
void SetCognitoIdentityPoolId(const Aws::String &value)
Definition: GetEffectivePoliciesRequest.h:127
Aws::IoT::Model::GetEffectivePoliciesRequest::SetCognitoIdentityPoolId
void SetCognitoIdentityPoolId(Aws::String &&value)
Definition: GetEffectivePoliciesRequest.h:132
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::GetEffectivePoliciesRequest::WithCognitoIdentityPoolId
GetEffectivePoliciesRequest & WithCognitoIdentityPoolId(const char *value)
Definition: GetEffectivePoliciesRequest.h:152
Aws::IoT::Model::GetEffectivePoliciesRequest::WithPrincipal
GetEffectivePoliciesRequest & WithPrincipal(const char *value)
Definition: GetEffectivePoliciesRequest.h:111
IoTRequest.h
Aws::IoT::Model::GetEffectivePoliciesRequest::GetCognitoIdentityPoolId
const Aws::String & GetCognitoIdentityPoolId() const
Definition: GetEffectivePoliciesRequest.h:117
Aws::IoT::Model::GetEffectivePoliciesRequest::PrincipalHasBeenSet
bool PrincipalHasBeenSet() const
Definition: GetEffectivePoliciesRequest.h:57
Aws::IoT::Model::GetEffectivePoliciesRequest::WithCognitoIdentityPoolId
GetEffectivePoliciesRequest & WithCognitoIdentityPoolId(const Aws::String &value)
Definition: GetEffectivePoliciesRequest.h:142
IoT_EXPORTS.h
Aws::IoT::Model::GetEffectivePoliciesRequest::GetThingName
const Aws::String & GetThingName() const
Definition: GetEffectivePoliciesRequest.h:158
Aws::IoT::Model::GetEffectivePoliciesRequest::ThingNameHasBeenSet
bool ThingNameHasBeenSet() const
Definition: GetEffectivePoliciesRequest.h:163