AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListManagedEndpointsRequest.h
1
6#pragma once
7#include <aws/emr-containers/EMRContainers_EXPORTS.h>
8#include <aws/emr-containers/EMRContainersRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/emr-containers/model/EndpointState.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace EMRContainers
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_EMRCONTAINERS_API ListManagedEndpointsRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ListManagedEndpoints"; }
38
39 AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override;
40
41 AWS_EMRCONTAINERS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
48 inline const Aws::String& GetVirtualClusterId() const { return m_virtualClusterId; }
49 inline bool VirtualClusterIdHasBeenSet() const { return m_virtualClusterIdHasBeenSet; }
50 template<typename VirtualClusterIdT = Aws::String>
51 void SetVirtualClusterId(VirtualClusterIdT&& value) { m_virtualClusterIdHasBeenSet = true; m_virtualClusterId = std::forward<VirtualClusterIdT>(value); }
52 template<typename VirtualClusterIdT = Aws::String>
53 ListManagedEndpointsRequest& WithVirtualClusterId(VirtualClusterIdT&& value) { SetVirtualClusterId(std::forward<VirtualClusterIdT>(value)); return *this;}
55
57
60 inline const Aws::Utils::DateTime& GetCreatedBefore() const { return m_createdBefore; }
61 inline bool CreatedBeforeHasBeenSet() const { return m_createdBeforeHasBeenSet; }
62 template<typename CreatedBeforeT = Aws::Utils::DateTime>
63 void SetCreatedBefore(CreatedBeforeT&& value) { m_createdBeforeHasBeenSet = true; m_createdBefore = std::forward<CreatedBeforeT>(value); }
64 template<typename CreatedBeforeT = Aws::Utils::DateTime>
65 ListManagedEndpointsRequest& WithCreatedBefore(CreatedBeforeT&& value) { SetCreatedBefore(std::forward<CreatedBeforeT>(value)); return *this;}
67
69
72 inline const Aws::Utils::DateTime& GetCreatedAfter() const { return m_createdAfter; }
73 inline bool CreatedAfterHasBeenSet() const { return m_createdAfterHasBeenSet; }
74 template<typename CreatedAfterT = Aws::Utils::DateTime>
75 void SetCreatedAfter(CreatedAfterT&& value) { m_createdAfterHasBeenSet = true; m_createdAfter = std::forward<CreatedAfterT>(value); }
76 template<typename CreatedAfterT = Aws::Utils::DateTime>
77 ListManagedEndpointsRequest& WithCreatedAfter(CreatedAfterT&& value) { SetCreatedAfter(std::forward<CreatedAfterT>(value)); return *this;}
79
81
84 inline const Aws::Vector<Aws::String>& GetTypes() const { return m_types; }
85 inline bool TypesHasBeenSet() const { return m_typesHasBeenSet; }
86 template<typename TypesT = Aws::Vector<Aws::String>>
87 void SetTypes(TypesT&& value) { m_typesHasBeenSet = true; m_types = std::forward<TypesT>(value); }
88 template<typename TypesT = Aws::Vector<Aws::String>>
89 ListManagedEndpointsRequest& WithTypes(TypesT&& value) { SetTypes(std::forward<TypesT>(value)); return *this;}
90 template<typename TypesT = Aws::String>
91 ListManagedEndpointsRequest& AddTypes(TypesT&& value) { m_typesHasBeenSet = true; m_types.emplace_back(std::forward<TypesT>(value)); return *this; }
93
95
98 inline const Aws::Vector<EndpointState>& GetStates() const { return m_states; }
99 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
100 template<typename StatesT = Aws::Vector<EndpointState>>
101 void SetStates(StatesT&& value) { m_statesHasBeenSet = true; m_states = std::forward<StatesT>(value); }
102 template<typename StatesT = Aws::Vector<EndpointState>>
103 ListManagedEndpointsRequest& WithStates(StatesT&& value) { SetStates(std::forward<StatesT>(value)); return *this;}
104 inline ListManagedEndpointsRequest& AddStates(EndpointState value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
106
108
111 inline int GetMaxResults() const { return m_maxResults; }
112 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
113 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
114 inline ListManagedEndpointsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
116
118
121 inline const Aws::String& GetNextToken() const { return m_nextToken; }
122 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
123 template<typename NextTokenT = Aws::String>
124 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
125 template<typename NextTokenT = Aws::String>
126 ListManagedEndpointsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
128 private:
129
130 Aws::String m_virtualClusterId;
131 bool m_virtualClusterIdHasBeenSet = false;
132
133 Aws::Utils::DateTime m_createdBefore{};
134 bool m_createdBeforeHasBeenSet = false;
135
136 Aws::Utils::DateTime m_createdAfter{};
137 bool m_createdAfterHasBeenSet = false;
138
140 bool m_typesHasBeenSet = false;
141
143 bool m_statesHasBeenSet = false;
144
145 int m_maxResults{0};
146 bool m_maxResultsHasBeenSet = false;
147
148 Aws::String m_nextToken;
149 bool m_nextTokenHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace EMRContainers
154} // namespace Aws
ListManagedEndpointsRequest & WithCreatedBefore(CreatedBeforeT &&value)
ListManagedEndpointsRequest & WithCreatedAfter(CreatedAfterT &&value)
AWS_EMRCONTAINERS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListManagedEndpointsRequest & WithNextToken(NextTokenT &&value)
ListManagedEndpointsRequest & WithTypes(TypesT &&value)
ListManagedEndpointsRequest & AddStates(EndpointState value)
ListManagedEndpointsRequest & AddTypes(TypesT &&value)
AWS_EMRCONTAINERS_API ListManagedEndpointsRequest()=default
ListManagedEndpointsRequest & WithVirtualClusterId(VirtualClusterIdT &&value)
AWS_EMRCONTAINERS_API Aws::String SerializePayload() const override
const Aws::Vector< EndpointState > & GetStates() const
ListManagedEndpointsRequest & WithStates(StatesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector