AWS SDK for C++  1.9.106
AWS SDK for C++
DeleteTapeRequest.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 "DeleteTape"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
45  inline const Aws::String& GetGatewayARN() const{ return m_gatewayARN; }
46 
52  inline bool GatewayARNHasBeenSet() const { return m_gatewayARNHasBeenSet; }
53 
59  inline void SetGatewayARN(const Aws::String& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = value; }
60 
66  inline void SetGatewayARN(Aws::String&& value) { m_gatewayARNHasBeenSet = true; m_gatewayARN = std::move(value); }
67 
73  inline void SetGatewayARN(const char* value) { m_gatewayARNHasBeenSet = true; m_gatewayARN.assign(value); }
74 
80  inline DeleteTapeRequest& WithGatewayARN(const Aws::String& value) { SetGatewayARN(value); return *this;}
81 
87  inline DeleteTapeRequest& WithGatewayARN(Aws::String&& value) { SetGatewayARN(std::move(value)); return *this;}
88 
94  inline DeleteTapeRequest& WithGatewayARN(const char* value) { SetGatewayARN(value); return *this;}
95 
96 
100  inline const Aws::String& GetTapeARN() const{ return m_tapeARN; }
101 
105  inline bool TapeARNHasBeenSet() const { return m_tapeARNHasBeenSet; }
106 
110  inline void SetTapeARN(const Aws::String& value) { m_tapeARNHasBeenSet = true; m_tapeARN = value; }
111 
115  inline void SetTapeARN(Aws::String&& value) { m_tapeARNHasBeenSet = true; m_tapeARN = std::move(value); }
116 
120  inline void SetTapeARN(const char* value) { m_tapeARNHasBeenSet = true; m_tapeARN.assign(value); }
121 
125  inline DeleteTapeRequest& WithTapeARN(const Aws::String& value) { SetTapeARN(value); return *this;}
126 
130  inline DeleteTapeRequest& WithTapeARN(Aws::String&& value) { SetTapeARN(std::move(value)); return *this;}
131 
135  inline DeleteTapeRequest& WithTapeARN(const char* value) { SetTapeARN(value); return *this;}
136 
137 
144  inline bool GetBypassGovernanceRetention() const{ return m_bypassGovernanceRetention; }
145 
152  inline bool BypassGovernanceRetentionHasBeenSet() const { return m_bypassGovernanceRetentionHasBeenSet; }
153 
160  inline void SetBypassGovernanceRetention(bool value) { m_bypassGovernanceRetentionHasBeenSet = true; m_bypassGovernanceRetention = value; }
161 
168  inline DeleteTapeRequest& WithBypassGovernanceRetention(bool value) { SetBypassGovernanceRetention(value); return *this;}
169 
170  private:
171 
172  Aws::String m_gatewayARN;
173  bool m_gatewayARNHasBeenSet;
174 
175  Aws::String m_tapeARN;
176  bool m_tapeARNHasBeenSet;
177 
178  bool m_bypassGovernanceRetention;
179  bool m_bypassGovernanceRetentionHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace StorageGateway
184 } // namespace Aws
Aws::StorageGateway::Model::DeleteTapeRequest::SetTapeARN
void SetTapeARN(const Aws::String &value)
Definition: DeleteTapeRequest.h:110
Aws::StorageGateway::Model::DeleteTapeRequest::GetGatewayARN
const Aws::String & GetGatewayARN() const
Definition: DeleteTapeRequest.h:45
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::DeleteTapeRequest::SetGatewayARN
void SetGatewayARN(Aws::String &&value)
Definition: DeleteTapeRequest.h:66
Aws::StorageGateway::Model::DeleteTapeRequest::SetBypassGovernanceRetention
void SetBypassGovernanceRetention(bool value)
Definition: DeleteTapeRequest.h:160
Aws::StorageGateway::Model::DeleteTapeRequest::GetTapeARN
const Aws::String & GetTapeARN() const
Definition: DeleteTapeRequest.h:100
Aws::StorageGateway::Model::DeleteTapeRequest::WithTapeARN
DeleteTapeRequest & WithTapeARN(Aws::String &&value)
Definition: DeleteTapeRequest.h:130
Aws::StorageGateway::Model::DeleteTapeRequest::SetTapeARN
void SetTapeARN(const char *value)
Definition: DeleteTapeRequest.h:120
Aws::StorageGateway::Model::DeleteTapeRequest::GetBypassGovernanceRetention
bool GetBypassGovernanceRetention() const
Definition: DeleteTapeRequest.h:144
Aws::StorageGateway::Model::DeleteTapeRequest::WithTapeARN
DeleteTapeRequest & WithTapeARN(const char *value)
Definition: DeleteTapeRequest.h:135
Aws::StorageGateway::Model::DeleteTapeRequest::TapeARNHasBeenSet
bool TapeARNHasBeenSet() const
Definition: DeleteTapeRequest.h:105
Aws::StorageGateway::Model::DeleteTapeRequest
Definition: DeleteTapeRequest.h:25
Aws::StorageGateway::Model::DeleteTapeRequest::SetGatewayARN
void SetGatewayARN(const char *value)
Definition: DeleteTapeRequest.h:73
Aws::StorageGateway::Model::DeleteTapeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteTapeRequest.h:33
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::DeleteTapeRequest::DeleteTapeRequest
DeleteTapeRequest()
Aws::StorageGateway::Model::DeleteTapeRequest::WithGatewayARN
DeleteTapeRequest & WithGatewayARN(Aws::String &&value)
Definition: DeleteTapeRequest.h:87
Aws::StorageGateway::Model::DeleteTapeRequest::WithGatewayARN
DeleteTapeRequest & WithGatewayARN(const char *value)
Definition: DeleteTapeRequest.h:94
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::DeleteTapeRequest::GatewayARNHasBeenSet
bool GatewayARNHasBeenSet() const
Definition: DeleteTapeRequest.h:52
Aws::StorageGateway::Model::DeleteTapeRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::DeleteTapeRequest::WithGatewayARN
DeleteTapeRequest & WithGatewayARN(const Aws::String &value)
Definition: DeleteTapeRequest.h:80
Aws::StorageGateway::Model::DeleteTapeRequest::BypassGovernanceRetentionHasBeenSet
bool BypassGovernanceRetentionHasBeenSet() const
Definition: DeleteTapeRequest.h:152
StorageGatewayRequest.h
Aws::StorageGateway::Model::DeleteTapeRequest::SetTapeARN
void SetTapeARN(Aws::String &&value)
Definition: DeleteTapeRequest.h:115
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::DeleteTapeRequest::WithBypassGovernanceRetention
DeleteTapeRequest & WithBypassGovernanceRetention(bool value)
Definition: DeleteTapeRequest.h:168
Aws::StorageGateway::Model::DeleteTapeRequest::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::StorageGateway::Model::DeleteTapeRequest::WithTapeARN
DeleteTapeRequest & WithTapeARN(const Aws::String &value)
Definition: DeleteTapeRequest.h:125
Aws::StorageGateway::Model::DeleteTapeRequest::SetGatewayARN
void SetGatewayARN(const Aws::String &value)
Definition: DeleteTapeRequest.h:59