/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace ApplicationDiscoveryService { namespace Model { /** */ class StartDataCollectionByAgentIdsRequest : public ApplicationDiscoveryServiceRequest { public: AWS_APPLICATIONDISCOVERYSERVICE_API StartDataCollectionByAgentIdsRequest(); // 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 "StartDataCollectionByAgentIds"; } AWS_APPLICATIONDISCOVERYSERVICE_API Aws::String SerializePayload() const override; AWS_APPLICATIONDISCOVERYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The IDs of the agents from which to start collecting data. If you send a * request to an agent ID that you do not have permission to contact, according to * your Amazon Web Services account, the service does not throw an exception. * Instead, it returns the error in the Description field. If you send a * request to multiple agents and you do not have permission to contact some of * those agents, the system does not throw an exception. Instead, the system shows * Failed in the Description field.

*/ inline const Aws::Vector& GetAgentIds() const{ return m_agentIds; } /** *

The IDs of the agents from which to start collecting data. If you send a * request to an agent ID that you do not have permission to contact, according to * your Amazon Web Services account, the service does not throw an exception. * Instead, it returns the error in the Description field. If you send a * request to multiple agents and you do not have permission to contact some of * those agents, the system does not throw an exception. Instead, the system shows * Failed in the Description field.

*/ inline bool AgentIdsHasBeenSet() const { return m_agentIdsHasBeenSet; } /** *

The IDs of the agents from which to start collecting data. If you send a * request to an agent ID that you do not have permission to contact, according to * your Amazon Web Services account, the service does not throw an exception. * Instead, it returns the error in the Description field. If you send a * request to multiple agents and you do not have permission to contact some of * those agents, the system does not throw an exception. Instead, the system shows * Failed in the Description field.

*/ inline void SetAgentIds(const Aws::Vector& value) { m_agentIdsHasBeenSet = true; m_agentIds = value; } /** *

The IDs of the agents from which to start collecting data. If you send a * request to an agent ID that you do not have permission to contact, according to * your Amazon Web Services account, the service does not throw an exception. * Instead, it returns the error in the Description field. If you send a * request to multiple agents and you do not have permission to contact some of * those agents, the system does not throw an exception. Instead, the system shows * Failed in the Description field.

*/ inline void SetAgentIds(Aws::Vector&& value) { m_agentIdsHasBeenSet = true; m_agentIds = std::move(value); } /** *

The IDs of the agents from which to start collecting data. If you send a * request to an agent ID that you do not have permission to contact, according to * your Amazon Web Services account, the service does not throw an exception. * Instead, it returns the error in the Description field. If you send a * request to multiple agents and you do not have permission to contact some of * those agents, the system does not throw an exception. Instead, the system shows * Failed in the Description field.

*/ inline StartDataCollectionByAgentIdsRequest& WithAgentIds(const Aws::Vector& value) { SetAgentIds(value); return *this;} /** *

The IDs of the agents from which to start collecting data. If you send a * request to an agent ID that you do not have permission to contact, according to * your Amazon Web Services account, the service does not throw an exception. * Instead, it returns the error in the Description field. If you send a * request to multiple agents and you do not have permission to contact some of * those agents, the system does not throw an exception. Instead, the system shows * Failed in the Description field.

*/ inline StartDataCollectionByAgentIdsRequest& WithAgentIds(Aws::Vector&& value) { SetAgentIds(std::move(value)); return *this;} /** *

The IDs of the agents from which to start collecting data. If you send a * request to an agent ID that you do not have permission to contact, according to * your Amazon Web Services account, the service does not throw an exception. * Instead, it returns the error in the Description field. If you send a * request to multiple agents and you do not have permission to contact some of * those agents, the system does not throw an exception. Instead, the system shows * Failed in the Description field.

*/ inline StartDataCollectionByAgentIdsRequest& AddAgentIds(const Aws::String& value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(value); return *this; } /** *

The IDs of the agents from which to start collecting data. If you send a * request to an agent ID that you do not have permission to contact, according to * your Amazon Web Services account, the service does not throw an exception. * Instead, it returns the error in the Description field. If you send a * request to multiple agents and you do not have permission to contact some of * those agents, the system does not throw an exception. Instead, the system shows * Failed in the Description field.

*/ inline StartDataCollectionByAgentIdsRequest& AddAgentIds(Aws::String&& value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(std::move(value)); return *this; } /** *

The IDs of the agents from which to start collecting data. If you send a * request to an agent ID that you do not have permission to contact, according to * your Amazon Web Services account, the service does not throw an exception. * Instead, it returns the error in the Description field. If you send a * request to multiple agents and you do not have permission to contact some of * those agents, the system does not throw an exception. Instead, the system shows * Failed in the Description field.

*/ inline StartDataCollectionByAgentIdsRequest& AddAgentIds(const char* value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(value); return *this; } private: Aws::Vector m_agentIds; bool m_agentIdsHasBeenSet = false; }; } // namespace Model } // namespace ApplicationDiscoveryService } // namespace Aws