AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListAttachedPoliciesRequest.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 ListAttachedPoliciesRequest() = 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 "ListAttachedPolicies"; }
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
50 inline const Aws::String& GetTarget() const { return m_target; }
51 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
52 template<typename TargetT = Aws::String>
53 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
54 template<typename TargetT = Aws::String>
55 ListAttachedPoliciesRequest& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
57
59
62 inline bool GetRecursive() const { return m_recursive; }
63 inline bool RecursiveHasBeenSet() const { return m_recursiveHasBeenSet; }
64 inline void SetRecursive(bool value) { m_recursiveHasBeenSet = true; m_recursive = value; }
65 inline ListAttachedPoliciesRequest& WithRecursive(bool value) { SetRecursive(value); return *this;}
67
69
72 inline const Aws::String& GetMarker() const { return m_marker; }
73 inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
74 template<typename MarkerT = Aws::String>
75 void SetMarker(MarkerT&& value) { m_markerHasBeenSet = true; m_marker = std::forward<MarkerT>(value); }
76 template<typename MarkerT = Aws::String>
77 ListAttachedPoliciesRequest& WithMarker(MarkerT&& value) { SetMarker(std::forward<MarkerT>(value)); return *this;}
79
81
84 inline int GetPageSize() const { return m_pageSize; }
85 inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
86 inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
87 inline ListAttachedPoliciesRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
89 private:
90
91 Aws::String m_target;
92 bool m_targetHasBeenSet = false;
93
94 bool m_recursive{false};
95 bool m_recursiveHasBeenSet = false;
96
97 Aws::String m_marker;
98 bool m_markerHasBeenSet = false;
99
100 int m_pageSize{0};
101 bool m_pageSizeHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace IoT
106} // namespace Aws
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_IOT_API ListAttachedPoliciesRequest()=default
ListAttachedPoliciesRequest & WithRecursive(bool value)
ListAttachedPoliciesRequest & WithPageSize(int value)
AWS_IOT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ListAttachedPoliciesRequest & WithTarget(TargetT &&value)
ListAttachedPoliciesRequest & WithMarker(MarkerT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String