AWS SDK for C++

AWS SDK for C++ Version 1.11.834

Loading...
Searching...
No Matches
ListMicrovmsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda-microvms/LambdaMicrovmsRequest.h>
9#include <aws/lambda-microvms/LambdaMicrovms_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace LambdaMicrovms {
18namespace Model {
19
23 public:
24 AWS_LAMBDAMICROVMS_API ListMicrovmsRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListMicrovms"; }
31
32 AWS_LAMBDAMICROVMS_API Aws::String SerializePayload() const override;
33
34 AWS_LAMBDAMICROVMS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
35
37
40 inline int GetMaxResults() const { return m_maxResults; }
41 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
42 inline void SetMaxResults(int value) {
43 m_maxResultsHasBeenSet = true;
44 m_maxResults = value;
45 }
47 SetMaxResults(value);
48 return *this;
49 }
51
53
57 inline const Aws::String& GetNextToken() const { return m_nextToken; }
58 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
59 template <typename NextTokenT = Aws::String>
60 void SetNextToken(NextTokenT&& value) {
61 m_nextTokenHasBeenSet = true;
62 m_nextToken = std::forward<NextTokenT>(value);
63 }
64 template <typename NextTokenT = Aws::String>
65 ListMicrovmsRequest& WithNextToken(NextTokenT&& value) {
66 SetNextToken(std::forward<NextTokenT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetImageIdentifier() const { return m_imageIdentifier; }
76 inline bool ImageIdentifierHasBeenSet() const { return m_imageIdentifierHasBeenSet; }
77 template <typename ImageIdentifierT = Aws::String>
78 void SetImageIdentifier(ImageIdentifierT&& value) {
79 m_imageIdentifierHasBeenSet = true;
80 m_imageIdentifier = std::forward<ImageIdentifierT>(value);
81 }
82 template <typename ImageIdentifierT = Aws::String>
83 ListMicrovmsRequest& WithImageIdentifier(ImageIdentifierT&& value) {
84 SetImageIdentifier(std::forward<ImageIdentifierT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetImageVersion() const { return m_imageVersion; }
95 inline bool ImageVersionHasBeenSet() const { return m_imageVersionHasBeenSet; }
96 template <typename ImageVersionT = Aws::String>
97 void SetImageVersion(ImageVersionT&& value) {
98 m_imageVersionHasBeenSet = true;
99 m_imageVersion = std::forward<ImageVersionT>(value);
100 }
101 template <typename ImageVersionT = Aws::String>
102 ListMicrovmsRequest& WithImageVersion(ImageVersionT&& value) {
103 SetImageVersion(std::forward<ImageVersionT>(value));
104 return *this;
105 }
107 private:
108 int m_maxResults{0};
109
110 Aws::String m_nextToken;
111
112 Aws::String m_imageIdentifier;
113
114 Aws::String m_imageVersion;
115 bool m_maxResultsHasBeenSet = false;
116 bool m_nextTokenHasBeenSet = false;
117 bool m_imageIdentifierHasBeenSet = false;
118 bool m_imageVersionHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace LambdaMicrovms
123} // namespace Aws
ListMicrovmsRequest & WithMaxResults(int value)
ListMicrovmsRequest & WithImageIdentifier(ImageIdentifierT &&value)
ListMicrovmsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_LAMBDAMICROVMS_API ListMicrovmsRequest()=default
ListMicrovmsRequest & WithImageVersion(ImageVersionT &&value)
AWS_LAMBDAMICROVMS_API Aws::String SerializePayload() const override
AWS_LAMBDAMICROVMS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String