AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListWorkloadsRequest.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/wellarchitected/WellArchitectedRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace WellArchitected
15{
16namespace Model
17{
18
25 {
26 public:
27 AWS_WELLARCHITECTED_API ListWorkloadsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListWorkloads"; }
34
35 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
36
37
39
40 inline const Aws::String& GetWorkloadNamePrefix() const { return m_workloadNamePrefix; }
41 inline bool WorkloadNamePrefixHasBeenSet() const { return m_workloadNamePrefixHasBeenSet; }
42 template<typename WorkloadNamePrefixT = Aws::String>
43 void SetWorkloadNamePrefix(WorkloadNamePrefixT&& value) { m_workloadNamePrefixHasBeenSet = true; m_workloadNamePrefix = std::forward<WorkloadNamePrefixT>(value); }
44 template<typename WorkloadNamePrefixT = Aws::String>
45 ListWorkloadsRequest& WithWorkloadNamePrefix(WorkloadNamePrefixT&& value) { SetWorkloadNamePrefix(std::forward<WorkloadNamePrefixT>(value)); return *this;}
47
49
50 inline const Aws::String& GetNextToken() const { return m_nextToken; }
51 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
52 template<typename NextTokenT = Aws::String>
53 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
54 template<typename NextTokenT = Aws::String>
55 ListWorkloadsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
57
59
62 inline int GetMaxResults() const { return m_maxResults; }
63 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
64 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
65 inline ListWorkloadsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
67 private:
68
69 Aws::String m_workloadNamePrefix;
70 bool m_workloadNamePrefixHasBeenSet = false;
71
72 Aws::String m_nextToken;
73 bool m_nextTokenHasBeenSet = false;
74
75 int m_maxResults{0};
76 bool m_maxResultsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace WellArchitected
81} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_WELLARCHITECTED_API ListWorkloadsRequest()=default
ListWorkloadsRequest & WithWorkloadNamePrefix(WorkloadNamePrefixT &&value)
void SetWorkloadNamePrefix(WorkloadNamePrefixT &&value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
ListWorkloadsRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String