AWS SDK for C++  1.9.160
AWS SDK for C++
DeleteAgentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace DataSync
15 {
16 namespace Model
17 {
18 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "DeleteAgent"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
45  inline const Aws::String& GetAgentArn() const{ return m_agentArn; }
46 
52  inline bool AgentArnHasBeenSet() const { return m_agentArnHasBeenSet; }
53 
59  inline void SetAgentArn(const Aws::String& value) { m_agentArnHasBeenSet = true; m_agentArn = value; }
60 
66  inline void SetAgentArn(Aws::String&& value) { m_agentArnHasBeenSet = true; m_agentArn = std::move(value); }
67 
73  inline void SetAgentArn(const char* value) { m_agentArnHasBeenSet = true; m_agentArn.assign(value); }
74 
80  inline DeleteAgentRequest& WithAgentArn(const Aws::String& value) { SetAgentArn(value); return *this;}
81 
87  inline DeleteAgentRequest& WithAgentArn(Aws::String&& value) { SetAgentArn(std::move(value)); return *this;}
88 
94  inline DeleteAgentRequest& WithAgentArn(const char* value) { SetAgentArn(value); return *this;}
95 
96  private:
97 
98  Aws::String m_agentArn;
99  bool m_agentArnHasBeenSet;
100  };
101 
102 } // namespace Model
103 } // namespace DataSync
104 } // namespace Aws
Aws::DataSync::Model::DeleteAgentRequest::AgentArnHasBeenSet
bool AgentArnHasBeenSet() const
Definition: DeleteAgentRequest.h:52
AWS_DATASYNC_API
#define AWS_DATASYNC_API
Definition: DataSync_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DataSync::Model::DeleteAgentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::DeleteAgentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteAgentRequest.h:33
DataSyncRequest.h
Aws::DataSync::Model::DeleteAgentRequest::DeleteAgentRequest
DeleteAgentRequest()
Aws::DataSync::Model::DeleteAgentRequest
Definition: DeleteAgentRequest.h:25
Aws::DataSync::Model::DeleteAgentRequest::WithAgentArn
DeleteAgentRequest & WithAgentArn(Aws::String &&value)
Definition: DeleteAgentRequest.h:87
AWSString.h
DataSync_EXPORTS.h
Aws::DataSync::Model::DeleteAgentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DataSync::Model::DeleteAgentRequest::WithAgentArn
DeleteAgentRequest & WithAgentArn(const Aws::String &value)
Definition: DeleteAgentRequest.h:80
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::DeleteAgentRequest::WithAgentArn
DeleteAgentRequest & WithAgentArn(const char *value)
Definition: DeleteAgentRequest.h:94
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::DeleteAgentRequest::SetAgentArn
void SetAgentArn(const char *value)
Definition: DeleteAgentRequest.h:73
Aws::DataSync::Model::DeleteAgentRequest::SetAgentArn
void SetAgentArn(const Aws::String &value)
Definition: DeleteAgentRequest.h:59
Aws::DataSync::Model::DeleteAgentRequest::SetAgentArn
void SetAgentArn(Aws::String &&value)
Definition: DeleteAgentRequest.h:66
Aws::DataSync::Model::DeleteAgentRequest::GetAgentArn
const Aws::String & GetAgentArn() const
Definition: DeleteAgentRequest.h:45