AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListWorkflowsRequest.h
1
6#pragma once
7#include <aws/imagebuilder/Imagebuilder_EXPORTS.h>
8#include <aws/imagebuilder/ImagebuilderRequest.h>
9#include <aws/imagebuilder/model/Ownership.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/imagebuilder/model/Filter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace imagebuilder
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IMAGEBUILDER_API ListWorkflowsRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListWorkflows"; }
34
35 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Ownership& GetOwner() const{ return m_owner; }
44 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
45 inline void SetOwner(const Ownership& value) { m_ownerHasBeenSet = true; m_owner = value; }
46 inline void SetOwner(Ownership&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
47 inline ListWorkflowsRequest& WithOwner(const Ownership& value) { SetOwner(value); return *this;}
48 inline ListWorkflowsRequest& WithOwner(Ownership&& value) { SetOwner(std::move(value)); return *this;}
50
52
55 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
56 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
57 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
58 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
59 inline ListWorkflowsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
60 inline ListWorkflowsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
61 inline ListWorkflowsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
62 inline ListWorkflowsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
64
66
69 inline bool GetByName() const{ return m_byName; }
70 inline bool ByNameHasBeenSet() const { return m_byNameHasBeenSet; }
71 inline void SetByName(bool value) { m_byNameHasBeenSet = true; m_byName = value; }
72 inline ListWorkflowsRequest& WithByName(bool value) { SetByName(value); return *this;}
74
76
79 inline int GetMaxResults() const{ return m_maxResults; }
80 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
81 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
82 inline ListWorkflowsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
84
86
90 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
91 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
92 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
93 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
94 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
95 inline ListWorkflowsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
96 inline ListWorkflowsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
97 inline ListWorkflowsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
99 private:
100
101 Ownership m_owner;
102 bool m_ownerHasBeenSet = false;
103
104 Aws::Vector<Filter> m_filters;
105 bool m_filtersHasBeenSet = false;
106
107 bool m_byName;
108 bool m_byNameHasBeenSet = false;
109
110 int m_maxResults;
111 bool m_maxResultsHasBeenSet = false;
112
113 Aws::String m_nextToken;
114 bool m_nextTokenHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace imagebuilder
119} // namespace Aws
ListWorkflowsRequest & WithByName(bool value)
void SetFilters(Aws::Vector< Filter > &&value)
void SetFilters(const Aws::Vector< Filter > &value)
ListWorkflowsRequest & WithOwner(const Ownership &value)
ListWorkflowsRequest & WithMaxResults(int value)
ListWorkflowsRequest & WithFilters(const Aws::Vector< Filter > &value)
ListWorkflowsRequest & WithOwner(Ownership &&value)
ListWorkflowsRequest & AddFilters(const Filter &value)
const Aws::Vector< Filter > & GetFilters() const
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
ListWorkflowsRequest & AddFilters(Filter &&value)
virtual const char * GetServiceRequestName() const override
ListWorkflowsRequest & WithNextToken(Aws::String &&value)
ListWorkflowsRequest & WithNextToken(const char *value)
ListWorkflowsRequest & WithNextToken(const Aws::String &value)
ListWorkflowsRequest & WithFilters(Aws::Vector< Filter > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector