AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PoolInfo.h
1
6#pragma once
7#include <aws/storagegateway/StorageGateway_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/storagegateway/model/TapeStorageClass.h>
10#include <aws/storagegateway/model/RetentionLockType.h>
11#include <aws/storagegateway/model/PoolStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace StorageGateway
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_STORAGEGATEWAY_API PoolInfo();
38 AWS_STORAGEGATEWAY_API PoolInfo(Aws::Utils::Json::JsonView jsonValue);
39 AWS_STORAGEGATEWAY_API PoolInfo& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetPoolARN() const{ return m_poolARN; }
50 inline bool PoolARNHasBeenSet() const { return m_poolARNHasBeenSet; }
51 inline void SetPoolARN(const Aws::String& value) { m_poolARNHasBeenSet = true; m_poolARN = value; }
52 inline void SetPoolARN(Aws::String&& value) { m_poolARNHasBeenSet = true; m_poolARN = std::move(value); }
53 inline void SetPoolARN(const char* value) { m_poolARNHasBeenSet = true; m_poolARN.assign(value); }
54 inline PoolInfo& WithPoolARN(const Aws::String& value) { SetPoolARN(value); return *this;}
55 inline PoolInfo& WithPoolARN(Aws::String&& value) { SetPoolARN(std::move(value)); return *this;}
56 inline PoolInfo& WithPoolARN(const char* value) { SetPoolARN(value); return *this;}
58
60
64 inline const Aws::String& GetPoolName() const{ return m_poolName; }
65 inline bool PoolNameHasBeenSet() const { return m_poolNameHasBeenSet; }
66 inline void SetPoolName(const Aws::String& value) { m_poolNameHasBeenSet = true; m_poolName = value; }
67 inline void SetPoolName(Aws::String&& value) { m_poolNameHasBeenSet = true; m_poolName = std::move(value); }
68 inline void SetPoolName(const char* value) { m_poolNameHasBeenSet = true; m_poolName.assign(value); }
69 inline PoolInfo& WithPoolName(const Aws::String& value) { SetPoolName(value); return *this;}
70 inline PoolInfo& WithPoolName(Aws::String&& value) { SetPoolName(std::move(value)); return *this;}
71 inline PoolInfo& WithPoolName(const char* value) { SetPoolName(value); return *this;}
73
75
81 inline const TapeStorageClass& GetStorageClass() const{ return m_storageClass; }
82 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
83 inline void SetStorageClass(const TapeStorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
84 inline void SetStorageClass(TapeStorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); }
85 inline PoolInfo& WithStorageClass(const TapeStorageClass& value) { SetStorageClass(value); return *this;}
86 inline PoolInfo& WithStorageClass(TapeStorageClass&& value) { SetStorageClass(std::move(value)); return *this;}
88
90
98 inline const RetentionLockType& GetRetentionLockType() const{ return m_retentionLockType; }
99 inline bool RetentionLockTypeHasBeenSet() const { return m_retentionLockTypeHasBeenSet; }
100 inline void SetRetentionLockType(const RetentionLockType& value) { m_retentionLockTypeHasBeenSet = true; m_retentionLockType = value; }
101 inline void SetRetentionLockType(RetentionLockType&& value) { m_retentionLockTypeHasBeenSet = true; m_retentionLockType = std::move(value); }
102 inline PoolInfo& WithRetentionLockType(const RetentionLockType& value) { SetRetentionLockType(value); return *this;}
103 inline PoolInfo& WithRetentionLockType(RetentionLockType&& value) { SetRetentionLockType(std::move(value)); return *this;}
105
107
111 inline int GetRetentionLockTimeInDays() const{ return m_retentionLockTimeInDays; }
112 inline bool RetentionLockTimeInDaysHasBeenSet() const { return m_retentionLockTimeInDaysHasBeenSet; }
113 inline void SetRetentionLockTimeInDays(int value) { m_retentionLockTimeInDaysHasBeenSet = true; m_retentionLockTimeInDays = value; }
114 inline PoolInfo& WithRetentionLockTimeInDays(int value) { SetRetentionLockTimeInDays(value); return *this;}
116
118
122 inline const PoolStatus& GetPoolStatus() const{ return m_poolStatus; }
123 inline bool PoolStatusHasBeenSet() const { return m_poolStatusHasBeenSet; }
124 inline void SetPoolStatus(const PoolStatus& value) { m_poolStatusHasBeenSet = true; m_poolStatus = value; }
125 inline void SetPoolStatus(PoolStatus&& value) { m_poolStatusHasBeenSet = true; m_poolStatus = std::move(value); }
126 inline PoolInfo& WithPoolStatus(const PoolStatus& value) { SetPoolStatus(value); return *this;}
127 inline PoolInfo& WithPoolStatus(PoolStatus&& value) { SetPoolStatus(std::move(value)); return *this;}
129 private:
130
131 Aws::String m_poolARN;
132 bool m_poolARNHasBeenSet = false;
133
134 Aws::String m_poolName;
135 bool m_poolNameHasBeenSet = false;
136
137 TapeStorageClass m_storageClass;
138 bool m_storageClassHasBeenSet = false;
139
140 RetentionLockType m_retentionLockType;
141 bool m_retentionLockTypeHasBeenSet = false;
142
143 int m_retentionLockTimeInDays;
144 bool m_retentionLockTimeInDaysHasBeenSet = false;
145
146 PoolStatus m_poolStatus;
147 bool m_poolStatusHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace StorageGateway
152} // namespace Aws
void SetPoolARN(Aws::String &&value)
Definition PoolInfo.h:52
void SetPoolName(const Aws::String &value)
Definition PoolInfo.h:66
PoolInfo & WithPoolName(const Aws::String &value)
Definition PoolInfo.h:69
const Aws::String & GetPoolARN() const
Definition PoolInfo.h:49
void SetRetentionLockType(const RetentionLockType &value)
Definition PoolInfo.h:100
AWS_STORAGEGATEWAY_API PoolInfo()
void SetPoolStatus(PoolStatus &&value)
Definition PoolInfo.h:125
void SetPoolARN(const Aws::String &value)
Definition PoolInfo.h:51
void SetPoolName(Aws::String &&value)
Definition PoolInfo.h:67
PoolInfo & WithPoolARN(Aws::String &&value)
Definition PoolInfo.h:55
AWS_STORAGEGATEWAY_API PoolInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPoolName() const
Definition PoolInfo.h:64
void SetStorageClass(TapeStorageClass &&value)
Definition PoolInfo.h:84
PoolInfo & WithRetentionLockType(const RetentionLockType &value)
Definition PoolInfo.h:102
PoolInfo & WithPoolStatus(const PoolStatus &value)
Definition PoolInfo.h:126
PoolInfo & WithStorageClass(TapeStorageClass &&value)
Definition PoolInfo.h:86
PoolInfo & WithStorageClass(const TapeStorageClass &value)
Definition PoolInfo.h:85
const TapeStorageClass & GetStorageClass() const
Definition PoolInfo.h:81
PoolInfo & WithPoolName(const char *value)
Definition PoolInfo.h:71
void SetRetentionLockTimeInDays(int value)
Definition PoolInfo.h:113
const PoolStatus & GetPoolStatus() const
Definition PoolInfo.h:122
PoolInfo & WithRetentionLockType(RetentionLockType &&value)
Definition PoolInfo.h:103
AWS_STORAGEGATEWAY_API PoolInfo(Aws::Utils::Json::JsonView jsonValue)
bool RetentionLockTimeInDaysHasBeenSet() const
Definition PoolInfo.h:112
void SetPoolARN(const char *value)
Definition PoolInfo.h:53
void SetPoolName(const char *value)
Definition PoolInfo.h:68
PoolInfo & WithRetentionLockTimeInDays(int value)
Definition PoolInfo.h:114
PoolInfo & WithPoolARN(const char *value)
Definition PoolInfo.h:56
PoolInfo & WithPoolStatus(PoolStatus &&value)
Definition PoolInfo.h:127
AWS_STORAGEGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStorageClass(const TapeStorageClass &value)
Definition PoolInfo.h:83
void SetRetentionLockType(RetentionLockType &&value)
Definition PoolInfo.h:101
PoolInfo & WithPoolARN(const Aws::String &value)
Definition PoolInfo.h:54
void SetPoolStatus(const PoolStatus &value)
Definition PoolInfo.h:124
PoolInfo & WithPoolName(Aws::String &&value)
Definition PoolInfo.h:70
const RetentionLockType & GetRetentionLockType() const
Definition PoolInfo.h:98
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue