AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTapePoolRequest.h
1
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 <aws/storagegateway/model/TapeStorageClass.h>
11#include <aws/storagegateway/model/RetentionLockType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/storagegateway/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace StorageGateway
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_STORAGEGATEWAY_API CreateTapePoolRequest();
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_STORAGEGATEWAY_API Aws::String SerializePayload() const override;
37
38 AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39
40
42
45 inline const Aws::String& GetPoolName() const{ return m_poolName; }
46 inline bool PoolNameHasBeenSet() const { return m_poolNameHasBeenSet; }
47 inline void SetPoolName(const Aws::String& value) { m_poolNameHasBeenSet = true; m_poolName = value; }
48 inline void SetPoolName(Aws::String&& value) { m_poolNameHasBeenSet = true; m_poolName = std::move(value); }
49 inline void SetPoolName(const char* value) { m_poolNameHasBeenSet = true; m_poolName.assign(value); }
50 inline CreateTapePoolRequest& WithPoolName(const Aws::String& value) { SetPoolName(value); return *this;}
51 inline CreateTapePoolRequest& WithPoolName(Aws::String&& value) { SetPoolName(std::move(value)); return *this;}
52 inline CreateTapePoolRequest& WithPoolName(const char* value) { SetPoolName(value); return *this;}
54
56
62 inline const TapeStorageClass& GetStorageClass() const{ return m_storageClass; }
63 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
64 inline void SetStorageClass(const TapeStorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
65 inline void SetStorageClass(TapeStorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
66 inline CreateTapePoolRequest& WithStorageClass(const TapeStorageClass& value) { SetStorageClass(value); return *this;}
67 inline CreateTapePoolRequest& WithStorageClass(TapeStorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
69
71
78 inline const RetentionLockType& GetRetentionLockType() const{ return m_retentionLockType; }
79 inline bool RetentionLockTypeHasBeenSet() const { return m_retentionLockTypeHasBeenSet; }
80 inline void SetRetentionLockType(const RetentionLockType& value) { m_retentionLockTypeHasBeenSet = true; m_retentionLockType = value; }
81 inline void SetRetentionLockType(RetentionLockType&& value) { m_retentionLockTypeHasBeenSet = true; m_retentionLockType = std::move(value); }
83 inline CreateTapePoolRequest& WithRetentionLockType(RetentionLockType&& value) { SetRetentionLockType(std::move(value)); return *this;}
85
87
91 inline int GetRetentionLockTimeInDays() const{ return m_retentionLockTimeInDays; }
92 inline bool RetentionLockTimeInDaysHasBeenSet() const { return m_retentionLockTimeInDaysHasBeenSet; }
93 inline void SetRetentionLockTimeInDays(int value) { m_retentionLockTimeInDaysHasBeenSet = true; m_retentionLockTimeInDays = value; }
96
98
105 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
106 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
107 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
108 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
109 inline CreateTapePoolRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
110 inline CreateTapePoolRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
111 inline CreateTapePoolRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
112 inline CreateTapePoolRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
114 private:
115
116 Aws::String m_poolName;
117 bool m_poolNameHasBeenSet = false;
118
119 TapeStorageClass m_storageClass;
120 bool m_storageClassHasBeenSet = false;
121
122 RetentionLockType m_retentionLockType;
123 bool m_retentionLockTypeHasBeenSet = false;
124
125 int m_retentionLockTimeInDays;
126 bool m_retentionLockTimeInDaysHasBeenSet = false;
127
128 Aws::Vector<Tag> m_tags;
129 bool m_tagsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace StorageGateway
134} // namespace Aws
void SetStorageClass(const TapeStorageClass &value)
CreateTapePoolRequest & WithTags(const Aws::Vector< Tag > &value)
CreateTapePoolRequest & WithPoolName(const char *value)
CreateTapePoolRequest & WithStorageClass(const TapeStorageClass &value)
CreateTapePoolRequest & WithRetentionLockType(RetentionLockType &&value)
CreateTapePoolRequest & WithRetentionLockTimeInDays(int value)
void SetRetentionLockType(const RetentionLockType &value)
CreateTapePoolRequest & WithStorageClass(TapeStorageClass &&value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
CreateTapePoolRequest & WithPoolName(const Aws::String &value)
const RetentionLockType & GetRetentionLockType() const
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
CreateTapePoolRequest & WithPoolName(Aws::String &&value)
CreateTapePoolRequest & WithTags(Aws::Vector< Tag > &&value)
CreateTapePoolRequest & AddTags(const Tag &value)
CreateTapePoolRequest & WithRetentionLockType(const RetentionLockType &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector