AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AssociateGatewayToServerRequest.h
1
6#pragma once
7#include <aws/backup-gateway/BackupGateway_EXPORTS.h>
8#include <aws/backup-gateway/BackupGatewayRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace BackupGateway
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_BACKUPGATEWAY_API AssociateGatewayToServerRequest();
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 "AssociateGatewayToServer"; }
31
32 AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override;
33
34 AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
36
38
43 inline const Aws::String& GetGatewayArn() const{ return m_gatewayArn; }
44 inline bool GatewayArnHasBeenSet() const { return m_gatewayArnHasBeenSet; }
45 inline void SetGatewayArn(const Aws::String& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = value; }
46 inline void SetGatewayArn(Aws::String&& value) { m_gatewayArnHasBeenSet = true; m_gatewayArn = std::move(value); }
47 inline void SetGatewayArn(const char* value) { m_gatewayArnHasBeenSet = true; m_gatewayArn.assign(value); }
48 inline AssociateGatewayToServerRequest& WithGatewayArn(const Aws::String& value) { SetGatewayArn(value); return *this;}
49 inline AssociateGatewayToServerRequest& WithGatewayArn(Aws::String&& value) { SetGatewayArn(std::move(value)); return *this;}
50 inline AssociateGatewayToServerRequest& WithGatewayArn(const char* value) { SetGatewayArn(value); return *this;}
52
54
58 inline const Aws::String& GetServerArn() const{ return m_serverArn; }
59 inline bool ServerArnHasBeenSet() const { return m_serverArnHasBeenSet; }
60 inline void SetServerArn(const Aws::String& value) { m_serverArnHasBeenSet = true; m_serverArn = value; }
61 inline void SetServerArn(Aws::String&& value) { m_serverArnHasBeenSet = true; m_serverArn = std::move(value); }
62 inline void SetServerArn(const char* value) { m_serverArnHasBeenSet = true; m_serverArn.assign(value); }
63 inline AssociateGatewayToServerRequest& WithServerArn(const Aws::String& value) { SetServerArn(value); return *this;}
64 inline AssociateGatewayToServerRequest& WithServerArn(Aws::String&& value) { SetServerArn(std::move(value)); return *this;}
65 inline AssociateGatewayToServerRequest& WithServerArn(const char* value) { SetServerArn(value); return *this;}
67 private:
68
69 Aws::String m_gatewayArn;
70 bool m_gatewayArnHasBeenSet = false;
71
72 Aws::String m_serverArn;
73 bool m_serverArnHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace BackupGateway
78} // namespace Aws
AssociateGatewayToServerRequest & WithGatewayArn(const Aws::String &value)
AssociateGatewayToServerRequest & WithServerArn(const Aws::String &value)
AssociateGatewayToServerRequest & WithServerArn(Aws::String &&value)
AssociateGatewayToServerRequest & WithGatewayArn(Aws::String &&value)
AWS_BACKUPGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AssociateGatewayToServerRequest & WithServerArn(const char *value)
AWS_BACKUPGATEWAY_API Aws::String SerializePayload() const override
AssociateGatewayToServerRequest & WithGatewayArn(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String