AWS SDK for C++

AWS SDK for C++ Version 1.11.682

Loading...
Searching...
No Matches
ListMilestonesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wellarchitected/WellArchitectedRequest.h>
9#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace WellArchitected {
15namespace Model {
16
23 public:
24 AWS_WELLARCHITECTED_API ListMilestonesRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "ListMilestones"; }
31
32 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
33
35
36 inline const Aws::String& GetWorkloadId() const { return m_workloadId; }
37 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
38 template <typename WorkloadIdT = Aws::String>
39 void SetWorkloadId(WorkloadIdT&& value) {
40 m_workloadIdHasBeenSet = true;
41 m_workloadId = std::forward<WorkloadIdT>(value);
42 }
43 template <typename WorkloadIdT = Aws::String>
44 ListMilestonesRequest& WithWorkloadId(WorkloadIdT&& value) {
45 SetWorkloadId(std::forward<WorkloadIdT>(value));
46 return *this;
47 }
49
51
52 inline const Aws::String& GetNextToken() const { return m_nextToken; }
53 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
54 template <typename NextTokenT = Aws::String>
55 void SetNextToken(NextTokenT&& value) {
56 m_nextTokenHasBeenSet = true;
57 m_nextToken = std::forward<NextTokenT>(value);
58 }
59 template <typename NextTokenT = Aws::String>
60 ListMilestonesRequest& WithNextToken(NextTokenT&& value) {
61 SetNextToken(std::forward<NextTokenT>(value));
62 return *this;
63 }
65
67
68 inline int GetMaxResults() const { return m_maxResults; }
69 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
70 inline void SetMaxResults(int value) {
71 m_maxResultsHasBeenSet = true;
72 m_maxResults = value;
73 }
75 SetMaxResults(value);
76 return *this;
77 }
79 private:
80 Aws::String m_workloadId;
81 bool m_workloadIdHasBeenSet = false;
82
83 Aws::String m_nextToken;
84 bool m_nextTokenHasBeenSet = false;
85
86 int m_maxResults{0};
87 bool m_maxResultsHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace WellArchitected
92} // namespace Aws
ListMilestonesRequest & WithWorkloadId(WorkloadIdT &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ListMilestonesRequest & WithNextToken(NextTokenT &&value)
AWS_WELLARCHITECTED_API ListMilestonesRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String