AWS SDK for C++  1.9.123
AWS SDK for C++
StartServerRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Transfer
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "StartServer"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
40  inline const Aws::String& GetServerId() const{ return m_serverId; }
41 
45  inline bool ServerIdHasBeenSet() const { return m_serverIdHasBeenSet; }
46 
50  inline void SetServerId(const Aws::String& value) { m_serverIdHasBeenSet = true; m_serverId = value; }
51 
55  inline void SetServerId(Aws::String&& value) { m_serverIdHasBeenSet = true; m_serverId = std::move(value); }
56 
60  inline void SetServerId(const char* value) { m_serverIdHasBeenSet = true; m_serverId.assign(value); }
61 
65  inline StartServerRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
66 
70  inline StartServerRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
71 
75  inline StartServerRequest& WithServerId(const char* value) { SetServerId(value); return *this;}
76 
77  private:
78 
79  Aws::String m_serverId;
80  bool m_serverIdHasBeenSet;
81  };
82 
83 } // namespace Model
84 } // namespace Transfer
85 } // namespace Aws
TransferRequest.h
Aws::Transfer::Model::StartServerRequest::SetServerId
void SetServerId(Aws::String &&value)
Definition: StartServerRequest.h:55
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Transfer::Model::StartServerRequest::WithServerId
StartServerRequest & WithServerId(Aws::String &&value)
Definition: StartServerRequest.h:70
Aws::Transfer::Model::StartServerRequest::ServerIdHasBeenSet
bool ServerIdHasBeenSet() const
Definition: StartServerRequest.h:45
Aws::Transfer::Model::StartServerRequest::SetServerId
void SetServerId(const Aws::String &value)
Definition: StartServerRequest.h:50
Aws::Transfer::Model::StartServerRequest::GetServerId
const Aws::String & GetServerId() const
Definition: StartServerRequest.h:40
Aws::Transfer::Model::StartServerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StartServerRequest.h:30
Aws::Transfer::Model::StartServerRequest::SetServerId
void SetServerId(const char *value)
Definition: StartServerRequest.h:60
Aws::Transfer::Model::StartServerRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Transfer::TransferRequest
Definition: TransferRequest.h:17
Transfer_EXPORTS.h
AWSString.h
Aws::Transfer::Model::StartServerRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Transfer::Model::StartServerRequest::WithServerId
StartServerRequest & WithServerId(const Aws::String &value)
Definition: StartServerRequest.h:65
Aws::Transfer::Model::StartServerRequest
Definition: StartServerRequest.h:22
Aws::Transfer::Model::StartServerRequest::StartServerRequest
StartServerRequest()
Aws::Transfer::Model::StartServerRequest::WithServerId
StartServerRequest & WithServerId(const char *value)
Definition: StartServerRequest.h:75
AWS_TRANSFER_API
#define AWS_TRANSFER_API
Definition: Transfer_EXPORTS.h:28