AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VsamDetailAttributes.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/m2/MainframeModernization_EXPORTS.h>
10#include <aws/m2/model/AlternateKey.h>
11#include <aws/m2/model/PrimaryKey.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MainframeModernization {
23namespace Model {
24
31 public:
32 AWS_MAINFRAMEMODERNIZATION_API VsamDetailAttributes() = default;
33 AWS_MAINFRAMEMODERNIZATION_API VsamDetailAttributes(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MAINFRAMEMODERNIZATION_API VsamDetailAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
43 inline const Aws::Vector<AlternateKey>& GetAlternateKeys() const { return m_alternateKeys; }
44 inline bool AlternateKeysHasBeenSet() const { return m_alternateKeysHasBeenSet; }
45 template <typename AlternateKeysT = Aws::Vector<AlternateKey>>
46 void SetAlternateKeys(AlternateKeysT&& value) {
47 m_alternateKeysHasBeenSet = true;
48 m_alternateKeys = std::forward<AlternateKeysT>(value);
49 }
50 template <typename AlternateKeysT = Aws::Vector<AlternateKey>>
51 VsamDetailAttributes& WithAlternateKeys(AlternateKeysT&& value) {
52 SetAlternateKeys(std::forward<AlternateKeysT>(value));
53 return *this;
54 }
55 template <typename AlternateKeysT = AlternateKey>
56 VsamDetailAttributes& AddAlternateKeys(AlternateKeysT&& value) {
57 m_alternateKeysHasBeenSet = true;
58 m_alternateKeys.emplace_back(std::forward<AlternateKeysT>(value));
59 return *this;
60 }
62
64
68 inline bool GetCacheAtStartup() const { return m_cacheAtStartup; }
69 inline bool CacheAtStartupHasBeenSet() const { return m_cacheAtStartupHasBeenSet; }
70 inline void SetCacheAtStartup(bool value) {
71 m_cacheAtStartupHasBeenSet = true;
72 m_cacheAtStartup = value;
73 }
75 SetCacheAtStartup(value);
76 return *this;
77 }
79
81
86 inline bool GetCompressed() const { return m_compressed; }
87 inline bool CompressedHasBeenSet() const { return m_compressedHasBeenSet; }
88 inline void SetCompressed(bool value) {
89 m_compressedHasBeenSet = true;
90 m_compressed = value;
91 }
93 SetCompressed(value);
94 return *this;
95 }
97
99
102 inline const Aws::String& GetEncoding() const { return m_encoding; }
103 inline bool EncodingHasBeenSet() const { return m_encodingHasBeenSet; }
104 template <typename EncodingT = Aws::String>
105 void SetEncoding(EncodingT&& value) {
106 m_encodingHasBeenSet = true;
107 m_encoding = std::forward<EncodingT>(value);
108 }
109 template <typename EncodingT = Aws::String>
110 VsamDetailAttributes& WithEncoding(EncodingT&& value) {
111 SetEncoding(std::forward<EncodingT>(value));
112 return *this;
113 }
115
117
120 inline const PrimaryKey& GetPrimaryKey() const { return m_primaryKey; }
121 inline bool PrimaryKeyHasBeenSet() const { return m_primaryKeyHasBeenSet; }
122 template <typename PrimaryKeyT = PrimaryKey>
123 void SetPrimaryKey(PrimaryKeyT&& value) {
124 m_primaryKeyHasBeenSet = true;
125 m_primaryKey = std::forward<PrimaryKeyT>(value);
126 }
127 template <typename PrimaryKeyT = PrimaryKey>
128 VsamDetailAttributes& WithPrimaryKey(PrimaryKeyT&& value) {
129 SetPrimaryKey(std::forward<PrimaryKeyT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetRecordFormat() const { return m_recordFormat; }
139 inline bool RecordFormatHasBeenSet() const { return m_recordFormatHasBeenSet; }
140 template <typename RecordFormatT = Aws::String>
141 void SetRecordFormat(RecordFormatT&& value) {
142 m_recordFormatHasBeenSet = true;
143 m_recordFormat = std::forward<RecordFormatT>(value);
144 }
145 template <typename RecordFormatT = Aws::String>
146 VsamDetailAttributes& WithRecordFormat(RecordFormatT&& value) {
147 SetRecordFormat(std::forward<RecordFormatT>(value));
148 return *this;
149 }
151 private:
152 Aws::Vector<AlternateKey> m_alternateKeys;
153
154 bool m_cacheAtStartup{false};
155
156 bool m_compressed{false};
157
158 Aws::String m_encoding;
159
160 PrimaryKey m_primaryKey;
161
162 Aws::String m_recordFormat;
163 bool m_alternateKeysHasBeenSet = false;
164 bool m_cacheAtStartupHasBeenSet = false;
165 bool m_compressedHasBeenSet = false;
166 bool m_encodingHasBeenSet = false;
167 bool m_primaryKeyHasBeenSet = false;
168 bool m_recordFormatHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace MainframeModernization
173} // namespace Aws
VsamDetailAttributes & WithPrimaryKey(PrimaryKeyT &&value)
VsamDetailAttributes & WithEncoding(EncodingT &&value)
AWS_MAINFRAMEMODERNIZATION_API VsamDetailAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
VsamDetailAttributes & WithAlternateKeys(AlternateKeysT &&value)
VsamDetailAttributes & WithRecordFormat(RecordFormatT &&value)
const Aws::Vector< AlternateKey > & GetAlternateKeys() const
AWS_MAINFRAMEMODERNIZATION_API VsamDetailAttributes()=default
VsamDetailAttributes & AddAlternateKeys(AlternateKeysT &&value)
AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MAINFRAMEMODERNIZATION_API VsamDetailAttributes(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue