AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListServiceInstancesRequest.h
1
6#pragma once
7#include <aws/proton/Proton_EXPORTS.h>
8#include <aws/proton/ProtonRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/proton/model/ListServiceInstancesSortBy.h>
12#include <aws/proton/model/SortOrder.h>
13#include <aws/proton/model/ListServiceInstancesFilter.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Proton
19{
20namespace 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 "ListServiceInstances"; }
35
36 AWS_PROTON_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::Vector<ListServiceInstancesFilter>& GetFilters() const{ return m_filters; }
47 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
48 inline void SetFilters(const Aws::Vector<ListServiceInstancesFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
49 inline void SetFilters(Aws::Vector<ListServiceInstancesFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
52 inline ListServiceInstancesRequest& AddFilters(const ListServiceInstancesFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
53 inline ListServiceInstancesRequest& AddFilters(ListServiceInstancesFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
55
57
60 inline int GetMaxResults() const{ return m_maxResults; }
61 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
62 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
63 inline ListServiceInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
65
67
72 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
73 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
74 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
75 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
76 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
77 inline ListServiceInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
78 inline ListServiceInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
79 inline ListServiceInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
81
83
86 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
87 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
88 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
89 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
90 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
91 inline ListServiceInstancesRequest& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
92 inline ListServiceInstancesRequest& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
93 inline ListServiceInstancesRequest& WithServiceName(const char* value) { SetServiceName(value); return *this;}
95
97
102 inline const ListServiceInstancesSortBy& GetSortBy() const{ return m_sortBy; }
103 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
104 inline void SetSortBy(const ListServiceInstancesSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
105 inline void SetSortBy(ListServiceInstancesSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
106 inline ListServiceInstancesRequest& WithSortBy(const ListServiceInstancesSortBy& value) { SetSortBy(value); return *this;}
107 inline ListServiceInstancesRequest& WithSortBy(ListServiceInstancesSortBy&& value) { SetSortBy(std::move(value)); return *this;}
109
111
114 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
115 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
116 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
117 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
118 inline ListServiceInstancesRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
119 inline ListServiceInstancesRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
121 private:
122
124 bool m_filtersHasBeenSet = false;
125
126 int m_maxResults;
127 bool m_maxResultsHasBeenSet = false;
128
129 Aws::String m_nextToken;
130 bool m_nextTokenHasBeenSet = false;
131
132 Aws::String m_serviceName;
133 bool m_serviceNameHasBeenSet = false;
134
136 bool m_sortByHasBeenSet = false;
137
138 SortOrder m_sortOrder;
139 bool m_sortOrderHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace Proton
144} // namespace Aws
ListServiceInstancesRequest & WithSortOrder(SortOrder &&value)
ListServiceInstancesRequest & WithFilters(const Aws::Vector< ListServiceInstancesFilter > &value)
void SetFilters(const Aws::Vector< ListServiceInstancesFilter > &value)
ListServiceInstancesRequest & AddFilters(const ListServiceInstancesFilter &value)
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListServiceInstancesRequest & WithNextToken(Aws::String &&value)
ListServiceInstancesRequest & WithSortBy(const ListServiceInstancesSortBy &value)
void SetFilters(Aws::Vector< ListServiceInstancesFilter > &&value)
ListServiceInstancesRequest & WithMaxResults(int value)
ListServiceInstancesRequest & WithFilters(Aws::Vector< ListServiceInstancesFilter > &&value)
ListServiceInstancesRequest & WithSortOrder(const SortOrder &value)
ListServiceInstancesRequest & WithNextToken(const char *value)
virtual const char * GetServiceRequestName() const override
ListServiceInstancesRequest & WithNextToken(const Aws::String &value)
void SetSortBy(const ListServiceInstancesSortBy &value)
ListServiceInstancesRequest & WithServiceName(const char *value)
ListServiceInstancesRequest & WithServiceName(Aws::String &&value)
void SetSortBy(ListServiceInstancesSortBy &&value)
ListServiceInstancesRequest & WithServiceName(const Aws::String &value)
const Aws::Vector< ListServiceInstancesFilter > & GetFilters() const
ListServiceInstancesRequest & AddFilters(ListServiceInstancesFilter &&value)
ListServiceInstancesRequest & WithSortBy(ListServiceInstancesSortBy &&value)
AWS_PROTON_API Aws::String SerializePayload() const override
const ListServiceInstancesSortBy & GetSortBy() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector