AWS SDK for C++  1.9.130
AWS SDK for C++
StartDataCollectionByAgentIdsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ApplicationDiscoveryService
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "StartDataCollectionByAgentIds"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
48  inline const Aws::Vector<Aws::String>& GetAgentIds() const{ return m_agentIds; }
49 
60  inline bool AgentIdsHasBeenSet() const { return m_agentIdsHasBeenSet; }
61 
72  inline void SetAgentIds(const Aws::Vector<Aws::String>& value) { m_agentIdsHasBeenSet = true; m_agentIds = value; }
73 
84  inline void SetAgentIds(Aws::Vector<Aws::String>&& value) { m_agentIdsHasBeenSet = true; m_agentIds = std::move(value); }
85 
96  inline StartDataCollectionByAgentIdsRequest& WithAgentIds(const Aws::Vector<Aws::String>& value) { SetAgentIds(value); return *this;}
97 
108  inline StartDataCollectionByAgentIdsRequest& WithAgentIds(Aws::Vector<Aws::String>&& value) { SetAgentIds(std::move(value)); return *this;}
109 
120  inline StartDataCollectionByAgentIdsRequest& AddAgentIds(const Aws::String& value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(value); return *this; }
121 
132  inline StartDataCollectionByAgentIdsRequest& AddAgentIds(Aws::String&& value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(std::move(value)); return *this; }
133 
144  inline StartDataCollectionByAgentIdsRequest& AddAgentIds(const char* value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(value); return *this; }
145 
146  private:
147 
148  Aws::Vector<Aws::String> m_agentIds;
149  bool m_agentIdsHasBeenSet;
150  };
151 
152 } // namespace Model
153 } // namespace ApplicationDiscoveryService
154 } // namespace Aws
Aws::ApplicationDiscoveryService::Model::StartDataCollectionByAgentIdsRequest::AddAgentIds
StartDataCollectionByAgentIdsRequest & AddAgentIds(const char *value)
Definition: StartDataCollectionByAgentIdsRequest.h:144
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ApplicationDiscoveryService::Model::StartDataCollectionByAgentIdsRequest
Definition: StartDataCollectionByAgentIdsRequest.h:23
Aws::ApplicationDiscoveryService::Model::StartDataCollectionByAgentIdsRequest::AddAgentIds
StartDataCollectionByAgentIdsRequest & AddAgentIds(Aws::String &&value)
Definition: StartDataCollectionByAgentIdsRequest.h:132
ApplicationDiscoveryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
Aws::ApplicationDiscoveryService::Model::StartDataCollectionByAgentIdsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ApplicationDiscoveryService::Model::StartDataCollectionByAgentIdsRequest::SetAgentIds
void SetAgentIds(Aws::Vector< Aws::String > &&value)
Definition: StartDataCollectionByAgentIdsRequest.h:84
Aws::ApplicationDiscoveryService::Model::StartDataCollectionByAgentIdsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ApplicationDiscoveryService::Model::StartDataCollectionByAgentIdsRequest::AddAgentIds
StartDataCollectionByAgentIdsRequest & AddAgentIds(const Aws::String &value)
Definition: StartDataCollectionByAgentIdsRequest.h:120
Aws::ApplicationDiscoveryService::Model::StartDataCollectionByAgentIdsRequest::GetAgentIds
const Aws::Vector< Aws::String > & GetAgentIds() const
Definition: StartDataCollectionByAgentIdsRequest.h:48
AWSString.h
Aws::ApplicationDiscoveryService::Model::StartDataCollectionByAgentIdsRequest::WithAgentIds
StartDataCollectionByAgentIdsRequest & WithAgentIds(Aws::Vector< Aws::String > &&value)
Definition: StartDataCollectionByAgentIdsRequest.h:108
ApplicationDiscoveryServiceRequest.h
Aws::ApplicationDiscoveryService::ApplicationDiscoveryServiceRequest
Definition: ApplicationDiscoveryServiceRequest.h:17
Aws::ApplicationDiscoveryService::Model::StartDataCollectionByAgentIdsRequest::StartDataCollectionByAgentIdsRequest
StartDataCollectionByAgentIdsRequest()
Aws::ApplicationDiscoveryService::Model::StartDataCollectionByAgentIdsRequest::SetAgentIds
void SetAgentIds(const Aws::Vector< Aws::String > &value)
Definition: StartDataCollectionByAgentIdsRequest.h:72
Aws::ApplicationDiscoveryService::Model::StartDataCollectionByAgentIdsRequest::WithAgentIds
StartDataCollectionByAgentIdsRequest & WithAgentIds(const Aws::Vector< Aws::String > &value)
Definition: StartDataCollectionByAgentIdsRequest.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ApplicationDiscoveryService::Model::StartDataCollectionByAgentIdsRequest::AgentIdsHasBeenSet
bool AgentIdsHasBeenSet() const
Definition: StartDataCollectionByAgentIdsRequest.h:60
Aws::ApplicationDiscoveryService::Model::StartDataCollectionByAgentIdsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartDataCollectionByAgentIdsRequest.h:31
AWS_APPLICATIONDISCOVERYSERVICE_API
#define AWS_APPLICATIONDISCOVERYSERVICE_API
Definition: ApplicationDiscoveryService_EXPORTS.h:28