AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListImagesRequest.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 ListImagesRequest();
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 "ListImages"; }
34
35 AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override;
36
37
39
45 inline const Ownership& GetOwner() const{ return m_owner; }
46 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
47 inline void SetOwner(const Ownership& value) { m_ownerHasBeenSet = true; m_owner = value; }
48 inline void SetOwner(Ownership&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
49 inline ListImagesRequest& WithOwner(const Ownership& value) { SetOwner(value); return *this;}
50 inline ListImagesRequest& WithOwner(Ownership&& value) { SetOwner(std::move(value)); return *this;}
52
54
60 inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
61 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
62 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
63 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
64 inline ListImagesRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
65 inline ListImagesRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
66 inline ListImagesRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
67 inline ListImagesRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
69
71
74 inline bool GetByName() const{ return m_byName; }
75 inline bool ByNameHasBeenSet() const { return m_byNameHasBeenSet; }
76 inline void SetByName(bool value) { m_byNameHasBeenSet = true; m_byName = value; }
77 inline ListImagesRequest& WithByName(bool value) { SetByName(value); return *this;}
79
81
84 inline int GetMaxResults() const{ return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
87 inline ListImagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
89
91
95 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
96 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
97 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
98 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
99 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
100 inline ListImagesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
101 inline ListImagesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
102 inline ListImagesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
104
106
109 inline bool GetIncludeDeprecated() const{ return m_includeDeprecated; }
110 inline bool IncludeDeprecatedHasBeenSet() const { return m_includeDeprecatedHasBeenSet; }
111 inline void SetIncludeDeprecated(bool value) { m_includeDeprecatedHasBeenSet = true; m_includeDeprecated = value; }
112 inline ListImagesRequest& WithIncludeDeprecated(bool value) { SetIncludeDeprecated(value); return *this;}
114 private:
115
116 Ownership m_owner;
117 bool m_ownerHasBeenSet = false;
118
119 Aws::Vector<Filter> m_filters;
120 bool m_filtersHasBeenSet = false;
121
122 bool m_byName;
123 bool m_byNameHasBeenSet = false;
124
125 int m_maxResults;
126 bool m_maxResultsHasBeenSet = false;
127
128 Aws::String m_nextToken;
129 bool m_nextTokenHasBeenSet = false;
130
131 bool m_includeDeprecated;
132 bool m_includeDeprecatedHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace imagebuilder
137} // namespace Aws
void SetFilters(Aws::Vector< Filter > &&value)
ListImagesRequest & WithOwner(Ownership &&value)
virtual const char * GetServiceRequestName() const override
void SetFilters(const Aws::Vector< Filter > &value)
ListImagesRequest & AddFilters(const Filter &value)
ListImagesRequest & WithNextToken(const char *value)
ListImagesRequest & WithFilters(Aws::Vector< Filter > &&value)
const Aws::Vector< Filter > & GetFilters() const
ListImagesRequest & WithMaxResults(int value)
ListImagesRequest & WithByName(bool value)
void SetNextToken(const Aws::String &value)
ListImagesRequest & AddFilters(Filter &&value)
ListImagesRequest & WithNextToken(const Aws::String &value)
ListImagesRequest & WithNextToken(Aws::String &&value)
ListImagesRequest & WithOwner(const Ownership &value)
ListImagesRequest & WithIncludeDeprecated(bool value)
ListImagesRequest & WithFilters(const Aws::Vector< Filter > &value)
AWS_IMAGEBUILDER_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector