AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
UpdateGoalRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devops-agent/DevOpsAgentRequest.h>
10#include <aws/devops-agent/DevOpsAgent_EXPORTS.h>
11#include <aws/devops-agent/model/GoalScheduleInput.h>
12
13#include <utility>
14
15namespace Aws {
16namespace DevOpsAgent {
17namespace Model {
18
25 public:
26 AWS_DEVOPSAGENT_API UpdateGoalRequest() = 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 "UpdateGoal"; }
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 UpdateGoalRequest& WithAgentSpaceId(AgentSpaceIdT&& value) {
49 SetAgentSpaceId(std::forward<AgentSpaceIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetGoalId() const { return m_goalId; }
59 inline bool GoalIdHasBeenSet() const { return m_goalIdHasBeenSet; }
60 template <typename GoalIdT = Aws::String>
61 void SetGoalId(GoalIdT&& value) {
62 m_goalIdHasBeenSet = true;
63 m_goalId = std::forward<GoalIdT>(value);
64 }
65 template <typename GoalIdT = Aws::String>
66 UpdateGoalRequest& WithGoalId(GoalIdT&& value) {
67 SetGoalId(std::forward<GoalIdT>(value));
68 return *this;
69 }
71
73
76 inline const GoalScheduleInput& GetEvaluationSchedule() const { return m_evaluationSchedule; }
77 inline bool EvaluationScheduleHasBeenSet() const { return m_evaluationScheduleHasBeenSet; }
78 template <typename EvaluationScheduleT = GoalScheduleInput>
79 void SetEvaluationSchedule(EvaluationScheduleT&& value) {
80 m_evaluationScheduleHasBeenSet = true;
81 m_evaluationSchedule = std::forward<EvaluationScheduleT>(value);
82 }
83 template <typename EvaluationScheduleT = GoalScheduleInput>
84 UpdateGoalRequest& WithEvaluationSchedule(EvaluationScheduleT&& value) {
85 SetEvaluationSchedule(std::forward<EvaluationScheduleT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetClientToken() const { return m_clientToken; }
95 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
96 template <typename ClientTokenT = Aws::String>
97 void SetClientToken(ClientTokenT&& value) {
98 m_clientTokenHasBeenSet = true;
99 m_clientToken = std::forward<ClientTokenT>(value);
100 }
101 template <typename ClientTokenT = Aws::String>
102 UpdateGoalRequest& WithClientToken(ClientTokenT&& value) {
103 SetClientToken(std::forward<ClientTokenT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_agentSpaceId;
109
110 Aws::String m_goalId;
111
112 GoalScheduleInput m_evaluationSchedule;
113
115 bool m_agentSpaceIdHasBeenSet = false;
116 bool m_goalIdHasBeenSet = false;
117 bool m_evaluationScheduleHasBeenSet = false;
118 bool m_clientTokenHasBeenSet = true;
119};
120
121} // namespace Model
122} // namespace DevOpsAgent
123} // namespace Aws
const GoalScheduleInput & GetEvaluationSchedule() const
virtual const char * GetServiceRequestName() const override
AWS_DEVOPSAGENT_API Aws::String SerializePayload() const override
UpdateGoalRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetAgentSpaceId() const
void SetAgentSpaceId(AgentSpaceIdT &&value)
AWS_DEVOPSAGENT_API UpdateGoalRequest()=default
UpdateGoalRequest & WithAgentSpaceId(AgentSpaceIdT &&value)
UpdateGoalRequest & WithGoalId(GoalIdT &&value)
void SetEvaluationSchedule(EvaluationScheduleT &&value)
UpdateGoalRequest & WithEvaluationSchedule(EvaluationScheduleT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String