AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetEffectivePoliciesRequest.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 <utility>
11
12namespace Aws
13{
14namespace Http
15{
16 class URI;
17} //namespace Http
18namespace IoT
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOT_API GetEffectivePoliciesRequest() = default;
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_IOT_API Aws::String SerializePayload() const override;
37
38 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
40
42
49 inline const Aws::String& GetPrincipal() const { return m_principal; }
50 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
51 template<typename PrincipalT = Aws::String>
52 void SetPrincipal(PrincipalT&& value) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
53 template<typename PrincipalT = Aws::String>
54 GetEffectivePoliciesRequest& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
56
58
61 inline const Aws::String& GetCognitoIdentityPoolId() const { return m_cognitoIdentityPoolId; }
62 inline bool CognitoIdentityPoolIdHasBeenSet() const { return m_cognitoIdentityPoolIdHasBeenSet; }
63 template<typename CognitoIdentityPoolIdT = Aws::String>
64 void SetCognitoIdentityPoolId(CognitoIdentityPoolIdT&& value) { m_cognitoIdentityPoolIdHasBeenSet = true; m_cognitoIdentityPoolId = std::forward<CognitoIdentityPoolIdT>(value); }
65 template<typename CognitoIdentityPoolIdT = Aws::String>
66 GetEffectivePoliciesRequest& WithCognitoIdentityPoolId(CognitoIdentityPoolIdT&& value) { SetCognitoIdentityPoolId(std::forward<CognitoIdentityPoolIdT>(value)); return *this;}
68
70
73 inline const Aws::String& GetThingName() const { return m_thingName; }
74 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
75 template<typename ThingNameT = Aws::String>
76 void SetThingName(ThingNameT&& value) { m_thingNameHasBeenSet = true; m_thingName = std::forward<ThingNameT>(value); }
77 template<typename ThingNameT = Aws::String>
78 GetEffectivePoliciesRequest& WithThingName(ThingNameT&& value) { SetThingName(std::forward<ThingNameT>(value)); return *this;}
80 private:
81
82 Aws::String m_principal;
83 bool m_principalHasBeenSet = false;
84
85 Aws::String m_cognitoIdentityPoolId;
86 bool m_cognitoIdentityPoolIdHasBeenSet = false;
87
88 Aws::String m_thingName;
89 bool m_thingNameHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace IoT
94} // namespace Aws
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetEffectivePoliciesRequest & WithPrincipal(PrincipalT &&value)
GetEffectivePoliciesRequest & WithThingName(ThingNameT &&value)
virtual const char * GetServiceRequestName() const override
GetEffectivePoliciesRequest & WithCognitoIdentityPoolId(CognitoIdentityPoolIdT &&value)
void SetCognitoIdentityPoolId(CognitoIdentityPoolIdT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
AWS_IOT_API GetEffectivePoliciesRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String