/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace GroundStation { namespace Model { /** */ class UpdateAgentStatusRequest : public GroundStationRequest { public: AWS_GROUNDSTATION_API UpdateAgentStatusRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateAgentStatus"; } AWS_GROUNDSTATION_API Aws::String SerializePayload() const override; /** *

UUID of agent to update.

*/ inline const Aws::String& GetAgentId() const{ return m_agentId; } /** *

UUID of agent to update.

*/ inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; } /** *

UUID of agent to update.

*/ inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; } /** *

UUID of agent to update.

*/ inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); } /** *

UUID of agent to update.

*/ inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); } /** *

UUID of agent to update.

*/ inline UpdateAgentStatusRequest& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;} /** *

UUID of agent to update.

*/ inline UpdateAgentStatusRequest& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;} /** *

UUID of agent to update.

*/ inline UpdateAgentStatusRequest& WithAgentId(const char* value) { SetAgentId(value); return *this;} /** *

Aggregate status for agent.

*/ inline const AggregateStatus& GetAggregateStatus() const{ return m_aggregateStatus; } /** *

Aggregate status for agent.

*/ inline bool AggregateStatusHasBeenSet() const { return m_aggregateStatusHasBeenSet; } /** *

Aggregate status for agent.

*/ inline void SetAggregateStatus(const AggregateStatus& value) { m_aggregateStatusHasBeenSet = true; m_aggregateStatus = value; } /** *

Aggregate status for agent.

*/ inline void SetAggregateStatus(AggregateStatus&& value) { m_aggregateStatusHasBeenSet = true; m_aggregateStatus = std::move(value); } /** *

Aggregate status for agent.

*/ inline UpdateAgentStatusRequest& WithAggregateStatus(const AggregateStatus& value) { SetAggregateStatus(value); return *this;} /** *

Aggregate status for agent.

*/ inline UpdateAgentStatusRequest& WithAggregateStatus(AggregateStatus&& value) { SetAggregateStatus(std::move(value)); return *this;} /** *

List of component statuses for agent.

*/ inline const Aws::Vector& GetComponentStatuses() const{ return m_componentStatuses; } /** *

List of component statuses for agent.

*/ inline bool ComponentStatusesHasBeenSet() const { return m_componentStatusesHasBeenSet; } /** *

List of component statuses for agent.

*/ inline void SetComponentStatuses(const Aws::Vector& value) { m_componentStatusesHasBeenSet = true; m_componentStatuses = value; } /** *

List of component statuses for agent.

*/ inline void SetComponentStatuses(Aws::Vector&& value) { m_componentStatusesHasBeenSet = true; m_componentStatuses = std::move(value); } /** *

List of component statuses for agent.

*/ inline UpdateAgentStatusRequest& WithComponentStatuses(const Aws::Vector& value) { SetComponentStatuses(value); return *this;} /** *

List of component statuses for agent.

*/ inline UpdateAgentStatusRequest& WithComponentStatuses(Aws::Vector&& value) { SetComponentStatuses(std::move(value)); return *this;} /** *

List of component statuses for agent.

*/ inline UpdateAgentStatusRequest& AddComponentStatuses(const ComponentStatusData& value) { m_componentStatusesHasBeenSet = true; m_componentStatuses.push_back(value); return *this; } /** *

List of component statuses for agent.

*/ inline UpdateAgentStatusRequest& AddComponentStatuses(ComponentStatusData&& value) { m_componentStatusesHasBeenSet = true; m_componentStatuses.push_back(std::move(value)); return *this; } /** *

GUID of agent task.

*/ inline const Aws::String& GetTaskId() const{ return m_taskId; } /** *

GUID of agent task.

*/ inline bool TaskIdHasBeenSet() const { return m_taskIdHasBeenSet; } /** *

GUID of agent task.

*/ inline void SetTaskId(const Aws::String& value) { m_taskIdHasBeenSet = true; m_taskId = value; } /** *

GUID of agent task.

*/ inline void SetTaskId(Aws::String&& value) { m_taskIdHasBeenSet = true; m_taskId = std::move(value); } /** *

GUID of agent task.

*/ inline void SetTaskId(const char* value) { m_taskIdHasBeenSet = true; m_taskId.assign(value); } /** *

GUID of agent task.

*/ inline UpdateAgentStatusRequest& WithTaskId(const Aws::String& value) { SetTaskId(value); return *this;} /** *

GUID of agent task.

*/ inline UpdateAgentStatusRequest& WithTaskId(Aws::String&& value) { SetTaskId(std::move(value)); return *this;} /** *

GUID of agent task.

*/ inline UpdateAgentStatusRequest& WithTaskId(const char* value) { SetTaskId(value); return *this;} private: Aws::String m_agentId; bool m_agentIdHasBeenSet = false; AggregateStatus m_aggregateStatus; bool m_aggregateStatusHasBeenSet = false; Aws::Vector m_componentStatuses; bool m_componentStatusesHasBeenSet = false; Aws::String m_taskId; bool m_taskIdHasBeenSet = false; }; } // namespace Model } // namespace GroundStation } // namespace Aws