AWS SDK for C++  1.9.123
AWS SDK for C++
StopServerRequest.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 "StopServer"; }
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 StopServerRequest& WithServerId(const Aws::String& value) { SetServerId(value); return *this;}
66 
70  inline StopServerRequest& WithServerId(Aws::String&& value) { SetServerId(std::move(value)); return *this;}
71 
75  inline StopServerRequest& 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
Aws::Transfer::Model::StopServerRequest::GetServerId
const Aws::String & GetServerId() const
Definition: StopServerRequest.h:40
TransferRequest.h
Aws::Transfer::Model::StopServerRequest::WithServerId
StopServerRequest & WithServerId(Aws::String &&value)
Definition: StopServerRequest.h:70
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Transfer::Model::StopServerRequest::ServerIdHasBeenSet
bool ServerIdHasBeenSet() const
Definition: StopServerRequest.h:45
Aws::Transfer::Model::StopServerRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: StopServerRequest.h:30
Aws::Transfer::Model::StopServerRequest::SetServerId
void SetServerId(const char *value)
Definition: StopServerRequest.h:60
Aws::Transfer::Model::StopServerRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Transfer::Model::StopServerRequest::StopServerRequest
StopServerRequest()
Aws::Transfer::Model::StopServerRequest::SetServerId
void SetServerId(Aws::String &&value)
Definition: StopServerRequest.h:55
Aws::Transfer::TransferRequest
Definition: TransferRequest.h:17
Aws::Transfer::Model::StopServerRequest::SetServerId
void SetServerId(const Aws::String &value)
Definition: StopServerRequest.h:50
Transfer_EXPORTS.h
AWSString.h
Aws::Transfer::Model::StopServerRequest::WithServerId
StopServerRequest & WithServerId(const char *value)
Definition: StopServerRequest.h:75
Aws
Definition: AccessManagementClient.h:15
Aws::Transfer::Model::StopServerRequest::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::Transfer::Model::StopServerRequest
Definition: StopServerRequest.h:22
Aws::Transfer::Model::StopServerRequest::WithServerId
StopServerRequest & WithServerId(const Aws::String &value)
Definition: StopServerRequest.h:65
AWS_TRANSFER_API
#define AWS_TRANSFER_API
Definition: Transfer_EXPORTS.h:28