AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateAgentStatusRequest.h
1
6#pragma once
7#include <aws/groundstation/GroundStation_EXPORTS.h>
8#include <aws/groundstation/GroundStationRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/groundstation/model/AggregateStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/groundstation/model/ComponentStatusData.h>
13#include <utility>
14
15namespace Aws
16{
17namespace GroundStation
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_GROUNDSTATION_API UpdateAgentStatusRequest() = 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 "UpdateAgentStatus"; }
34
35 AWS_GROUNDSTATION_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetAgentId() const { return m_agentId; }
43 inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; }
44 template<typename AgentIdT = Aws::String>
45 void SetAgentId(AgentIdT&& value) { m_agentIdHasBeenSet = true; m_agentId = std::forward<AgentIdT>(value); }
46 template<typename AgentIdT = Aws::String>
47 UpdateAgentStatusRequest& WithAgentId(AgentIdT&& value) { SetAgentId(std::forward<AgentIdT>(value)); return *this;}
49
51
54 inline const AggregateStatus& GetAggregateStatus() const { return m_aggregateStatus; }
55 inline bool AggregateStatusHasBeenSet() const { return m_aggregateStatusHasBeenSet; }
56 template<typename AggregateStatusT = AggregateStatus>
57 void SetAggregateStatus(AggregateStatusT&& value) { m_aggregateStatusHasBeenSet = true; m_aggregateStatus = std::forward<AggregateStatusT>(value); }
58 template<typename AggregateStatusT = AggregateStatus>
59 UpdateAgentStatusRequest& WithAggregateStatus(AggregateStatusT&& value) { SetAggregateStatus(std::forward<AggregateStatusT>(value)); return *this;}
61
63
66 inline const Aws::Vector<ComponentStatusData>& GetComponentStatuses() const { return m_componentStatuses; }
67 inline bool ComponentStatusesHasBeenSet() const { return m_componentStatusesHasBeenSet; }
68 template<typename ComponentStatusesT = Aws::Vector<ComponentStatusData>>
69 void SetComponentStatuses(ComponentStatusesT&& value) { m_componentStatusesHasBeenSet = true; m_componentStatuses = std::forward<ComponentStatusesT>(value); }
70 template<typename ComponentStatusesT = Aws::Vector<ComponentStatusData>>
71 UpdateAgentStatusRequest& WithComponentStatuses(ComponentStatusesT&& value) { SetComponentStatuses(std::forward<ComponentStatusesT>(value)); return *this;}
72 template<typename ComponentStatusesT = ComponentStatusData>
73 UpdateAgentStatusRequest& AddComponentStatuses(ComponentStatusesT&& value) { m_componentStatusesHasBeenSet = true; m_componentStatuses.emplace_back(std::forward<ComponentStatusesT>(value)); return *this; }
75
77
80 inline const Aws::String& GetTaskId() const { return m_taskId; }
81 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
82 template<typename TaskIdT = Aws::String>
83 void SetTaskId(TaskIdT&& value) { m_taskIdHasBeenSet = true; m_taskId = std::forward<TaskIdT>(value); }
84 template<typename TaskIdT = Aws::String>
85 UpdateAgentStatusRequest& WithTaskId(TaskIdT&& value) { SetTaskId(std::forward<TaskIdT>(value)); return *this;}
87 private:
88
89 Aws::String m_agentId;
90 bool m_agentIdHasBeenSet = false;
91
92 AggregateStatus m_aggregateStatus;
93 bool m_aggregateStatusHasBeenSet = false;
94
95 Aws::Vector<ComponentStatusData> m_componentStatuses;
96 bool m_componentStatusesHasBeenSet = false;
97
98 Aws::String m_taskId;
99 bool m_taskIdHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace GroundStation
104} // 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