AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListMitigationActionsRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/model/MitigationActionType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace IoT
20{
21namespace 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_IOT_API Aws::String SerializePayload() const override;
38
39 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
47 inline const MitigationActionType& GetActionType() const{ return m_actionType; }
48 inline bool ActionTypeHasBeenSet() const { return m_actionTypeHasBeenSet; }
49 inline void SetActionType(const MitigationActionType& value) { m_actionTypeHasBeenSet = true; m_actionType = value; }
50 inline void SetActionType(MitigationActionType&& value) { m_actionTypeHasBeenSet = true; m_actionType = std::move(value); }
52 inline ListMitigationActionsRequest& WithActionType(MitigationActionType&& value) { SetActionType(std::move(value)); return *this;}
54
56
59 inline int GetMaxResults() const{ return m_maxResults; }
60 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
61 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
62 inline ListMitigationActionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
64
66
69 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
70 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
71 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
72 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
73 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
74 inline ListMitigationActionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
75 inline ListMitigationActionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
76 inline ListMitigationActionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
78 private:
79
80 MitigationActionType m_actionType;
81 bool m_actionTypeHasBeenSet = false;
82
83 int m_maxResults;
84 bool m_maxResultsHasBeenSet = false;
85
86 Aws::String m_nextToken;
87 bool m_nextTokenHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace IoT
92} // namespace Aws
void SetActionType(const MitigationActionType &value)
AWS_IOT_API Aws::String SerializePayload() const override
ListMitigationActionsRequest & WithNextToken(const char *value)
virtual const char * GetServiceRequestName() const override
ListMitigationActionsRequest & WithActionType(MitigationActionType &&value)
ListMitigationActionsRequest & WithNextToken(const Aws::String &value)
ListMitigationActionsRequest & WithActionType(const MitigationActionType &value)
ListMitigationActionsRequest & WithMaxResults(int value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListMitigationActionsRequest & WithNextToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String