AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
ListGoalsRequest.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/GoalStatus.h>
11#include <aws/devops-agent/model/GoalType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DevOpsAgent {
17namespace Model {
18
25 public:
26 AWS_DEVOPSAGENT_API ListGoalsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListGoals"; }
33
34 AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetAgentSpaceId() const { return m_agentSpaceId; }
41 inline bool AgentSpaceIdHasBeenSet() const { return m_agentSpaceIdHasBeenSet; }
42 template <typename AgentSpaceIdT = Aws::String>
43 void SetAgentSpaceId(AgentSpaceIdT&& value) {
44 m_agentSpaceIdHasBeenSet = true;
45 m_agentSpaceId = std::forward<AgentSpaceIdT>(value);
46 }
47 template <typename AgentSpaceIdT = Aws::String>
48 ListGoalsRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
49 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
50 return *this;
51 }
53
55
58 inline GoalStatus GetStatus() const { return m_status; }
59 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 inline void SetStatus(GoalStatus value) {
61 m_statusHasBeenSet = true;
62 m_status = value;
63 }
65 SetStatus(value);
66 return *this;
67 }
69
71
74 inline GoalType GetGoalType() const { return m_goalType; }
75 inline bool GoalTypeHasBeenSet() const { return m_goalTypeHasBeenSet; }
76 inline void SetGoalType(GoalType value) {
77 m_goalTypeHasBeenSet = true;
78 m_goalType = value;
79 }
81 SetGoalType(value);
82 return *this;
83 }
85
87
90 inline int GetLimit() const { return m_limit; }
91 inline bool LimitHasBeenSet() const { return m_limitHasBeenSet; }
92 inline void SetLimit(int value) {
93 m_limitHasBeenSet = true;
94 m_limit = value;
95 }
96 inline ListGoalsRequest& WithLimit(int value) {
97 SetLimit(value);
98 return *this;
99 }
101
103
106 inline const Aws::String& GetNextToken() const { return m_nextToken; }
107 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
108 template <typename NextTokenT = Aws::String>
109 void SetNextToken(NextTokenT&& value) {
110 m_nextTokenHasBeenSet = true;
111 m_nextToken = std::forward<NextTokenT>(value);
112 }
113 template <typename NextTokenT = Aws::String>
114 ListGoalsRequest& WithNextToken(NextTokenT&& value) {
115 SetNextToken(std::forward<NextTokenT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_agentSpaceId;
121
123
124 GoalType m_goalType{GoalType::NOT_SET};
125
126 int m_limit{0};
127
128 Aws::String m_nextToken;
129 bool m_agentSpaceIdHasBeenSet = false;
130 bool m_statusHasBeenSet = false;
131 bool m_goalTypeHasBeenSet = false;
132 bool m_limitHasBeenSet = false;
133 bool m_nextTokenHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace DevOpsAgent
138} // namespace Aws
ListGoalsRequest & WithGoalType(GoalType value)
ListGoalsRequest & WithLimit(int value)
ListGoalsRequest & WithNextToken(NextTokenT &&value)
ListGoalsRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
void SetAgentSpaceId(AgentSpaceIdT &&value)
const Aws::String & GetAgentSpaceId() const
AWS_DEVOPSAGENT_API ListGoalsRequest()=default
virtual const char * GetServiceRequestName() const override
ListGoalsRequest & WithStatus(GoalStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String