AWS SDK for C++  1.9.105
AWS SDK for C++
StorageType.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace ElasticsearchService
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
43 
44  inline const Aws::String& GetStorageTypeName() const{ return m_storageTypeName; }
45 
46 
47  inline bool StorageTypeNameHasBeenSet() const { return m_storageTypeNameHasBeenSet; }
48 
49 
50  inline void SetStorageTypeName(const Aws::String& value) { m_storageTypeNameHasBeenSet = true; m_storageTypeName = value; }
51 
52 
53  inline void SetStorageTypeName(Aws::String&& value) { m_storageTypeNameHasBeenSet = true; m_storageTypeName = std::move(value); }
54 
55 
56  inline void SetStorageTypeName(const char* value) { m_storageTypeNameHasBeenSet = true; m_storageTypeName.assign(value); }
57 
58 
59  inline StorageType& WithStorageTypeName(const Aws::String& value) { SetStorageTypeName(value); return *this;}
60 
61 
62  inline StorageType& WithStorageTypeName(Aws::String&& value) { SetStorageTypeName(std::move(value)); return *this;}
63 
64 
65  inline StorageType& WithStorageTypeName(const char* value) { SetStorageTypeName(value); return *this;}
66 
67 
68 
69  inline const Aws::String& GetStorageSubTypeName() const{ return m_storageSubTypeName; }
70 
71 
72  inline bool StorageSubTypeNameHasBeenSet() const { return m_storageSubTypeNameHasBeenSet; }
73 
74 
75  inline void SetStorageSubTypeName(const Aws::String& value) { m_storageSubTypeNameHasBeenSet = true; m_storageSubTypeName = value; }
76 
77 
78  inline void SetStorageSubTypeName(Aws::String&& value) { m_storageSubTypeNameHasBeenSet = true; m_storageSubTypeName = std::move(value); }
79 
80 
81  inline void SetStorageSubTypeName(const char* value) { m_storageSubTypeNameHasBeenSet = true; m_storageSubTypeName.assign(value); }
82 
83 
84  inline StorageType& WithStorageSubTypeName(const Aws::String& value) { SetStorageSubTypeName(value); return *this;}
85 
86 
87  inline StorageType& WithStorageSubTypeName(Aws::String&& value) { SetStorageSubTypeName(std::move(value)); return *this;}
88 
89 
90  inline StorageType& WithStorageSubTypeName(const char* value) { SetStorageSubTypeName(value); return *this;}
91 
92 
96  inline const Aws::Vector<StorageTypeLimit>& GetStorageTypeLimits() const{ return m_storageTypeLimits; }
97 
101  inline bool StorageTypeLimitsHasBeenSet() const { return m_storageTypeLimitsHasBeenSet; }
102 
106  inline void SetStorageTypeLimits(const Aws::Vector<StorageTypeLimit>& value) { m_storageTypeLimitsHasBeenSet = true; m_storageTypeLimits = value; }
107 
111  inline void SetStorageTypeLimits(Aws::Vector<StorageTypeLimit>&& value) { m_storageTypeLimitsHasBeenSet = true; m_storageTypeLimits = std::move(value); }
112 
116  inline StorageType& WithStorageTypeLimits(const Aws::Vector<StorageTypeLimit>& value) { SetStorageTypeLimits(value); return *this;}
117 
121  inline StorageType& WithStorageTypeLimits(Aws::Vector<StorageTypeLimit>&& value) { SetStorageTypeLimits(std::move(value)); return *this;}
122 
126  inline StorageType& AddStorageTypeLimits(const StorageTypeLimit& value) { m_storageTypeLimitsHasBeenSet = true; m_storageTypeLimits.push_back(value); return *this; }
127 
131  inline StorageType& AddStorageTypeLimits(StorageTypeLimit&& value) { m_storageTypeLimitsHasBeenSet = true; m_storageTypeLimits.push_back(std::move(value)); return *this; }
132 
133  private:
134 
135  Aws::String m_storageTypeName;
136  bool m_storageTypeNameHasBeenSet;
137 
138  Aws::String m_storageSubTypeName;
139  bool m_storageSubTypeNameHasBeenSet;
140 
141  Aws::Vector<StorageTypeLimit> m_storageTypeLimits;
142  bool m_storageTypeLimitsHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace ElasticsearchService
147 } // namespace Aws
Aws::ElasticsearchService::Model::StorageType::AddStorageTypeLimits
StorageType & AddStorageTypeLimits(const StorageTypeLimit &value)
Definition: StorageType.h:126
Aws::ElasticsearchService::Model::StorageType::WithStorageSubTypeName
StorageType & WithStorageSubTypeName(const char *value)
Definition: StorageType.h:90
Aws::ElasticsearchService::Model::StorageType::GetStorageSubTypeName
const Aws::String & GetStorageSubTypeName() const
Definition: StorageType.h:69
Aws::ElasticsearchService::Model::StorageType::SetStorageTypeName
void SetStorageTypeName(const Aws::String &value)
Definition: StorageType.h:50
Aws::ElasticsearchService::Model::StorageTypeLimit
Definition: StorageTypeLimit.h:34
Aws::ElasticsearchService::Model::StorageType::WithStorageSubTypeName
StorageType & WithStorageSubTypeName(Aws::String &&value)
Definition: StorageType.h:87
Aws::ElasticsearchService::Model::StorageType::StorageType
StorageType(Aws::Utils::Json::JsonView jsonValue)
StorageTypeLimit.h
Aws::ElasticsearchService::Model::StorageType::operator=
StorageType & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ElasticsearchService::Model::StorageType::StorageTypeNameHasBeenSet
bool StorageTypeNameHasBeenSet() const
Definition: StorageType.h:47
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticsearchService::Model::StorageType::WithStorageTypeName
StorageType & WithStorageTypeName(const char *value)
Definition: StorageType.h:65
AWSVector.h
AWS_ELASTICSEARCHSERVICE_API
#define AWS_ELASTICSEARCHSERVICE_API
Definition: ElasticsearchService_EXPORTS.h:28
Aws::ElasticsearchService::Model::StorageType::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ElasticsearchService::Model::StorageType::GetStorageTypeLimits
const Aws::Vector< StorageTypeLimit > & GetStorageTypeLimits() const
Definition: StorageType.h:96
ElasticsearchService_EXPORTS.h
Aws::ElasticsearchService::Model::StorageType::WithStorageSubTypeName
StorageType & WithStorageSubTypeName(const Aws::String &value)
Definition: StorageType.h:84
Aws::ElasticsearchService::Model::StorageType::WithStorageTypeLimits
StorageType & WithStorageTypeLimits(const Aws::Vector< StorageTypeLimit > &value)
Definition: StorageType.h:116
Aws::ElasticsearchService::Model::StorageType
Definition: StorageType.h:35
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ElasticsearchService::Model::StorageType::StorageType
StorageType()
Aws::ElasticsearchService::Model::StorageType::SetStorageSubTypeName
void SetStorageSubTypeName(Aws::String &&value)
Definition: StorageType.h:78
Aws::ElasticsearchService::Model::StorageType::SetStorageTypeLimits
void SetStorageTypeLimits(const Aws::Vector< StorageTypeLimit > &value)
Definition: StorageType.h:106
Aws::ElasticsearchService::Model::StorageType::WithStorageTypeName
StorageType & WithStorageTypeName(const Aws::String &value)
Definition: StorageType.h:59
Aws::ElasticsearchService::Model::StorageType::WithStorageTypeLimits
StorageType & WithStorageTypeLimits(Aws::Vector< StorageTypeLimit > &&value)
Definition: StorageType.h:121
Aws::ElasticsearchService::Model::StorageType::SetStorageTypeName
void SetStorageTypeName(Aws::String &&value)
Definition: StorageType.h:53
Aws::ElasticsearchService::Model::StorageType::SetStorageSubTypeName
void SetStorageSubTypeName(const char *value)
Definition: StorageType.h:81
Aws::ElasticsearchService::Model::StorageType::AddStorageTypeLimits
StorageType & AddStorageTypeLimits(StorageTypeLimit &&value)
Definition: StorageType.h:131
Aws::ElasticsearchService::Model::StorageType::WithStorageTypeName
StorageType & WithStorageTypeName(Aws::String &&value)
Definition: StorageType.h:62
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticsearchService::Model::StorageType::SetStorageTypeName
void SetStorageTypeName(const char *value)
Definition: StorageType.h:56
Aws::ElasticsearchService::Model::StorageType::SetStorageSubTypeName
void SetStorageSubTypeName(const Aws::String &value)
Definition: StorageType.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticsearchService::Model::StorageType::GetStorageTypeName
const Aws::String & GetStorageTypeName() const
Definition: StorageType.h:44
Aws::ElasticsearchService::Model::StorageType::StorageSubTypeNameHasBeenSet
bool StorageSubTypeNameHasBeenSet() const
Definition: StorageType.h:72
Aws::ElasticsearchService::Model::StorageType::SetStorageTypeLimits
void SetStorageTypeLimits(Aws::Vector< StorageTypeLimit > &&value)
Definition: StorageType.h:111
Aws::ElasticsearchService::Model::StorageType::StorageTypeLimitsHasBeenSet
bool StorageTypeLimitsHasBeenSet() const
Definition: StorageType.h:101