AWS SDK for C++  1.9.107
AWS SDK for C++
CreateTapePoolRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace StorageGateway
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateTapePool"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
44  inline const Aws::String& GetPoolName() const{ return m_poolName; }
45 
49  inline bool PoolNameHasBeenSet() const { return m_poolNameHasBeenSet; }
50 
54  inline void SetPoolName(const Aws::String& value) { m_poolNameHasBeenSet = true; m_poolName = value; }
55 
59  inline void SetPoolName(Aws::String&& value) { m_poolNameHasBeenSet = true; m_poolName = std::move(value); }
60 
64  inline void SetPoolName(const char* value) { m_poolNameHasBeenSet = true; m_poolName.assign(value); }
65 
69  inline CreateTapePoolRequest& WithPoolName(const Aws::String& value) { SetPoolName(value); return *this;}
70 
74  inline CreateTapePoolRequest& WithPoolName(Aws::String&& value) { SetPoolName(std::move(value)); return *this;}
75 
79  inline CreateTapePoolRequest& WithPoolName(const char* value) { SetPoolName(value); return *this;}
80 
81 
88  inline const TapeStorageClass& GetStorageClass() const{ return m_storageClass; }
89 
96  inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
97 
104  inline void SetStorageClass(const TapeStorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
105 
112  inline void SetStorageClass(TapeStorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
113 
120  inline CreateTapePoolRequest& WithStorageClass(const TapeStorageClass& value) { SetStorageClass(value); return *this;}
121 
128  inline CreateTapePoolRequest& WithStorageClass(TapeStorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
129 
130 
138  inline const RetentionLockType& GetRetentionLockType() const{ return m_retentionLockType; }
139 
147  inline bool RetentionLockTypeHasBeenSet() const { return m_retentionLockTypeHasBeenSet; }
148 
156  inline void SetRetentionLockType(const RetentionLockType& value) { m_retentionLockTypeHasBeenSet = true; m_retentionLockType = value; }
157 
165  inline void SetRetentionLockType(RetentionLockType&& value) { m_retentionLockTypeHasBeenSet = true; m_retentionLockType = std::move(value); }
166 
174  inline CreateTapePoolRequest& WithRetentionLockType(const RetentionLockType& value) { SetRetentionLockType(value); return *this;}
175 
183  inline CreateTapePoolRequest& WithRetentionLockType(RetentionLockType&& value) { SetRetentionLockType(std::move(value)); return *this;}
184 
185 
190  inline int GetRetentionLockTimeInDays() const{ return m_retentionLockTimeInDays; }
191 
196  inline bool RetentionLockTimeInDaysHasBeenSet() const { return m_retentionLockTimeInDaysHasBeenSet; }
197 
202  inline void SetRetentionLockTimeInDays(int value) { m_retentionLockTimeInDaysHasBeenSet = true; m_retentionLockTimeInDays = value; }
203 
208  inline CreateTapePoolRequest& WithRetentionLockTimeInDays(int value) { SetRetentionLockTimeInDays(value); return *this;}
209 
210 
218  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
219 
227  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
228 
236  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
237 
245  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
246 
254  inline CreateTapePoolRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
255 
263  inline CreateTapePoolRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
264 
272  inline CreateTapePoolRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
273 
281  inline CreateTapePoolRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
282 
283  private:
284 
285  Aws::String m_poolName;
286  bool m_poolNameHasBeenSet;
287 
288  TapeStorageClass m_storageClass;
289  bool m_storageClassHasBeenSet;
290 
291  RetentionLockType m_retentionLockType;
292  bool m_retentionLockTypeHasBeenSet;
293 
294  int m_retentionLockTimeInDays;
295  bool m_retentionLockTimeInDaysHasBeenSet;
296 
297  Aws::Vector<Tag> m_tags;
298  bool m_tagsHasBeenSet;
299  };
300 
301 } // namespace Model
302 } // namespace StorageGateway
303 } // namespace Aws
Aws::StorageGateway::Model::CreateTapePoolRequest::GetStorageClass
const TapeStorageClass & GetStorageClass() const
Definition: CreateTapePoolRequest.h:88
Aws::StorageGateway::Model::CreateTapePoolRequest::CreateTapePoolRequest
CreateTapePoolRequest()
Aws::StorageGateway::Model::CreateTapePoolRequest::WithPoolName
CreateTapePoolRequest & WithPoolName(const Aws::String &value)
Definition: CreateTapePoolRequest.h:69
Aws::StorageGateway::Model::CreateTapePoolRequest::SetPoolName
void SetPoolName(const char *value)
Definition: CreateTapePoolRequest.h:64
Aws::StorageGateway::Model::CreateTapePoolRequest::WithPoolName
CreateTapePoolRequest & WithPoolName(Aws::String &&value)
Definition: CreateTapePoolRequest.h:74
Aws::StorageGateway::Model::CreateTapePoolRequest::SetStorageClass
void SetStorageClass(TapeStorageClass &&value)
Definition: CreateTapePoolRequest.h:112
Aws::StorageGateway::Model::CreateTapePoolRequest::AddTags
CreateTapePoolRequest & AddTags(Tag &&value)
Definition: CreateTapePoolRequest.h:281
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
RetentionLockType.h
Aws::StorageGateway::Model::Tag
Definition: Tag.h:34
Aws::StorageGateway::Model::CreateTapePoolRequest::GetPoolName
const Aws::String & GetPoolName() const
Definition: CreateTapePoolRequest.h:44
TapeStorageClass.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::CreateTapePoolRequest::SetRetentionLockType
void SetRetentionLockType(RetentionLockType &&value)
Definition: CreateTapePoolRequest.h:165
AWSVector.h
Aws::StorageGateway::Model::CreateTapePoolRequest::SetRetentionLockType
void SetRetentionLockType(const RetentionLockType &value)
Definition: CreateTapePoolRequest.h:156
Aws::StorageGateway::Model::CreateTapePoolRequest::RetentionLockTypeHasBeenSet
bool RetentionLockTypeHasBeenSet() const
Definition: CreateTapePoolRequest.h:147
Aws::StorageGateway::Model::CreateTapePoolRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateTapePoolRequest.h:218
Aws::StorageGateway::Model::CreateTapePoolRequest::SetStorageClass
void SetStorageClass(const TapeStorageClass &value)
Definition: CreateTapePoolRequest.h:104
Aws::StorageGateway::Model::CreateTapePoolRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::CreateTapePoolRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::CreateTapePoolRequest::RetentionLockTimeInDaysHasBeenSet
bool RetentionLockTimeInDaysHasBeenSet() const
Definition: CreateTapePoolRequest.h:196
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::CreateTapePoolRequest::SetPoolName
void SetPoolName(const Aws::String &value)
Definition: CreateTapePoolRequest.h:54
Aws::StorageGateway::Model::CreateTapePoolRequest::SetPoolName
void SetPoolName(Aws::String &&value)
Definition: CreateTapePoolRequest.h:59
Aws::StorageGateway::Model::CreateTapePoolRequest::WithPoolName
CreateTapePoolRequest & WithPoolName(const char *value)
Definition: CreateTapePoolRequest.h:79
Aws::StorageGateway::Model::CreateTapePoolRequest::SetRetentionLockTimeInDays
void SetRetentionLockTimeInDays(int value)
Definition: CreateTapePoolRequest.h:202
Aws::StorageGateway::Model::CreateTapePoolRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateTapePoolRequest.h:34
Aws::StorageGateway::Model::CreateTapePoolRequest::WithTags
CreateTapePoolRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateTapePoolRequest.h:254
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::CreateTapePoolRequest::PoolNameHasBeenSet
bool PoolNameHasBeenSet() const
Definition: CreateTapePoolRequest.h:49
Aws::StorageGateway::Model::RetentionLockType
RetentionLockType
Definition: RetentionLockType.h:17
Aws::StorageGateway::Model::CreateTapePoolRequest::WithStorageClass
CreateTapePoolRequest & WithStorageClass(TapeStorageClass &&value)
Definition: CreateTapePoolRequest.h:128
Aws::StorageGateway::Model::CreateTapePoolRequest::WithStorageClass
CreateTapePoolRequest & WithStorageClass(const TapeStorageClass &value)
Definition: CreateTapePoolRequest.h:120
Aws::StorageGateway::Model::CreateTapePoolRequest::GetRetentionLockType
const RetentionLockType & GetRetentionLockType() const
Definition: CreateTapePoolRequest.h:138
Aws::StorageGateway::Model::CreateTapePoolRequest
Definition: CreateTapePoolRequest.h:26
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
Tag.h
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::CreateTapePoolRequest::GetRetentionLockTimeInDays
int GetRetentionLockTimeInDays() const
Definition: CreateTapePoolRequest.h:190
Aws::StorageGateway::Model::CreateTapePoolRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateTapePoolRequest.h:245
Aws::StorageGateway::Model::CreateTapePoolRequest::WithRetentionLockType
CreateTapePoolRequest & WithRetentionLockType(const RetentionLockType &value)
Definition: CreateTapePoolRequest.h:174
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::CreateTapePoolRequest::WithTags
CreateTapePoolRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateTapePoolRequest.h:263
Aws::StorageGateway::Model::CreateTapePoolRequest::WithRetentionLockTimeInDays
CreateTapePoolRequest & WithRetentionLockTimeInDays(int value)
Definition: CreateTapePoolRequest.h:208
Aws::StorageGateway::Model::CreateTapePoolRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateTapePoolRequest.h:227
Aws::StorageGateway::Model::CreateTapePoolRequest::AddTags
CreateTapePoolRequest & AddTags(const Tag &value)
Definition: CreateTapePoolRequest.h:272
Aws::StorageGateway::Model::TapeStorageClass
TapeStorageClass
Definition: TapeStorageClass.h:17
Aws::StorageGateway::Model::CreateTapePoolRequest::StorageClassHasBeenSet
bool StorageClassHasBeenSet() const
Definition: CreateTapePoolRequest.h:96
Aws::StorageGateway::Model::CreateTapePoolRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateTapePoolRequest.h:236
Aws::StorageGateway::Model::CreateTapePoolRequest::WithRetentionLockType
CreateTapePoolRequest & WithRetentionLockType(RetentionLockType &&value)
Definition: CreateTapePoolRequest.h:183