AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListEnvironmentsRequest.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/EnvironmentTemplateFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Proton
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PROTON_API ListEnvironmentsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListEnvironments"; }
33
34 AWS_PROTON_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::Vector<EnvironmentTemplateFilter>& GetEnvironmentTemplates() const { return m_environmentTemplates; }
44 inline bool EnvironmentTemplatesHasBeenSet() const { return m_environmentTemplatesHasBeenSet; }
45 template<typename EnvironmentTemplatesT = Aws::Vector<EnvironmentTemplateFilter>>
46 void SetEnvironmentTemplates(EnvironmentTemplatesT&& value) { m_environmentTemplatesHasBeenSet = true; m_environmentTemplates = std::forward<EnvironmentTemplatesT>(value); }
47 template<typename EnvironmentTemplatesT = Aws::Vector<EnvironmentTemplateFilter>>
48 ListEnvironmentsRequest& WithEnvironmentTemplates(EnvironmentTemplatesT&& value) { SetEnvironmentTemplates(std::forward<EnvironmentTemplatesT>(value)); return *this;}
49 template<typename EnvironmentTemplatesT = EnvironmentTemplateFilter>
50 ListEnvironmentsRequest& AddEnvironmentTemplates(EnvironmentTemplatesT&& value) { m_environmentTemplatesHasBeenSet = true; m_environmentTemplates.emplace_back(std::forward<EnvironmentTemplatesT>(value)); return *this; }
52
54
57 inline int GetMaxResults() const { return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
60 inline ListEnvironmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
62
64
68 inline const Aws::String& GetNextToken() const { return m_nextToken; }
69 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
70 template<typename NextTokenT = Aws::String>
71 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
72 template<typename NextTokenT = Aws::String>
73 ListEnvironmentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
75 private:
76
77 Aws::Vector<EnvironmentTemplateFilter> m_environmentTemplates;
78 bool m_environmentTemplatesHasBeenSet = false;
79
80 int m_maxResults{0};
81 bool m_maxResultsHasBeenSet = false;
82
83 Aws::String m_nextToken;
84 bool m_nextTokenHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace Proton
89} // namespace Aws
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
ListEnvironmentsRequest & WithMaxResults(int value)
AWS_PROTON_API Aws::String SerializePayload() const override
ListEnvironmentsRequest & AddEnvironmentTemplates(EnvironmentTemplatesT &&value)
ListEnvironmentsRequest & WithNextToken(NextTokenT &&value)
void SetEnvironmentTemplates(EnvironmentTemplatesT &&value)
ListEnvironmentsRequest & WithEnvironmentTemplates(EnvironmentTemplatesT &&value)
AWS_PROTON_API ListEnvironmentsRequest()=default
const Aws::Vector< EnvironmentTemplateFilter > & GetEnvironmentTemplates() 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