AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEnvironmentTemplates(const Aws::Vector<EnvironmentTemplateFilter>& value) { m_environmentTemplatesHasBeenSet = true; m_environmentTemplates = value; }
46 inline void SetEnvironmentTemplates(Aws::Vector<EnvironmentTemplateFilter>&& value) { m_environmentTemplatesHasBeenSet = true; m_environmentTemplates = std::move(value); }
49 inline ListEnvironmentsRequest& AddEnvironmentTemplates(const EnvironmentTemplateFilter& value) { m_environmentTemplatesHasBeenSet = true; m_environmentTemplates.push_back(value); return *this; }
50 inline ListEnvironmentsRequest& AddEnvironmentTemplates(EnvironmentTemplateFilter&& value) { m_environmentTemplatesHasBeenSet = true; m_environmentTemplates.push_back(std::move(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 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
71 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
72 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
73 inline ListEnvironmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
74 inline ListEnvironmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
75 inline ListEnvironmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
77 private:
78
79 Aws::Vector<EnvironmentTemplateFilter> m_environmentTemplates;
80 bool m_environmentTemplatesHasBeenSet = false;
81
82 int m_maxResults;
83 bool m_maxResultsHasBeenSet = false;
84
85 Aws::String m_nextToken;
86 bool m_nextTokenHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Proton
91} // namespace Aws
AWS_PROTON_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListEnvironmentsRequest & AddEnvironmentTemplates(const EnvironmentTemplateFilter &value)
ListEnvironmentsRequest & WithNextToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ListEnvironmentsRequest & WithMaxResults(int value)
AWS_PROTON_API Aws::String SerializePayload() const override
void SetEnvironmentTemplates(const Aws::Vector< EnvironmentTemplateFilter > &value)
ListEnvironmentsRequest & WithNextToken(Aws::String &&value)
ListEnvironmentsRequest & WithNextToken(const char *value)
ListEnvironmentsRequest & AddEnvironmentTemplates(EnvironmentTemplateFilter &&value)
ListEnvironmentsRequest & WithEnvironmentTemplates(Aws::Vector< EnvironmentTemplateFilter > &&value)
ListEnvironmentsRequest & WithEnvironmentTemplates(const Aws::Vector< EnvironmentTemplateFilter > &value)
void SetEnvironmentTemplates(Aws::Vector< EnvironmentTemplateFilter > &&value)
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