AWS SDK for C++  1.9.132
AWS SDK for C++
ListMitigationActionsRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace IoT
20 {
21 namespace Model
22 {
23 
27  {
28  public:
30 
31  // Service request name is the Operation name which will send this request out,
32  // each operation should has unique request name, so that we can get operation's name from this request.
33  // Note: this is not true for response, multiple operations may have the same response name,
34  // so we can not get operation's name from response.
35  inline virtual const char* GetServiceRequestName() const override { return "ListMitigationActions"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
46  inline const MitigationActionType& GetActionType() const{ return m_actionType; }
47 
52  inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
53 
58  inline void SetActionType(const MitigationActionType& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
59 
64  inline void SetActionType(MitigationActionType&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
65 
70  inline ListMitigationActionsRequest& WithActionType(const MitigationActionType& value) { SetActionType(value); return *this;}
71 
76  inline ListMitigationActionsRequest& WithActionType(MitigationActionType&& value) { SetActionType(std::move(value)); return *this;}
77 
78 
82  inline int GetMaxResults() const{ return m_maxResults; }
83 
87  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
88 
92  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
93 
97  inline ListMitigationActionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
98 
99 
103  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
104 
108  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
109 
113  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
114 
118  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
119 
123  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
124 
128  inline ListMitigationActionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
129 
133  inline ListMitigationActionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
134 
138  inline ListMitigationActionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
139 
140  private:
141 
142  MitigationActionType m_actionType;
143  bool m_actionTypeHasBeenSet;
144 
145  int m_maxResults;
146  bool m_maxResultsHasBeenSet;
147 
148  Aws::String m_nextToken;
149  bool m_nextTokenHasBeenSet;
150  };
151 
152 } // namespace Model
153 } // namespace IoT
154 } // namespace Aws
Aws::IoT::Model::ListMitigationActionsRequest::ActionTypeHasBeenSet
bool ActionTypeHasBeenSet() const
Definition: ListMitigationActionsRequest.h:52
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::ListMitigationActionsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListMitigationActionsRequest.h:113
Aws::IoT::Model::ListMitigationActionsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListMitigationActionsRequest.h:35
Aws::IoT::Model::ListMitigationActionsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListMitigationActionsRequest.h:123
Aws::IoT::Model::ListMitigationActionsRequest::GetActionType
const MitigationActionType & GetActionType() const
Definition: ListMitigationActionsRequest.h:46
Aws::IoT::Model::ListMitigationActionsRequest::WithNextToken
ListMitigationActionsRequest & WithNextToken(const Aws::String &value)
Definition: ListMitigationActionsRequest.h:128
Aws::IoT::Model::ListMitigationActionsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: ListMitigationActionsRequest.h:92
Aws::IoT::Model::ListMitigationActionsRequest::ListMitigationActionsRequest
ListMitigationActionsRequest()
Aws::IoT::Model::ListMitigationActionsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListMitigationActionsRequest.h:118
Aws::IoT::Model::ListMitigationActionsRequest::GetMaxResults
int GetMaxResults() const
Definition: ListMitigationActionsRequest.h:82
Aws::IoT::Model::ListMitigationActionsRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::ListMitigationActionsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListMitigationActionsRequest.h:108
Aws::IoT::Model::ListMitigationActionsRequest
Definition: ListMitigationActionsRequest.h:27
Aws::IoT::Model::ListMitigationActionsRequest::WithNextToken
ListMitigationActionsRequest & WithNextToken(const char *value)
Definition: ListMitigationActionsRequest.h:138
Aws::IoT::Model::ListMitigationActionsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListMitigationActionsRequest.h:103
Aws::IoT::Model::ListMitigationActionsRequest::WithActionType
ListMitigationActionsRequest & WithActionType(const MitigationActionType &value)
Definition: ListMitigationActionsRequest.h:70
AWSString.h
Aws::IoT::Model::ListMitigationActionsRequest::WithMaxResults
ListMitigationActionsRequest & WithMaxResults(int value)
Definition: ListMitigationActionsRequest.h:97
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::ListMitigationActionsRequest::WithActionType
ListMitigationActionsRequest & WithActionType(MitigationActionType &&value)
Definition: ListMitigationActionsRequest.h:76
Aws::IoT::Model::ListMitigationActionsRequest::SetActionType
void SetActionType(const MitigationActionType &value)
Definition: ListMitigationActionsRequest.h:58
Aws::IoT::Model::ListMitigationActionsRequest::WithNextToken
ListMitigationActionsRequest & WithNextToken(Aws::String &&value)
Definition: ListMitigationActionsRequest.h:133
Aws::IoT::Model::ListMitigationActionsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: ListMitigationActionsRequest.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::ListMitigationActionsRequest::SetActionType
void SetActionType(MitigationActionType &&value)
Definition: ListMitigationActionsRequest.h:64
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
MitigationActionType.h
IoTRequest.h
Aws::IoT::Model::MitigationActionType
MitigationActionType
Definition: MitigationActionType.h:17
IoT_EXPORTS.h
Aws::IoT::Model::ListMitigationActionsRequest::SerializePayload
Aws::String SerializePayload() const override