AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
GetEffectivePoliciesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace IoT {
18namespace Model {
19
23 public:
24 AWS_IOT_API GetEffectivePoliciesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetEffectivePolicies"; }
31
32 AWS_IOT_API Aws::String SerializePayload() const override;
33
34 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
44 inline const Aws::String& GetPrincipal() const { return m_principal; }
45 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
46 template <typename PrincipalT = Aws::String>
47 void SetPrincipal(PrincipalT&& value) {
48 m_principalHasBeenSet = true;
49 m_principal = std::forward<PrincipalT>(value);
50 }
51 template <typename PrincipalT = Aws::String>
53 SetPrincipal(std::forward<PrincipalT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetCognitoIdentityPoolId() const { return m_cognitoIdentityPoolId; }
63 inline bool CognitoIdentityPoolIdHasBeenSet() const { return m_cognitoIdentityPoolIdHasBeenSet; }
64 template <typename CognitoIdentityPoolIdT = Aws::String>
65 void SetCognitoIdentityPoolId(CognitoIdentityPoolIdT&& value) {
66 m_cognitoIdentityPoolIdHasBeenSet = true;
67 m_cognitoIdentityPoolId = std::forward<CognitoIdentityPoolIdT>(value);
68 }
69 template <typename CognitoIdentityPoolIdT = Aws::String>
70 GetEffectivePoliciesRequest& WithCognitoIdentityPoolId(CognitoIdentityPoolIdT&& value) {
71 SetCognitoIdentityPoolId(std::forward<CognitoIdentityPoolIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetThingName() const { return m_thingName; }
81 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
82 template <typename ThingNameT = Aws::String>
83 void SetThingName(ThingNameT&& value) {
84 m_thingNameHasBeenSet = true;
85 m_thingName = std::forward<ThingNameT>(value);
86 }
87 template <typename ThingNameT = Aws::String>
89 SetThingName(std::forward<ThingNameT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_principal;
95
96 Aws::String m_cognitoIdentityPoolId;
97
98 Aws::String m_thingName;
99 bool m_principalHasBeenSet = false;
100 bool m_cognitoIdentityPoolIdHasBeenSet = false;
101 bool m_thingNameHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace IoT
106} // 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