AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
52 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
53 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
54 inline GetEffectivePoliciesRequest& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
55 inline GetEffectivePoliciesRequest& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
56 inline GetEffectivePoliciesRequest& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
58
60
63 inline const Aws::String& GetCognitoIdentityPoolId() const{ return m_cognitoIdentityPoolId; }
64 inline bool CognitoIdentityPoolIdHasBeenSet() const { return m_cognitoIdentityPoolIdHasBeenSet; }
65 inline void SetCognitoIdentityPoolId(const Aws::String& value) { m_cognitoIdentityPoolIdHasBeenSet = true; m_cognitoIdentityPoolId = value; }
66 inline void SetCognitoIdentityPoolId(Aws::String&& value) { m_cognitoIdentityPoolIdHasBeenSet = true; m_cognitoIdentityPoolId = std::move(value); }
67 inline void SetCognitoIdentityPoolId(const char* value) { m_cognitoIdentityPoolIdHasBeenSet = true; m_cognitoIdentityPoolId.assign(value); }
70 inline GetEffectivePoliciesRequest& WithCognitoIdentityPoolId(const char* value) { SetCognitoIdentityPoolId(value); return *this;}
72
74
77 inline const Aws::String& GetThingName() const{ return m_thingName; }
78 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
79 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
80 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
81 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
82 inline GetEffectivePoliciesRequest& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
83 inline GetEffectivePoliciesRequest& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
84 inline GetEffectivePoliciesRequest& WithThingName(const char* value) { SetThingName(value); return *this;}
86 private:
87
88 Aws::String m_principal;
89 bool m_principalHasBeenSet = false;
90
91 Aws::String m_cognitoIdentityPoolId;
92 bool m_cognitoIdentityPoolIdHasBeenSet = false;
93
94 Aws::String m_thingName;
95 bool m_thingNameHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace IoT
100} // namespace Aws
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetEffectivePoliciesRequest & WithThingName(const char *value)
GetEffectivePoliciesRequest & WithCognitoIdentityPoolId(const char *value)
GetEffectivePoliciesRequest & WithPrincipal(const char *value)
GetEffectivePoliciesRequest & WithThingName(Aws::String &&value)
GetEffectivePoliciesRequest & WithPrincipal(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GetEffectivePoliciesRequest & WithThingName(const Aws::String &value)
GetEffectivePoliciesRequest & WithPrincipal(Aws::String &&value)
GetEffectivePoliciesRequest & WithCognitoIdentityPoolId(Aws::String &&value)
GetEffectivePoliciesRequest & WithCognitoIdentityPoolId(const Aws::String &value)
AWS_IOT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String