AWS SDK for C++  1.9.153
AWS SDK for C++
UpdateAgentRequest.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 "UpdateAgent"; }
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 UpdateAgentRequest& WithAgentArn(const Aws::String& value) { SetAgentArn(value); return *this;}
69 
73  inline UpdateAgentRequest& WithAgentArn(Aws::String&& value) { SetAgentArn(std::move(value)); return *this;}
74 
78  inline UpdateAgentRequest& WithAgentArn(const char* value) { SetAgentArn(value); return *this;}
79 
80 
84  inline const Aws::String& GetName() const{ return m_name; }
85 
89  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
90 
94  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
95 
99  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
100 
104  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
105 
109  inline UpdateAgentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
110 
114  inline UpdateAgentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
115 
119  inline UpdateAgentRequest& WithName(const char* value) { SetName(value); return *this;}
120 
121  private:
122 
123  Aws::String m_agentArn;
124  bool m_agentArnHasBeenSet;
125 
126  Aws::String m_name;
127  bool m_nameHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace DataSync
132 } // namespace Aws
Aws::DataSync::Model::UpdateAgentRequest::GetName
const Aws::String & GetName() const
Definition: UpdateAgentRequest.h:84
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::UpdateAgentRequest::SetAgentArn
void SetAgentArn(const char *value)
Definition: UpdateAgentRequest.h:63
Aws::DataSync::Model::UpdateAgentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DataSyncRequest.h
Aws::DataSync::Model::UpdateAgentRequest::WithName
UpdateAgentRequest & WithName(const char *value)
Definition: UpdateAgentRequest.h:119
Aws::DataSync::Model::UpdateAgentRequest::WithAgentArn
UpdateAgentRequest & WithAgentArn(const Aws::String &value)
Definition: UpdateAgentRequest.h:68
Aws::DataSync::Model::UpdateAgentRequest::WithName
UpdateAgentRequest & WithName(const Aws::String &value)
Definition: UpdateAgentRequest.h:109
Aws::DataSync::Model::UpdateAgentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateAgentRequest.h:33
Aws::DataSync::Model::UpdateAgentRequest::SetName
void SetName(const char *value)
Definition: UpdateAgentRequest.h:104
Aws::DataSync::Model::UpdateAgentRequest::SetAgentArn
void SetAgentArn(const Aws::String &value)
Definition: UpdateAgentRequest.h:53
AWSString.h
DataSync_EXPORTS.h
Aws::DataSync::Model::UpdateAgentRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateAgentRequest.h:94
Aws::DataSync::Model::UpdateAgentRequest
Definition: UpdateAgentRequest.h:25
Aws::DataSync::Model::UpdateAgentRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateAgentRequest.h:89
Aws::DataSync::Model::UpdateAgentRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateAgentRequest.h:99
Aws::DataSync::Model::UpdateAgentRequest::GetAgentArn
const Aws::String & GetAgentArn() const
Definition: UpdateAgentRequest.h:43
Aws::DataSync::DataSyncRequest
Definition: DataSyncRequest.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::DataSync::Model::UpdateAgentRequest::WithAgentArn
UpdateAgentRequest & WithAgentArn(Aws::String &&value)
Definition: UpdateAgentRequest.h:73
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DataSync::Model::UpdateAgentRequest::WithAgentArn
UpdateAgentRequest & WithAgentArn(const char *value)
Definition: UpdateAgentRequest.h:78
Aws::DataSync::Model::UpdateAgentRequest::AgentArnHasBeenSet
bool AgentArnHasBeenSet() const
Definition: UpdateAgentRequest.h:48
Aws::DataSync::Model::UpdateAgentRequest::SetAgentArn
void SetAgentArn(Aws::String &&value)
Definition: UpdateAgentRequest.h:58
Aws::DataSync::Model::UpdateAgentRequest::UpdateAgentRequest
UpdateAgentRequest()
Aws::DataSync::Model::UpdateAgentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DataSync::Model::UpdateAgentRequest::WithName
UpdateAgentRequest & WithName(Aws::String &&value)
Definition: UpdateAgentRequest.h:114