/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ApplicationDiscoveryService { namespace Model { /** *

Information about agents or connectors that were instructed to start * collecting data. Information includes the agent/connector ID, a description of * the operation, and whether the agent/connector configuration was * updated.

See Also:

AWS * API Reference

*/ class AWS_APPLICATIONDISCOVERYSERVICE_API AgentConfigurationStatus { public: AgentConfigurationStatus(); AgentConfigurationStatus(Aws::Utils::Json::JsonView jsonValue); AgentConfigurationStatus& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The agent/connector ID.

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

The agent/connector ID.

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

The agent/connector ID.

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

The agent/connector ID.

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

The agent/connector ID.

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

The agent/connector ID.

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

The agent/connector ID.

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

The agent/connector ID.

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

Information about the status of the StartDataCollection and * StopDataCollection operations. The system has recorded the data * collection operation. The agent/connector receives this command the next time it * polls for a new command.

*/ inline bool GetOperationSucceeded() const{ return m_operationSucceeded; } /** *

Information about the status of the StartDataCollection and * StopDataCollection operations. The system has recorded the data * collection operation. The agent/connector receives this command the next time it * polls for a new command.

*/ inline bool OperationSucceededHasBeenSet() const { return m_operationSucceededHasBeenSet; } /** *

Information about the status of the StartDataCollection and * StopDataCollection operations. The system has recorded the data * collection operation. The agent/connector receives this command the next time it * polls for a new command.

*/ inline void SetOperationSucceeded(bool value) { m_operationSucceededHasBeenSet = true; m_operationSucceeded = value; } /** *

Information about the status of the StartDataCollection and * StopDataCollection operations. The system has recorded the data * collection operation. The agent/connector receives this command the next time it * polls for a new command.

*/ inline AgentConfigurationStatus& WithOperationSucceeded(bool value) { SetOperationSucceeded(value); return *this;} /** *

A description of the operation performed.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the operation performed.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the operation performed.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the operation performed.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the operation performed.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the operation performed.

*/ inline AgentConfigurationStatus& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the operation performed.

*/ inline AgentConfigurationStatus& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the operation performed.

*/ inline AgentConfigurationStatus& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_agentId; bool m_agentIdHasBeenSet; bool m_operationSucceeded; bool m_operationSucceededHasBeenSet; Aws::String m_description; bool m_descriptionHasBeenSet; }; } // namespace Model } // namespace ApplicationDiscoveryService } // namespace Aws