AWS SDK for C++  1.9.108
AWS SDK for C++
AssignTapePoolRequest.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 
22  {
23  public:
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 "AssignTapePool"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetTapeARN() const{ return m_tapeARN; }
42 
47  inline bool TapeARNHasBeenSet() const { return m_tapeARNHasBeenSet; }
48 
53  inline void SetTapeARN(const Aws::String& value) { m_tapeARNHasBeenSet = true; m_tapeARN = value; }
54 
59  inline void SetTapeARN(Aws::String&& value) { m_tapeARNHasBeenSet = true; m_tapeARN = std::move(value); }
60 
65  inline void SetTapeARN(const char* value) { m_tapeARNHasBeenSet = true; m_tapeARN.assign(value); }
66 
71  inline AssignTapePoolRequest& WithTapeARN(const Aws::String& value) { SetTapeARN(value); return *this;}
72 
77  inline AssignTapePoolRequest& WithTapeARN(Aws::String&& value) { SetTapeARN(std::move(value)); return *this;}
78 
83  inline AssignTapePoolRequest& WithTapeARN(const char* value) { SetTapeARN(value); return *this;}
84 
85 
94  inline const Aws::String& GetPoolId() const{ return m_poolId; }
95 
104  inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
105 
114  inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
115 
124  inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
125 
134  inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
135 
144  inline AssignTapePoolRequest& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
145 
154  inline AssignTapePoolRequest& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
155 
164  inline AssignTapePoolRequest& WithPoolId(const char* value) { SetPoolId(value); return *this;}
165 
166 
176  inline bool GetBypassGovernanceRetention() const{ return m_bypassGovernanceRetention; }
177 
187  inline bool BypassGovernanceRetentionHasBeenSet() const { return m_bypassGovernanceRetentionHasBeenSet; }
188 
198  inline void SetBypassGovernanceRetention(bool value) { m_bypassGovernanceRetentionHasBeenSet = true; m_bypassGovernanceRetention = value; }
199 
209  inline AssignTapePoolRequest& WithBypassGovernanceRetention(bool value) { SetBypassGovernanceRetention(value); return *this;}
210 
211  private:
212 
213  Aws::String m_tapeARN;
214  bool m_tapeARNHasBeenSet;
215 
216  Aws::String m_poolId;
217  bool m_poolIdHasBeenSet;
218 
219  bool m_bypassGovernanceRetention;
220  bool m_bypassGovernanceRetentionHasBeenSet;
221  };
222 
223 } // namespace Model
224 } // namespace StorageGateway
225 } // namespace Aws
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::AssignTapePoolRequest::SetBypassGovernanceRetention
void SetBypassGovernanceRetention(bool value)
Definition: AssignTapePoolRequest.h:198
Aws::StorageGateway::Model::AssignTapePoolRequest::WithBypassGovernanceRetention
AssignTapePoolRequest & WithBypassGovernanceRetention(bool value)
Definition: AssignTapePoolRequest.h:209
Aws::StorageGateway::Model::AssignTapePoolRequest::TapeARNHasBeenSet
bool TapeARNHasBeenSet() const
Definition: AssignTapePoolRequest.h:47
Aws::StorageGateway::Model::AssignTapePoolRequest::SetTapeARN
void SetTapeARN(Aws::String &&value)
Definition: AssignTapePoolRequest.h:59
Aws::StorageGateway::Model::AssignTapePoolRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssignTapePoolRequest.h:30
Aws::StorageGateway::Model::AssignTapePoolRequest::SetPoolId
void SetPoolId(const char *value)
Definition: AssignTapePoolRequest.h:134
Aws::StorageGateway::Model::AssignTapePoolRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::AssignTapePoolRequest::AssignTapePoolRequest
AssignTapePoolRequest()
Aws::StorageGateway::Model::AssignTapePoolRequest::BypassGovernanceRetentionHasBeenSet
bool BypassGovernanceRetentionHasBeenSet() const
Definition: AssignTapePoolRequest.h:187
Aws::StorageGateway::Model::AssignTapePoolRequest::GetBypassGovernanceRetention
bool GetBypassGovernanceRetention() const
Definition: AssignTapePoolRequest.h:176
Aws::StorageGateway::Model::AssignTapePoolRequest::SetTapeARN
void SetTapeARN(const char *value)
Definition: AssignTapePoolRequest.h:65
Aws::StorageGateway::Model::AssignTapePoolRequest::WithTapeARN
AssignTapePoolRequest & WithTapeARN(const Aws::String &value)
Definition: AssignTapePoolRequest.h:71
Aws::StorageGateway::Model::AssignTapePoolRequest::SetPoolId
void SetPoolId(const Aws::String &value)
Definition: AssignTapePoolRequest.h:114
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::AssignTapePoolRequest::PoolIdHasBeenSet
bool PoolIdHasBeenSet() const
Definition: AssignTapePoolRequest.h:104
Aws::StorageGateway::Model::AssignTapePoolRequest::GetTapeARN
const Aws::String & GetTapeARN() const
Definition: AssignTapePoolRequest.h:41
Aws::StorageGateway::Model::AssignTapePoolRequest::WithTapeARN
AssignTapePoolRequest & WithTapeARN(Aws::String &&value)
Definition: AssignTapePoolRequest.h:77
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::AssignTapePoolRequest
Definition: AssignTapePoolRequest.h:22
Aws::StorageGateway::Model::AssignTapePoolRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::AssignTapePoolRequest::WithPoolId
AssignTapePoolRequest & WithPoolId(const Aws::String &value)
Definition: AssignTapePoolRequest.h:144
Aws::StorageGateway::Model::AssignTapePoolRequest::GetPoolId
const Aws::String & GetPoolId() const
Definition: AssignTapePoolRequest.h:94
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::AssignTapePoolRequest::WithTapeARN
AssignTapePoolRequest & WithTapeARN(const char *value)
Definition: AssignTapePoolRequest.h:83
Aws::StorageGateway::Model::AssignTapePoolRequest::SetPoolId
void SetPoolId(Aws::String &&value)
Definition: AssignTapePoolRequest.h:124
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::AssignTapePoolRequest::WithPoolId
AssignTapePoolRequest & WithPoolId(const char *value)
Definition: AssignTapePoolRequest.h:164
Aws::StorageGateway::Model::AssignTapePoolRequest::WithPoolId
AssignTapePoolRequest & WithPoolId(Aws::String &&value)
Definition: AssignTapePoolRequest.h:154
Aws::StorageGateway::Model::AssignTapePoolRequest::SetTapeARN
void SetTapeARN(const Aws::String &value)
Definition: AssignTapePoolRequest.h:53