AWS SDK for C++

AWS SDK for C++ Version 1.11.694

Loading...
Searching...
No Matches
ListServicesRequest.h
1
6#pragma once
7#include <aws/application-signals/ApplicationSignalsRequest.h>
8#include <aws/application-signals/ApplicationSignals_EXPORTS.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace ApplicationSignals {
19namespace Model {
20
24 public:
25 AWS_APPLICATIONSIGNALS_API ListServicesRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListServices"; }
32
33 AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override;
34
35 AWS_APPLICATIONSIGNALS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
44 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
45 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
46 template <typename StartTimeT = Aws::Utils::DateTime>
47 void SetStartTime(StartTimeT&& value) {
48 m_startTimeHasBeenSet = true;
49 m_startTime = std::forward<StartTimeT>(value);
50 }
51 template <typename StartTimeT = Aws::Utils::DateTime>
52 ListServicesRequest& WithStartTime(StartTimeT&& value) {
53 SetStartTime(std::forward<StartTimeT>(value));
54 return *this;
55 }
57
59
65 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
66 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
67 template <typename EndTimeT = Aws::Utils::DateTime>
68 void SetEndTime(EndTimeT&& value) {
69 m_endTimeHasBeenSet = true;
70 m_endTime = std::forward<EndTimeT>(value);
71 }
72 template <typename EndTimeT = Aws::Utils::DateTime>
73 ListServicesRequest& WithEndTime(EndTimeT&& value) {
74 SetEndTime(std::forward<EndTimeT>(value));
75 return *this;
76 }
78
80
84 inline int GetMaxResults() const { return m_maxResults; }
85 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
86 inline void SetMaxResults(int value) {
87 m_maxResultsHasBeenSet = true;
88 m_maxResults = value;
89 }
91 SetMaxResults(value);
92 return *this;
93 }
95
97
101 inline const Aws::String& GetNextToken() const { return m_nextToken; }
102 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 template <typename NextTokenT = Aws::String>
104 void SetNextToken(NextTokenT&& value) {
105 m_nextTokenHasBeenSet = true;
106 m_nextToken = std::forward<NextTokenT>(value);
107 }
108 template <typename NextTokenT = Aws::String>
109 ListServicesRequest& WithNextToken(NextTokenT&& value) {
110 SetNextToken(std::forward<NextTokenT>(value));
111 return *this;
112 }
114
116
121 inline bool GetIncludeLinkedAccounts() const { return m_includeLinkedAccounts; }
122 inline bool IncludeLinkedAccountsHasBeenSet() const { return m_includeLinkedAccountsHasBeenSet; }
123 inline void SetIncludeLinkedAccounts(bool value) {
124 m_includeLinkedAccountsHasBeenSet = true;
125 m_includeLinkedAccounts = value;
126 }
129 return *this;
130 }
132
134
137 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
138 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
139 template <typename AwsAccountIdT = Aws::String>
140 void SetAwsAccountId(AwsAccountIdT&& value) {
141 m_awsAccountIdHasBeenSet = true;
142 m_awsAccountId = std::forward<AwsAccountIdT>(value);
143 }
144 template <typename AwsAccountIdT = Aws::String>
145 ListServicesRequest& WithAwsAccountId(AwsAccountIdT&& value) {
146 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
147 return *this;
148 }
150 private:
151 Aws::Utils::DateTime m_startTime{};
152 bool m_startTimeHasBeenSet = false;
153
154 Aws::Utils::DateTime m_endTime{};
155 bool m_endTimeHasBeenSet = false;
156
157 int m_maxResults{0};
158 bool m_maxResultsHasBeenSet = false;
159
160 Aws::String m_nextToken;
161 bool m_nextTokenHasBeenSet = false;
162
163 bool m_includeLinkedAccounts{false};
164 bool m_includeLinkedAccountsHasBeenSet = false;
165
166 Aws::String m_awsAccountId;
167 bool m_awsAccountIdHasBeenSet = false;
168};
169
170} // namespace Model
171} // namespace ApplicationSignals
172} // namespace Aws
ListServicesRequest & WithEndTime(EndTimeT &&value)
AWS_APPLICATIONSIGNALS_API Aws::String SerializePayload() const override
AWS_APPLICATIONSIGNALS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::Utils::DateTime & GetStartTime() const
ListServicesRequest & WithStartTime(StartTimeT &&value)
ListServicesRequest & WithIncludeLinkedAccounts(bool value)
const Aws::Utils::DateTime & GetEndTime() const
ListServicesRequest & WithAwsAccountId(AwsAccountIdT &&value)
ListServicesRequest & WithNextToken(NextTokenT &&value)
AWS_APPLICATIONSIGNALS_API ListServicesRequest()=default
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String