AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; }
45 inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); }
46 inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); }
47 inline UpdateAgentStatusRequest& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;}
48 inline UpdateAgentStatusRequest& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;}
49 inline UpdateAgentStatusRequest& WithAgentId(const char* value) { SetAgentId(value); return *this;}
51
53
56 inline const AggregateStatus& GetAggregateStatus() const{ return m_aggregateStatus; }
57 inline bool AggregateStatusHasBeenSet() const { return m_aggregateStatusHasBeenSet; }
58 inline void SetAggregateStatus(const AggregateStatus& value) { m_aggregateStatusHasBeenSet = true; m_aggregateStatus = value; }
59 inline void SetAggregateStatus(AggregateStatus&& value) { m_aggregateStatusHasBeenSet = true; m_aggregateStatus = std::move(value); }
61 inline UpdateAgentStatusRequest& WithAggregateStatus(AggregateStatus&& value) { SetAggregateStatus(std::move(value)); return *this;}
63
65
68 inline const Aws::Vector<ComponentStatusData>& GetComponentStatuses() const{ return m_componentStatuses; }
69 inline bool ComponentStatusesHasBeenSet() const { return m_componentStatusesHasBeenSet; }
70 inline void SetComponentStatuses(const Aws::Vector<ComponentStatusData>& value) { m_componentStatusesHasBeenSet = true; m_componentStatuses = value; }
71 inline void SetComponentStatuses(Aws::Vector<ComponentStatusData>&& value) { m_componentStatusesHasBeenSet = true; m_componentStatuses = std::move(value); }
74 inline UpdateAgentStatusRequest& AddComponentStatuses(const ComponentStatusData& value) { m_componentStatusesHasBeenSet = true; m_componentStatuses.push_back(value); return *this; }
75 inline UpdateAgentStatusRequest& AddComponentStatuses(ComponentStatusData&& value) { m_componentStatusesHasBeenSet = true; m_componentStatuses.push_back(std::move(value)); return *this; }
77
79
82 inline const Aws::String& GetTaskId() const{ return m_taskId; }
83 inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; }
84 inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; }
85 inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); }
86 inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); }
87 inline UpdateAgentStatusRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;}
88 inline UpdateAgentStatusRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;}
89 inline UpdateAgentStatusRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;}
91 private:
92
93 Aws::String m_agentId;
94 bool m_agentIdHasBeenSet = false;
95
96 AggregateStatus m_aggregateStatus;
97 bool m_aggregateStatusHasBeenSet = false;
98
99 Aws::Vector<ComponentStatusData> m_componentStatuses;
100 bool m_componentStatusesHasBeenSet = false;
101
102 Aws::String m_taskId;
103 bool m_taskIdHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace GroundStation
108} // namespace Aws
UpdateAgentStatusRequest & WithTaskId(Aws::String &&value)
UpdateAgentStatusRequest & AddComponentStatuses(ComponentStatusData &&value)
UpdateAgentStatusRequest & WithComponentStatuses(Aws::Vector< ComponentStatusData > &&value)
UpdateAgentStatusRequest & WithTaskId(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateAgentStatusRequest & WithAgentId(Aws::String &&value)
UpdateAgentStatusRequest & AddComponentStatuses(const ComponentStatusData &value)
UpdateAgentStatusRequest & WithComponentStatuses(const Aws::Vector< ComponentStatusData > &value)
void SetComponentStatuses(Aws::Vector< ComponentStatusData > &&value)
UpdateAgentStatusRequest & WithAgentId(const char *value)
UpdateAgentStatusRequest & WithAgentId(const Aws::String &value)
UpdateAgentStatusRequest & WithTaskId(const Aws::String &value)
UpdateAgentStatusRequest & WithAggregateStatus(AggregateStatus &&value)
UpdateAgentStatusRequest & WithAggregateStatus(const AggregateStatus &value)
AWS_GROUNDSTATION_API Aws::String SerializePayload() const override
const Aws::Vector< ComponentStatusData > & GetComponentStatuses() const
void SetComponentStatuses(const Aws::Vector< ComponentStatusData > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector