AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
ListServicesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/devops-agent/DevOpsAgentRequest.h>
9#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
10#include <aws/devops-agent/model/Service.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace DevOpsAgent {
19namespace Model {
20
28 public:
29 AWS_DEVOPSAGENT_API ListServicesRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "ListServices"; }
36
37 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
38
39 AWS_DEVOPSAGENT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
45 inline int GetMaxResults() const { return m_maxResults; }
46 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
47 inline void SetMaxResults(int value) {
48 m_maxResultsHasBeenSet = true;
49 m_maxResults = value;
50 }
52 SetMaxResults(value);
53 return *this;
54 }
56
58
61 inline const Aws::String& GetNextToken() const { return m_nextToken; }
62 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
63 template <typename NextTokenT = Aws::String>
64 void SetNextToken(NextTokenT&& value) {
65 m_nextTokenHasBeenSet = true;
66 m_nextToken = std::forward<NextTokenT>(value);
67 }
68 template <typename NextTokenT = Aws::String>
69 ListServicesRequest& WithNextToken(NextTokenT&& value) {
70 SetNextToken(std::forward<NextTokenT>(value));
71 return *this;
72 }
74
76
79 inline Service GetFilterServiceType() const { return m_filterServiceType; }
80 inline bool FilterServiceTypeHasBeenSet() const { return m_filterServiceTypeHasBeenSet; }
81 inline void SetFilterServiceType(Service value) {
82 m_filterServiceTypeHasBeenSet = true;
83 m_filterServiceType = value;
84 }
87 return *this;
88 }
90 private:
91 int m_maxResults{0};
92
93 Aws::String m_nextToken;
94
95 Service m_filterServiceType{Service::NOT_SET};
96 bool m_maxResultsHasBeenSet = false;
97 bool m_nextTokenHasBeenSet = false;
98 bool m_filterServiceTypeHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace DevOpsAgent
103} // namespace Aws
ListServicesRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
ListServicesRequest & WithFilterServiceType(Service value)
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
AWS_DEVOPSAGENT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_DEVOPSAGENT_API ListServicesRequest()=default
ListServicesRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String