AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListInstancesRequest.h
1
6#pragma once
7#include <aws/supplychain/SupplyChain_EXPORTS.h>
8#include <aws/supplychain/SupplyChainRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/supplychain/model/InstanceState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace SupplyChain
21{
22namespace Model
23{
24
31 {
32 public:
33 AWS_SUPPLYCHAIN_API ListInstancesRequest();
34
35 // Service request name is the Operation name which will send this request out,
36 // each operation should has unique request name, so that we can get operation's name from this request.
37 // Note: this is not true for response, multiple operations may have the same response name,
38 // so we can not get operation's name from response.
39 inline virtual const char* GetServiceRequestName() const override { return "ListInstances"; }
40
41 AWS_SUPPLYCHAIN_API Aws::String SerializePayload() const override;
42
43 AWS_SUPPLYCHAIN_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44
45
47
50 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
51 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
52 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
53 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
54 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
55 inline ListInstancesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
56 inline ListInstancesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
57 inline ListInstancesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
59
61
65 inline int GetMaxResults() const{ return m_maxResults; }
66 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
67 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
68 inline ListInstancesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
70
72
75 inline const Aws::Vector<Aws::String>& GetInstanceNameFilter() const{ return m_instanceNameFilter; }
76 inline bool InstanceNameFilterHasBeenSet() const { return m_instanceNameFilterHasBeenSet; }
77 inline void SetInstanceNameFilter(const Aws::Vector<Aws::String>& value) { m_instanceNameFilterHasBeenSet = true; m_instanceNameFilter = value; }
78 inline void SetInstanceNameFilter(Aws::Vector<Aws::String>&& value) { m_instanceNameFilterHasBeenSet = true; m_instanceNameFilter = std::move(value); }
81 inline ListInstancesRequest& AddInstanceNameFilter(const Aws::String& value) { m_instanceNameFilterHasBeenSet = true; m_instanceNameFilter.push_back(value); return *this; }
82 inline ListInstancesRequest& AddInstanceNameFilter(Aws::String&& value) { m_instanceNameFilterHasBeenSet = true; m_instanceNameFilter.push_back(std::move(value)); return *this; }
83 inline ListInstancesRequest& AddInstanceNameFilter(const char* value) { m_instanceNameFilterHasBeenSet = true; m_instanceNameFilter.push_back(value); return *this; }
85
87
90 inline const Aws::Vector<InstanceState>& GetInstanceStateFilter() const{ return m_instanceStateFilter; }
91 inline bool InstanceStateFilterHasBeenSet() const { return m_instanceStateFilterHasBeenSet; }
92 inline void SetInstanceStateFilter(const Aws::Vector<InstanceState>& value) { m_instanceStateFilterHasBeenSet = true; m_instanceStateFilter = value; }
93 inline void SetInstanceStateFilter(Aws::Vector<InstanceState>&& value) { m_instanceStateFilterHasBeenSet = true; m_instanceStateFilter = std::move(value); }
96 inline ListInstancesRequest& AddInstanceStateFilter(const InstanceState& value) { m_instanceStateFilterHasBeenSet = true; m_instanceStateFilter.push_back(value); return *this; }
97 inline ListInstancesRequest& AddInstanceStateFilter(InstanceState&& value) { m_instanceStateFilterHasBeenSet = true; m_instanceStateFilter.push_back(std::move(value)); return *this; }
99 private:
100
101 Aws::String m_nextToken;
102 bool m_nextTokenHasBeenSet = false;
103
104 int m_maxResults;
105 bool m_maxResultsHasBeenSet = false;
106
107 Aws::Vector<Aws::String> m_instanceNameFilter;
108 bool m_instanceNameFilterHasBeenSet = false;
109
110 Aws::Vector<InstanceState> m_instanceStateFilter;
111 bool m_instanceStateFilterHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace SupplyChain
116} // namespace Aws
ListInstancesRequest & WithInstanceStateFilter(Aws::Vector< InstanceState > &&value)
void SetInstanceStateFilter(Aws::Vector< InstanceState > &&value)
ListInstancesRequest & WithNextToken(Aws::String &&value)
ListInstancesRequest & WithInstanceNameFilter(Aws::Vector< Aws::String > &&value)
ListInstancesRequest & WithMaxResults(int value)
ListInstancesRequest & AddInstanceStateFilter(InstanceState &&value)
ListInstancesRequest & WithInstanceStateFilter(const Aws::Vector< InstanceState > &value)
ListInstancesRequest & WithInstanceNameFilter(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetInstanceNameFilter() const
ListInstancesRequest & AddInstanceStateFilter(const InstanceState &value)
ListInstancesRequest & WithNextToken(const char *value)
virtual const char * GetServiceRequestName() const override
void SetInstanceNameFilter(const Aws::Vector< Aws::String > &value)
AWS_SUPPLYCHAIN_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListInstancesRequest & AddInstanceNameFilter(const Aws::String &value)
ListInstancesRequest & AddInstanceNameFilter(const char *value)
void SetInstanceStateFilter(const Aws::Vector< InstanceState > &value)
ListInstancesRequest & WithNextToken(const Aws::String &value)
ListInstancesRequest & AddInstanceNameFilter(Aws::String &&value)
const Aws::Vector< InstanceState > & GetInstanceStateFilter() const
AWS_SUPPLYCHAIN_API Aws::String SerializePayload() const override
void SetInstanceNameFilter(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector