1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/storagegateway/StorageGateway_EXPORTS.h> 8 #include <aws/storagegateway/StorageGatewayRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace StorageGateway 15 { 16 namespace Model 17 { 18 19 /** 20 * <p>CancelArchivalInput</p><p><h3>See Also:</h3> <a 21 * href="http://docs.aws.amazon.com/goto/WebAPI/storagegateway-2013-06-30/CancelArchivalInput">AWS 22 * API Reference</a></p> 23 */ 24 class AWS_STORAGEGATEWAY_API CancelArchivalRequest : public StorageGatewayRequest 25 { 26 public: 27 CancelArchivalRequest(); 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. GetServiceRequestName()33 inline virtual const char* GetServiceRequestName() const override { return "CancelArchival"; } 34 35 Aws::String SerializePayload() const override; 36 37 Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; 38 39 40 GetGatewayARN()41 inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; } 42 43 GatewayARNHasBeenSet()44 inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; } 45 46 SetGatewayARN(const Aws::String & value)47 inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; } 48 49 SetGatewayARN(Aws::String && value)50 inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); } 51 52 SetGatewayARN(const char * value)53 inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); } 54 55 WithGatewayARN(const Aws::String & value)56 inline CancelArchivalRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;} 57 58 WithGatewayARN(Aws::String && value)59 inline CancelArchivalRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;} 60 61 WithGatewayARN(const char * value)62 inline CancelArchivalRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;} 63 64 65 /** 66 * <p>The Amazon Resource Name (ARN) of the virtual tape you want to cancel 67 * archiving for.</p> 68 */ GetTapeARN()69 inline const Aws::String& GetTapeARN() const{ return m_tapeARN; } 70 71 /** 72 * <p>The Amazon Resource Name (ARN) of the virtual tape you want to cancel 73 * archiving for.</p> 74 */ TapeARNHasBeenSet()75 inline bool TapeARNHasBeenSet() const { return m_tapeARNHasBeenSet; } 76 77 /** 78 * <p>The Amazon Resource Name (ARN) of the virtual tape you want to cancel 79 * archiving for.</p> 80 */ SetTapeARN(const Aws::String & value)81 inline void SetTapeARN(const Aws::String& value) { m_tapeARNHasBeenSet = true; m_tapeARN = value; } 82 83 /** 84 * <p>The Amazon Resource Name (ARN) of the virtual tape you want to cancel 85 * archiving for.</p> 86 */ SetTapeARN(Aws::String && value)87 inline void SetTapeARN(Aws::String&& value) { m_tapeARNHasBeenSet = true; m_tapeARN = std::move(value); } 88 89 /** 90 * <p>The Amazon Resource Name (ARN) of the virtual tape you want to cancel 91 * archiving for.</p> 92 */ SetTapeARN(const char * value)93 inline void SetTapeARN(const char* value) { m_tapeARNHasBeenSet = true; m_tapeARN.assign(value); } 94 95 /** 96 * <p>The Amazon Resource Name (ARN) of the virtual tape you want to cancel 97 * archiving for.</p> 98 */ WithTapeARN(const Aws::String & value)99 inline CancelArchivalRequest& WithTapeARN(const Aws::String& value) { SetTapeARN(value); return *this;} 100 101 /** 102 * <p>The Amazon Resource Name (ARN) of the virtual tape you want to cancel 103 * archiving for.</p> 104 */ WithTapeARN(Aws::String && value)105 inline CancelArchivalRequest& WithTapeARN(Aws::String&& value) { SetTapeARN(std::move(value)); return *this;} 106 107 /** 108 * <p>The Amazon Resource Name (ARN) of the virtual tape you want to cancel 109 * archiving for.</p> 110 */ WithTapeARN(const char * value)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 125