AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
ListFarmsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/deadline/DeadlineRequest.h>
9#include <aws/deadline/Deadline_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace deadline {
18namespace Model {
19
27 public:
28 AWS_DEADLINE_API ListFarmsRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "ListFarms"; }
35
36 AWS_DEADLINE_API Aws::String SerializePayload() const override;
37
38 AWS_DEADLINE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
45 inline const Aws::String& GetNextToken() const { return m_nextToken; }
46 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
47 template <typename NextTokenT = Aws::String>
48 void SetNextToken(NextTokenT&& value) {
49 m_nextTokenHasBeenSet = true;
50 m_nextToken = std::forward<NextTokenT>(value);
51 }
52 template <typename NextTokenT = Aws::String>
53 ListFarmsRequest& WithNextToken(NextTokenT&& value) {
54 SetNextToken(std::forward<NextTokenT>(value));
55 return *this;
56 }
58
60
64 inline int GetMaxResults() const { return m_maxResults; }
65 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
66 inline void SetMaxResults(int value) {
67 m_maxResultsHasBeenSet = true;
68 m_maxResults = value;
69 }
70 inline ListFarmsRequest& WithMaxResults(int value) {
71 SetMaxResults(value);
72 return *this;
73 }
75
77
80 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
81 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
82 template <typename PrincipalIdT = Aws::String>
83 void SetPrincipalId(PrincipalIdT&& value) {
84 m_principalIdHasBeenSet = true;
85 m_principalId = std::forward<PrincipalIdT>(value);
86 }
87 template <typename PrincipalIdT = Aws::String>
88 ListFarmsRequest& WithPrincipalId(PrincipalIdT&& value) {
89 SetPrincipalId(std::forward<PrincipalIdT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_nextToken;
95
96 int m_maxResults{0};
97
98 Aws::String m_principalId;
99 bool m_nextTokenHasBeenSet = false;
100 bool m_maxResultsHasBeenSet = false;
101 bool m_principalIdHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace deadline
106} // namespace Aws
ListFarmsRequest & WithPrincipalId(PrincipalIdT &&value)
ListFarmsRequest & WithNextToken(NextTokenT &&value)
AWS_DEADLINE_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
const Aws::String & GetPrincipalId() const
void SetPrincipalId(PrincipalIdT &&value)
ListFarmsRequest & WithMaxResults(int value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
const Aws::String & GetNextToken() const
virtual const char * GetServiceRequestName() const override
AWS_DEADLINE_API ListFarmsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String