AWS SDK for C++  1.9.109
AWS SDK for C++
CancelArchivalRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace StorageGateway
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 "CancelArchival"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
40 
41  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
42 
43 
44  inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
45 
46 
47  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
48 
49 
50  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
51 
52 
53  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
54 
55 
56  inline CancelArchivalRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
57 
58 
59  inline CancelArchivalRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
60 
61 
62  inline CancelArchivalRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
63 
64 
69  inline const Aws::String& GetTapeARN() const{ return m_tapeARN; }
70 
75  inline bool TapeARNHasBeenSet() const { return m_tapeARNHasBeenSet; }
76 
81  inline void SetTapeARN(const Aws::String& value) { m_tapeARNHasBeenSet = true; m_tapeARN = value; }
82 
87  inline void SetTapeARN(Aws::String&& value) { m_tapeARNHasBeenSet = true; m_tapeARN = std::move(value); }
88 
93  inline void SetTapeARN(const char* value) { m_tapeARNHasBeenSet = true; m_tapeARN.assign(value); }
94 
99  inline CancelArchivalRequest& WithTapeARN(const Aws::String& value) { SetTapeARN(value); return *this;}
100 
105  inline CancelArchivalRequest& WithTapeARN(Aws::String&& value) { SetTapeARN(std::move(value)); return *this;}
106 
111  inline CancelArchivalRequest& WithTapeARN(const char* value) { SetTapeARN(value); return *this;}
112 
113  private:
114 
115  Aws::String m_gatewayARN;
116  bool m_gatewayARNHasBeenSet;
117 
118  Aws::String m_tapeARN;
119  bool m_tapeARNHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace StorageGateway
124 } // namespace Aws
Aws::StorageGateway::Model::CancelArchivalRequest::WithTapeARN
CancelArchivalRequest & WithTapeARN(const char *value)
Definition: CancelArchivalRequest.h:111
Aws::StorageGateway::Model::CancelArchivalRequest::GetTapeARN
const Aws::String & GetTapeARN() const
Definition: CancelArchivalRequest.h:69
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::CancelArchivalRequest::SetTapeARN
void SetTapeARN(Aws::String &&value)
Definition: CancelArchivalRequest.h:87
Aws::StorageGateway::Model::CancelArchivalRequest::GatewayARNHasBeenSet
bool GatewayARNHasBeenSet() const
Definition: CancelArchivalRequest.h:44
Aws::StorageGateway::Model::CancelArchivalRequest
Definition: CancelArchivalRequest.h:25
Aws::StorageGateway::Model::CancelArchivalRequest::WithGatewayARN
CancelArchivalRequest & WithGatewayARN(const Aws::String &value)
Definition: CancelArchivalRequest.h:56
Aws::StorageGateway::Model::CancelArchivalRequest::WithTapeARN
CancelArchivalRequest & WithTapeARN(const Aws::String &value)
Definition: CancelArchivalRequest.h:99
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::CancelArchivalRequest::CancelArchivalRequest
CancelArchivalRequest()
Aws::StorageGateway::Model::CancelArchivalRequest::SetTapeARN
void SetTapeARN(const char *value)
Definition: CancelArchivalRequest.h:93
Aws::StorageGateway::Model::CancelArchivalRequest::SetGatewayARN
void SetGatewayARN(const char *value)
Definition: CancelArchivalRequest.h:53
Aws::StorageGateway::Model::CancelArchivalRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::CancelArchivalRequest::GetGatewayARN
const Aws::String & GetGatewayARN() const
Definition: CancelArchivalRequest.h:41
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::CancelArchivalRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CancelArchivalRequest.h:33
Aws::StorageGateway::Model::CancelArchivalRequest::SetGatewayARN
void SetGatewayARN(Aws::String &&value)
Definition: CancelArchivalRequest.h:50
Aws::StorageGateway::Model::CancelArchivalRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::CancelArchivalRequest::SetTapeARN
void SetTapeARN(const Aws::String &value)
Definition: CancelArchivalRequest.h:81
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::CancelArchivalRequest::WithTapeARN
CancelArchivalRequest & WithTapeARN(Aws::String &&value)
Definition: CancelArchivalRequest.h:105
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::CancelArchivalRequest::SetGatewayARN
void SetGatewayARN(const Aws::String &value)
Definition: CancelArchivalRequest.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::CancelArchivalRequest::TapeARNHasBeenSet
bool TapeARNHasBeenSet() const
Definition: CancelArchivalRequest.h:75
Aws::StorageGateway::Model::CancelArchivalRequest::WithGatewayARN
CancelArchivalRequest & WithGatewayARN(const char *value)
Definition: CancelArchivalRequest.h:62
Aws::StorageGateway::Model::CancelArchivalRequest::WithGatewayARN
CancelArchivalRequest & WithGatewayARN(Aws::String &&value)
Definition: CancelArchivalRequest.h:59