AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VsamDetailAttributes.h
1
6#pragma once
7#include <aws/m2/MainframeModernization_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/m2/model/PrimaryKey.h>
11#include <aws/m2/model/AlternateKey.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 MainframeModernization
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_MAINFRAMEMODERNIZATION_API VsamDetailAttributes() = default;
38 AWS_MAINFRAMEMODERNIZATION_API VsamDetailAttributes(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MAINFRAMEMODERNIZATION_API VsamDetailAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::Vector<AlternateKey>& GetAlternateKeys() const { return m_alternateKeys; }
50 inline bool AlternateKeysHasBeenSet() const { return m_alternateKeysHasBeenSet; }
51 template<typename AlternateKeysT = Aws::Vector<AlternateKey>>
52 void SetAlternateKeys(AlternateKeysT&& value) { m_alternateKeysHasBeenSet = true; m_alternateKeys = std::forward<AlternateKeysT>(value); }
53 template<typename AlternateKeysT = Aws::Vector<AlternateKey>>
54 VsamDetailAttributes& WithAlternateKeys(AlternateKeysT&& value) { SetAlternateKeys(std::forward<AlternateKeysT>(value)); return *this;}
55 template<typename AlternateKeysT = AlternateKey>
56 VsamDetailAttributes& AddAlternateKeys(AlternateKeysT&& value) { m_alternateKeysHasBeenSet = true; m_alternateKeys.emplace_back(std::forward<AlternateKeysT>(value)); return *this; }
58
60
64 inline bool GetCacheAtStartup() const { return m_cacheAtStartup; }
65 inline bool CacheAtStartupHasBeenSet() const { return m_cacheAtStartupHasBeenSet; }
66 inline void SetCacheAtStartup(bool value) { m_cacheAtStartupHasBeenSet = true; m_cacheAtStartup = value; }
67 inline VsamDetailAttributes& WithCacheAtStartup(bool value) { SetCacheAtStartup(value); return *this;}
69
71
76 inline bool GetCompressed() const { return m_compressed; }
77 inline bool CompressedHasBeenSet() const { return m_compressedHasBeenSet; }
78 inline void SetCompressed(bool value) { m_compressedHasBeenSet = true; m_compressed = value; }
79 inline VsamDetailAttributes& WithCompressed(bool value) { SetCompressed(value); return *this;}
81
83
86 inline const Aws::String& GetEncoding() const { return m_encoding; }
87 inline bool EncodingHasBeenSet() const { return m_encodingHasBeenSet; }
88 template<typename EncodingT = Aws::String>
89 void SetEncoding(EncodingT&& value) { m_encodingHasBeenSet = true; m_encoding = std::forward<EncodingT>(value); }
90 template<typename EncodingT = Aws::String>
91 VsamDetailAttributes& WithEncoding(EncodingT&& value) { SetEncoding(std::forward<EncodingT>(value)); return *this;}
93
95
98 inline const PrimaryKey& GetPrimaryKey() const { return m_primaryKey; }
99 inline bool PrimaryKeyHasBeenSet() const { return m_primaryKeyHasBeenSet; }
100 template<typename PrimaryKeyT = PrimaryKey>
101 void SetPrimaryKey(PrimaryKeyT&& value) { m_primaryKeyHasBeenSet = true; m_primaryKey = std::forward<PrimaryKeyT>(value); }
102 template<typename PrimaryKeyT = PrimaryKey>
103 VsamDetailAttributes& WithPrimaryKey(PrimaryKeyT&& value) { SetPrimaryKey(std::forward<PrimaryKeyT>(value)); return *this;}
105
107
110 inline const Aws::String& GetRecordFormat() const { return m_recordFormat; }
111 inline bool RecordFormatHasBeenSet() const { return m_recordFormatHasBeenSet; }
112 template<typename RecordFormatT = Aws::String>
113 void SetRecordFormat(RecordFormatT&& value) { m_recordFormatHasBeenSet = true; m_recordFormat = std::forward<RecordFormatT>(value); }
114 template<typename RecordFormatT = Aws::String>
115 VsamDetailAttributes& WithRecordFormat(RecordFormatT&& value) { SetRecordFormat(std::forward<RecordFormatT>(value)); return *this;}
117 private:
118
119 Aws::Vector<AlternateKey> m_alternateKeys;
120 bool m_alternateKeysHasBeenSet = false;
121
122 bool m_cacheAtStartup{false};
123 bool m_cacheAtStartupHasBeenSet = false;
124
125 bool m_compressed{false};
126 bool m_compressedHasBeenSet = false;
127
128 Aws::String m_encoding;
129 bool m_encodingHasBeenSet = false;
130
131 PrimaryKey m_primaryKey;
132 bool m_primaryKeyHasBeenSet = false;
133
134 Aws::String m_recordFormat;
135 bool m_recordFormatHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace MainframeModernization
140} // 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