AWS SDK for C++  1.9.125
AWS SDK for C++
ListTargetsForPolicyRequest.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 "ListTargetsForPolicy"; }
35 
36  Aws::String SerializePayload() const override;
37 
38  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39 
40 
44  inline const Aws::String& GetPolicyName() const{ return m_policyName; }
45 
49  inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
50 
54  inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
55 
59  inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
60 
64  inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
65 
69  inline ListTargetsForPolicyRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
70 
74  inline ListTargetsForPolicyRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
75 
79  inline ListTargetsForPolicyRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
80 
81 
85  inline const Aws::String& GetMarker() const{ return m_marker; }
86 
90  inline bool MarkerHasBeenSet() const { return m_markerHasBeenSet; }
91 
95  inline void SetMarker(const Aws::String& value) { m_markerHasBeenSet = true; m_marker = value; }
96 
100  inline void SetMarker(Aws::String&& value) { m_markerHasBeenSet = true; m_marker = std::move(value); }
101 
105  inline void SetMarker(const char* value) { m_markerHasBeenSet = true; m_marker.assign(value); }
106 
110  inline ListTargetsForPolicyRequest& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
111 
115  inline ListTargetsForPolicyRequest& WithMarker(Aws::String&& value) { SetMarker(std::move(value)); return *this;}
116 
120  inline ListTargetsForPolicyRequest& WithMarker(const char* value) { SetMarker(value); return *this;}
121 
122 
126  inline int GetPageSize() const{ return m_pageSize; }
127 
131  inline bool PageSizeHasBeenSet() const { return m_pageSizeHasBeenSet; }
132 
136  inline void SetPageSize(int value) { m_pageSizeHasBeenSet = true; m_pageSize = value; }
137 
141  inline ListTargetsForPolicyRequest& WithPageSize(int value) { SetPageSize(value); return *this;}
142 
143  private:
144 
145  Aws::String m_policyName;
146  bool m_policyNameHasBeenSet;
147 
148  Aws::String m_marker;
149  bool m_markerHasBeenSet;
150 
151  int m_pageSize;
152  bool m_pageSizeHasBeenSet;
153  };
154 
155 } // namespace Model
156 } // namespace IoT
157 } // namespace Aws
Aws::IoT::Model::ListTargetsForPolicyRequest::MarkerHasBeenSet
bool MarkerHasBeenSet() const
Definition: ListTargetsForPolicyRequest.h:90
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListTargetsForPolicyRequest::SetMarker
void SetMarker(Aws::String &&value)
Definition: ListTargetsForPolicyRequest.h:100
Aws::IoT::Model::ListTargetsForPolicyRequest::GetPolicyName
const Aws::String & GetPolicyName() const
Definition: ListTargetsForPolicyRequest.h:44
Aws::IoT::Model::ListTargetsForPolicyRequest::PolicyNameHasBeenSet
bool PolicyNameHasBeenSet() const
Definition: ListTargetsForPolicyRequest.h:49
Aws::IoT::Model::ListTargetsForPolicyRequest::WithPolicyName
ListTargetsForPolicyRequest & WithPolicyName(Aws::String &&value)
Definition: ListTargetsForPolicyRequest.h:74
Aws::IoT::Model::ListTargetsForPolicyRequest::SetPolicyName
void SetPolicyName(const char *value)
Definition: ListTargetsForPolicyRequest.h:64
Aws::IoT::Model::ListTargetsForPolicyRequest::SetMarker
void SetMarker(const Aws::String &value)
Definition: ListTargetsForPolicyRequest.h:95
Aws::IoT::Model::ListTargetsForPolicyRequest
Definition: ListTargetsForPolicyRequest.h:26
Aws::IoT::Model::ListTargetsForPolicyRequest::WithPageSize
ListTargetsForPolicyRequest & WithPageSize(int value)
Definition: ListTargetsForPolicyRequest.h:141
Aws::IoT::Model::ListTargetsForPolicyRequest::SetPageSize
void SetPageSize(int value)
Definition: ListTargetsForPolicyRequest.h:136
Aws::IoT::Model::ListTargetsForPolicyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListTargetsForPolicyRequest.h:34
Aws::IoT::Model::ListTargetsForPolicyRequest::SetPolicyName
void SetPolicyName(Aws::String &&value)
Definition: ListTargetsForPolicyRequest.h:59
Aws::IoT::Model::ListTargetsForPolicyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::ListTargetsForPolicyRequest::ListTargetsForPolicyRequest
ListTargetsForPolicyRequest()
Aws::IoT::Model::ListTargetsForPolicyRequest::WithPolicyName
ListTargetsForPolicyRequest & WithPolicyName(const char *value)
Definition: ListTargetsForPolicyRequest.h:79
AWSString.h
Aws::IoT::Model::ListTargetsForPolicyRequest::PageSizeHasBeenSet
bool PageSizeHasBeenSet() const
Definition: ListTargetsForPolicyRequest.h:131
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListTargetsForPolicyRequest::WithMarker
ListTargetsForPolicyRequest & WithMarker(Aws::String &&value)
Definition: ListTargetsForPolicyRequest.h:115
Aws::IoT::Model::ListTargetsForPolicyRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListTargetsForPolicyRequest::WithMarker
ListTargetsForPolicyRequest & WithMarker(const char *value)
Definition: ListTargetsForPolicyRequest.h:120
Aws::IoT::Model::ListTargetsForPolicyRequest::GetPageSize
int GetPageSize() const
Definition: ListTargetsForPolicyRequest.h:126
Aws::IoT::Model::ListTargetsForPolicyRequest::WithPolicyName
ListTargetsForPolicyRequest & WithPolicyName(const Aws::String &value)
Definition: ListTargetsForPolicyRequest.h:69
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::ListTargetsForPolicyRequest::WithMarker
ListTargetsForPolicyRequest & WithMarker(const Aws::String &value)
Definition: ListTargetsForPolicyRequest.h:110
IoTRequest.h
Aws::IoT::Model::ListTargetsForPolicyRequest::GetMarker
const Aws::String & GetMarker() const
Definition: ListTargetsForPolicyRequest.h:85
Aws::IoT::Model::ListTargetsForPolicyRequest::SetMarker
void SetMarker(const char *value)
Definition: ListTargetsForPolicyRequest.h:105
Aws::IoT::Model::ListTargetsForPolicyRequest::SetPolicyName
void SetPolicyName(const Aws::String &value)
Definition: ListTargetsForPolicyRequest.h:54
IoT_EXPORTS.h