AWS SDK for C++  1.9.108
AWS SDK for C++
DeleteTapeArchiveRequest.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 "DeleteTapeArchive"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetTapeARN() const{ return m_tapeARN; }
45 
50  inline bool TapeARNHasBeenSet() const { return m_tapeARNHasBeenSet; }
51 
56  inline void SetTapeARN(const Aws::String& value) { m_tapeARNHasBeenSet = true; m_tapeARN = value; }
57 
62  inline void SetTapeARN(Aws::String&& value) { m_tapeARNHasBeenSet = true; m_tapeARN = std::move(value); }
63 
68  inline void SetTapeARN(const char* value) { m_tapeARNHasBeenSet = true; m_tapeARN.assign(value); }
69 
74  inline DeleteTapeArchiveRequest& WithTapeARN(const Aws::String& value) { SetTapeARN(value); return *this;}
75 
80  inline DeleteTapeArchiveRequest& WithTapeARN(Aws::String&& value) { SetTapeARN(std::move(value)); return *this;}
81 
86  inline DeleteTapeArchiveRequest& WithTapeARN(const char* value) { SetTapeARN(value); return *this;}
87 
88 
95  inline bool GetBypassGovernanceRetention() const{ return m_bypassGovernanceRetention; }
96 
103  inline bool BypassGovernanceRetentionHasBeenSet() const { return m_bypassGovernanceRetentionHasBeenSet; }
104 
111  inline void SetBypassGovernanceRetention(bool value) { m_bypassGovernanceRetentionHasBeenSet = true; m_bypassGovernanceRetention = value; }
112 
119  inline DeleteTapeArchiveRequest& WithBypassGovernanceRetention(bool value) { SetBypassGovernanceRetention(value); return *this;}
120 
121  private:
122 
123  Aws::String m_tapeARN;
124  bool m_tapeARNHasBeenSet;
125 
126  bool m_bypassGovernanceRetention;
127  bool m_bypassGovernanceRetentionHasBeenSet;
128  };
129 
130 } // namespace Model
131 } // namespace StorageGateway
132 } // namespace Aws
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::WithTapeARN
DeleteTapeArchiveRequest & WithTapeARN(const Aws::String &value)
Definition: DeleteTapeArchiveRequest.h:74
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::WithTapeARN
DeleteTapeArchiveRequest & WithTapeARN(Aws::String &&value)
Definition: DeleteTapeArchiveRequest.h:80
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::GetTapeARN
const Aws::String & GetTapeARN() const
Definition: DeleteTapeArchiveRequest.h:44
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::SetBypassGovernanceRetention
void SetBypassGovernanceRetention(bool value)
Definition: DeleteTapeArchiveRequest.h:111
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::SetTapeARN
void SetTapeARN(Aws::String &&value)
Definition: DeleteTapeArchiveRequest.h:62
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::BypassGovernanceRetentionHasBeenSet
bool BypassGovernanceRetentionHasBeenSet() const
Definition: DeleteTapeArchiveRequest.h:103
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::WithBypassGovernanceRetention
DeleteTapeArchiveRequest & WithBypassGovernanceRetention(bool value)
Definition: DeleteTapeArchiveRequest.h:119
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::SetTapeARN
void SetTapeARN(const char *value)
Definition: DeleteTapeArchiveRequest.h:68
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
AWSString.h
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::GetBypassGovernanceRetention
bool GetBypassGovernanceRetention() const
Definition: DeleteTapeArchiveRequest.h:95
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::DeleteTapeArchiveRequest
DeleteTapeArchiveRequest()
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteTapeArchiveRequest.h:33
Aws::StorageGateway::Model::DeleteTapeArchiveRequest
Definition: DeleteTapeArchiveRequest.h:25
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::SerializePayload
Aws::String SerializePayload() const override
StorageGateway_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::WithTapeARN
DeleteTapeArchiveRequest & WithTapeARN(const char *value)
Definition: DeleteTapeArchiveRequest.h:86
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::SetTapeARN
void SetTapeARN(const Aws::String &value)
Definition: DeleteTapeArchiveRequest.h:56
Aws::StorageGateway::Model::DeleteTapeArchiveRequest::TapeARNHasBeenSet
bool TapeARNHasBeenSet() const
Definition: DeleteTapeArchiveRequest.h:50