AWS SDK for C++  1.9.123
AWS SDK for C++
StopDataCollectionByAgentIdsRequest.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 "StopDataCollectionByAgentIds"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::Vector<Aws::String>& GetAgentIds() const{ return m_agentIds; }
42 
46  inline bool AgentIdsHasBeenSet() const { return m_agentIdsHasBeenSet; }
47 
51  inline void SetAgentIds(const Aws::Vector<Aws::String>& value) { m_agentIdsHasBeenSet = true; m_agentIds = value; }
52 
56  inline void SetAgentIds(Aws::Vector<Aws::String>&& value) { m_agentIdsHasBeenSet = true; m_agentIds = std::move(value); }
57 
61  inline StopDataCollectionByAgentIdsRequest& WithAgentIds(const Aws::Vector<Aws::String>& value) { SetAgentIds(value); return *this;}
62 
66  inline StopDataCollectionByAgentIdsRequest& WithAgentIds(Aws::Vector<Aws::String>&& value) { SetAgentIds(std::move(value)); return *this;}
67 
71  inline StopDataCollectionByAgentIdsRequest& AddAgentIds(const Aws::String& value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(value); return *this; }
72 
76  inline StopDataCollectionByAgentIdsRequest& AddAgentIds(Aws::String&& value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(std::move(value)); return *this; }
77 
81  inline StopDataCollectionByAgentIdsRequest& AddAgentIds(const char* value) { m_agentIdsHasBeenSet = true; m_agentIds.push_back(value); return *this; }
82 
83  private:
84 
85  Aws::Vector<Aws::String> m_agentIds;
86  bool m_agentIdsHasBeenSet;
87  };
88 
89 } // namespace Model
90 } // namespace ApplicationDiscoveryService
91 } // namespace Aws
Aws::ApplicationDiscoveryService::Model::StopDataCollectionByAgentIdsRequest::StopDataCollectionByAgentIdsRequest
StopDataCollectionByAgentIdsRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ApplicationDiscoveryService::Model::StopDataCollectionByAgentIdsRequest::AddAgentIds
StopDataCollectionByAgentIdsRequest & AddAgentIds(const char *value)
Definition: StopDataCollectionByAgentIdsRequest.h:81
Aws::ApplicationDiscoveryService::Model::StopDataCollectionByAgentIdsRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ApplicationDiscoveryService::Model::StopDataCollectionByAgentIdsRequest
Definition: StopDataCollectionByAgentIdsRequest.h:23
ApplicationDiscoveryService_EXPORTS.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ApplicationDiscoveryService::Model::StopDataCollectionByAgentIdsRequest::AddAgentIds
StopDataCollectionByAgentIdsRequest & AddAgentIds(Aws::String &&value)
Definition: StopDataCollectionByAgentIdsRequest.h:76
AWSVector.h
Aws::ApplicationDiscoveryService::Model::StopDataCollectionByAgentIdsRequest::SetAgentIds
void SetAgentIds(const Aws::Vector< Aws::String > &value)
Definition: StopDataCollectionByAgentIdsRequest.h:51
Aws::ApplicationDiscoveryService::Model::StopDataCollectionByAgentIdsRequest::WithAgentIds
StopDataCollectionByAgentIdsRequest & WithAgentIds(Aws::Vector< Aws::String > &&value)
Definition: StopDataCollectionByAgentIdsRequest.h:66
Aws::ApplicationDiscoveryService::Model::StopDataCollectionByAgentIdsRequest::AgentIdsHasBeenSet
bool AgentIdsHasBeenSet() const
Definition: StopDataCollectionByAgentIdsRequest.h:46
Aws::ApplicationDiscoveryService::Model::StopDataCollectionByAgentIdsRequest::AddAgentIds
StopDataCollectionByAgentIdsRequest & AddAgentIds(const Aws::String &value)
Definition: StopDataCollectionByAgentIdsRequest.h:71
Aws::ApplicationDiscoveryService::Model::StopDataCollectionByAgentIdsRequest::WithAgentIds
StopDataCollectionByAgentIdsRequest & WithAgentIds(const Aws::Vector< Aws::String > &value)
Definition: StopDataCollectionByAgentIdsRequest.h:61
AWSString.h
ApplicationDiscoveryServiceRequest.h
Aws::ApplicationDiscoveryService::ApplicationDiscoveryServiceRequest
Definition: ApplicationDiscoveryServiceRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::ApplicationDiscoveryService::Model::StopDataCollectionByAgentIdsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ApplicationDiscoveryService::Model::StopDataCollectionByAgentIdsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StopDataCollectionByAgentIdsRequest.h:31
AWS_APPLICATIONDISCOVERYSERVICE_API
#define AWS_APPLICATIONDISCOVERYSERVICE_API
Definition: ApplicationDiscoveryService_EXPORTS.h:28
Aws::ApplicationDiscoveryService::Model::StopDataCollectionByAgentIdsRequest::SetAgentIds
void SetAgentIds(Aws::Vector< Aws::String > &&value)
Definition: StopDataCollectionByAgentIdsRequest.h:56
Aws::ApplicationDiscoveryService::Model::StopDataCollectionByAgentIdsRequest::GetAgentIds
const Aws::Vector< Aws::String > & GetAgentIds() const
Definition: StopDataCollectionByAgentIdsRequest.h:41