AWS SDK for C++  1.9.161
AWS SDK for C++
DescribeAgentRequest.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 "DescribeAgent"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::String& GetAgentArn() const{ return m_agentArn; }
44 
48  inline bool AgentArnHasBeenSet() const { return m_agentArnHasBeenSet; }
49 
53  inline void SetAgentArn(const Aws::String& value) { m_agentArnHasBeenSet = true; m_agentArn = value; }
54 
58  inline void SetAgentArn(Aws::String&& value) { m_agentArnHasBeenSet = true; m_agentArn = std::move(value); }
59 
63  inline void SetAgentArn(const char* value) { m_agentArnHasBeenSet = true; m_agentArn.assign(value); }
64 
68  inline DescribeAgentRequest& WithAgentArn(const Aws::String& value) { SetAgentArn(value); return *this;}
69 
73  inline DescribeAgentRequest& WithAgentArn(Aws::String&& value) { SetAgentArn(std::move(value)); return *this;}
74 
78  inline DescribeAgentRequest& WithAgentArn(const char* value) { SetAgentArn(value); return *this;}
79 
80  private:
81 
82  Aws::String m_agentArn;
83  bool m_agentArnHasBeenSet;
84  };
85 
86 } // namespace Model
87 } // namespace DataSync
88 } // namespace Aws
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::DescribeAgentRequest::WithAgentArn
DescribeAgentRequest & WithAgentArn(const char *value)
Definition: DescribeAgentRequest.h:78
Aws::DataSync::Model::DescribeAgentRequest::SetAgentArn
void SetAgentArn(const Aws::String &value)
Definition: DescribeAgentRequest.h:53
Aws::DataSync::Model::DescribeAgentRequest::SetAgentArn
void SetAgentArn(const char *value)
Definition: DescribeAgentRequest.h:63
Aws::DataSync::Model::DescribeAgentRequest
Definition: DescribeAgentRequest.h:25
Aws::DataSync::Model::DescribeAgentRequest::WithAgentArn
DescribeAgentRequest & WithAgentArn(const Aws::String &value)
Definition: DescribeAgentRequest.h:68
Aws::DataSync::Model::DescribeAgentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::DescribeAgentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeAgentRequest.h:33
DataSyncRequest.h
Aws::DataSync::Model::DescribeAgentRequest::AgentArnHasBeenSet
bool AgentArnHasBeenSet() const
Definition: DescribeAgentRequest.h:48
Aws::DataSync::Model::DescribeAgentRequest::GetAgentArn
const Aws::String & GetAgentArn() const
Definition: DescribeAgentRequest.h:43
Aws::DataSync::Model::DescribeAgentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWSString.h
DataSync_EXPORTS.h
Aws::DataSync::Model::DescribeAgentRequest::SetAgentArn
void SetAgentArn(Aws::String &&value)
Definition: DescribeAgentRequest.h:58
Aws::DataSync::Model::DescribeAgentRequest::DescribeAgentRequest
DescribeAgentRequest()
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::DescribeAgentRequest::WithAgentArn
DescribeAgentRequest & WithAgentArn(Aws::String &&value)
Definition: DescribeAgentRequest.h:73