AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
UpdateAgentStatusRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/groundstation/GroundStationRequest.h>
10#include <aws/groundstation/GroundStation_EXPORTS.h>
11#include <aws/groundstation/model/AggregateStatus.h>
12#include <aws/groundstation/model/ComponentStatusData.h>
13
14#include <utility>
15
16namespace Aws {
17namespace GroundStation {
18namespace Model {
19
23 public:
24 AWS_GROUNDSTATION_API UpdateAgentStatusRequest() = 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 "UpdateAgentStatus"; }
31
32 AWS_GROUNDSTATION_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetAgentId() const { return m_agentId; }
39 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
40 template <typename AgentIdT = Aws::String>
41 void SetAgentId(AgentIdT&& value) {
42 m_agentIdHasBeenSet = true;
43 m_agentId = std::forward<AgentIdT>(value);
44 }
45 template <typename AgentIdT = Aws::String>
47 SetAgentId(std::forward<AgentIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetTaskId() const { return m_taskId; }
57 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
58 template <typename TaskIdT = Aws::String>
59 void SetTaskId(TaskIdT&& value) {
60 m_taskIdHasBeenSet = true;
61 m_taskId = std::forward<TaskIdT>(value);
62 }
63 template <typename TaskIdT = Aws::String>
65 SetTaskId(std::forward<TaskIdT>(value));
66 return *this;
67 }
69
71
74 inline const AggregateStatus& GetAggregateStatus() const { return m_aggregateStatus; }
75 inline bool AggregateStatusHasBeenSet() const { return m_aggregateStatusHasBeenSet; }
76 template <typename AggregateStatusT = AggregateStatus>
77 void SetAggregateStatus(AggregateStatusT&& value) {
78 m_aggregateStatusHasBeenSet = true;
79 m_aggregateStatus = std::forward<AggregateStatusT>(value);
80 }
81 template <typename AggregateStatusT = AggregateStatus>
82 UpdateAgentStatusRequest& WithAggregateStatus(AggregateStatusT&& value) {
83 SetAggregateStatus(std::forward<AggregateStatusT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::Vector<ComponentStatusData>& GetComponentStatuses() const { return m_componentStatuses; }
93 inline bool ComponentStatusesHasBeenSet() const { return m_componentStatusesHasBeenSet; }
94 template <typename ComponentStatusesT = Aws::Vector<ComponentStatusData>>
95 void SetComponentStatuses(ComponentStatusesT&& value) {
96 m_componentStatusesHasBeenSet = true;
97 m_componentStatuses = std::forward<ComponentStatusesT>(value);
98 }
99 template <typename ComponentStatusesT = Aws::Vector<ComponentStatusData>>
100 UpdateAgentStatusRequest& WithComponentStatuses(ComponentStatusesT&& value) {
101 SetComponentStatuses(std::forward<ComponentStatusesT>(value));
102 return *this;
103 }
104 template <typename ComponentStatusesT = ComponentStatusData>
105 UpdateAgentStatusRequest& AddComponentStatuses(ComponentStatusesT&& value) {
106 m_componentStatusesHasBeenSet = true;
107 m_componentStatuses.emplace_back(std::forward<ComponentStatusesT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_agentId;
113 bool m_agentIdHasBeenSet = false;
114
115 Aws::String m_taskId;
116 bool m_taskIdHasBeenSet = false;
117
118 AggregateStatus m_aggregateStatus;
119 bool m_aggregateStatusHasBeenSet = false;
120
121 Aws::Vector<ComponentStatusData> m_componentStatuses;
122 bool m_componentStatusesHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace GroundStation
127} // namespace Aws
UpdateAgentStatusRequest & AddComponentStatuses(ComponentStatusesT &&value)
UpdateAgentStatusRequest & WithComponentStatuses(ComponentStatusesT &&value)
virtual const char * GetServiceRequestName() const override
AWS_GROUNDSTATION_API UpdateAgentStatusRequest()=default
UpdateAgentStatusRequest & WithAggregateStatus(AggregateStatusT &&value)
AWS_GROUNDSTATION_API Aws::String SerializePayload() const override
UpdateAgentStatusRequest & WithAgentId(AgentIdT &&value)
const Aws::Vector< ComponentStatusData > & GetComponentStatuses() const
UpdateAgentStatusRequest & WithTaskId(TaskIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector