AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
CancelArchivalRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/storagegateway/StorageGatewayRequest.h>
9#include <aws/storagegateway/StorageGateway_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace StorageGateway {
15namespace Model {
16
23 public:
24 AWS_STORAGEGATEWAY_API CancelArchivalRequest() = default;
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 "CancelArchival"; }
31
32 AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
33
34 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
35
37
38 inline const Aws::String& GetGatewayARN() const { return m_gatewayARN; }
39 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
40 template <typename GatewayARNT = Aws::String>
41 void SetGatewayARN(GatewayARNT&& value) {
42 m_gatewayARNHasBeenSet = true;
43 m_gatewayARN = std::forward<GatewayARNT>(value);
44 }
45 template <typename GatewayARNT = Aws::String>
46 CancelArchivalRequest& WithGatewayARN(GatewayARNT&& value) {
47 SetGatewayARN(std::forward<GatewayARNT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetTapeARN() const { return m_tapeARN; }
58 inline bool TapeARNHasBeenSet() const { return m_tapeARNHasBeenSet; }
59 template <typename TapeARNT = Aws::String>
60 void SetTapeARN(TapeARNT&& value) {
61 m_tapeARNHasBeenSet = true;
62 m_tapeARN = std::forward<TapeARNT>(value);
63 }
64 template <typename TapeARNT = Aws::String>
66 SetTapeARN(std::forward<TapeARNT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_gatewayARN;
72
73 Aws::String m_tapeARN;
74 bool m_gatewayARNHasBeenSet = false;
75 bool m_tapeARNHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace StorageGateway
80} // namespace Aws
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CancelArchivalRequest & WithGatewayARN(GatewayARNT &&value)
CancelArchivalRequest & WithTapeARN(TapeARNT &&value)
AWS_STORAGEGATEWAY_API CancelArchivalRequest()=default
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String