AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename PoolNameT = Aws::String>
48 void SetPoolName(PoolNameT&& value) { m_poolNameHasBeenSet = true; m_poolName = std::forward<PoolNameT>(value); }
49 template<typename PoolNameT = Aws::String>
50 CreateTapePoolRequest& WithPoolName(PoolNameT&& value) { SetPoolName(std::forward<PoolNameT>(value)); return *this;}
52
54
60 inline TapeStorageClass GetStorageClass() const { return m_storageClass; }
61 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
62 inline void SetStorageClass(TapeStorageClass value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
65
67
74 inline RetentionLockType GetRetentionLockType() const { return m_retentionLockType; }
75 inline bool RetentionLockTypeHasBeenSet() const { return m_retentionLockTypeHasBeenSet; }
76 inline void SetRetentionLockType(RetentionLockType value) { m_retentionLockTypeHasBeenSet = true; m_retentionLockType = value; }
79
81
85 inline int GetRetentionLockTimeInDays() const { return m_retentionLockTimeInDays; }
86 inline bool RetentionLockTimeInDaysHasBeenSet() const { return m_retentionLockTimeInDaysHasBeenSet; }
87 inline void SetRetentionLockTimeInDays(int value) { m_retentionLockTimeInDaysHasBeenSet = true; m_retentionLockTimeInDays = value; }
90
92
99 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
100 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
101 template<typename TagsT = Aws::Vector<Tag>>
102 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
103 template<typename TagsT = Aws::Vector<Tag>>
104 CreateTapePoolRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
105 template<typename TagsT = Tag>
106 CreateTapePoolRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
108 private:
109
110 Aws::String m_poolName;
111 bool m_poolNameHasBeenSet = false;
112
114 bool m_storageClassHasBeenSet = false;
115
117 bool m_retentionLockTypeHasBeenSet = false;
118
119 int m_retentionLockTimeInDays{0};
120 bool m_retentionLockTimeInDaysHasBeenSet = false;
121
122 Aws::Vector<Tag> m_tags;
123 bool m_tagsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace StorageGateway
128} // namespace Aws
AWS_STORAGEGATEWAY_API CreateTapePoolRequest()=default
CreateTapePoolRequest & WithRetentionLockTimeInDays(int value)
AWS_STORAGEGATEWAY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTapePoolRequest & WithRetentionLockType(RetentionLockType value)
virtual const char * GetServiceRequestName() const override
CreateTapePoolRequest & WithTags(TagsT &&value)
CreateTapePoolRequest & WithPoolName(PoolNameT &&value)
CreateTapePoolRequest & WithStorageClass(TapeStorageClass value)
AWS_STORAGEGATEWAY_API Aws::String SerializePayload() const override
CreateTapePoolRequest & AddTags(TagsT &&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