AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
VsamAttributes.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 VsamAttributes() = default;
33 AWS_MAINFRAMEMODERNIZATION_API VsamAttributes(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MAINFRAMEMODERNIZATION_API VsamAttributes& 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 VsamAttributes& WithAlternateKeys(AlternateKeysT&& value) {
52 SetAlternateKeys(std::forward<AlternateKeysT>(value));
53 return *this;
54 }
55 template <typename AlternateKeysT = AlternateKey>
56 VsamAttributes& AddAlternateKeys(AlternateKeysT&& value) {
57 m_alternateKeysHasBeenSet = true;
58 m_alternateKeys.emplace_back(std::forward<AlternateKeysT>(value));
59 return *this;
60 }
62
64
69 inline bool GetCompressed() const { return m_compressed; }
70 inline bool CompressedHasBeenSet() const { return m_compressedHasBeenSet; }
71 inline void SetCompressed(bool value) {
72 m_compressedHasBeenSet = true;
73 m_compressed = value;
74 }
75 inline VsamAttributes& WithCompressed(bool value) {
76 SetCompressed(value);
77 return *this;
78 }
80
82
85 inline const Aws::String& GetEncoding() const { return m_encoding; }
86 inline bool EncodingHasBeenSet() const { return m_encodingHasBeenSet; }
87 template <typename EncodingT = Aws::String>
88 void SetEncoding(EncodingT&& value) {
89 m_encodingHasBeenSet = true;
90 m_encoding = std::forward<EncodingT>(value);
91 }
92 template <typename EncodingT = Aws::String>
93 VsamAttributes& WithEncoding(EncodingT&& value) {
94 SetEncoding(std::forward<EncodingT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetFormat() const { return m_format; }
104 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
105 template <typename FormatT = Aws::String>
106 void SetFormat(FormatT&& value) {
107 m_formatHasBeenSet = true;
108 m_format = std::forward<FormatT>(value);
109 }
110 template <typename FormatT = Aws::String>
111 VsamAttributes& WithFormat(FormatT&& value) {
112 SetFormat(std::forward<FormatT>(value));
113 return *this;
114 }
116
118
121 inline const PrimaryKey& GetPrimaryKey() const { return m_primaryKey; }
122 inline bool PrimaryKeyHasBeenSet() const { return m_primaryKeyHasBeenSet; }
123 template <typename PrimaryKeyT = PrimaryKey>
124 void SetPrimaryKey(PrimaryKeyT&& value) {
125 m_primaryKeyHasBeenSet = true;
126 m_primaryKey = std::forward<PrimaryKeyT>(value);
127 }
128 template <typename PrimaryKeyT = PrimaryKey>
129 VsamAttributes& WithPrimaryKey(PrimaryKeyT&& value) {
130 SetPrimaryKey(std::forward<PrimaryKeyT>(value));
131 return *this;
132 }
134 private:
135 Aws::Vector<AlternateKey> m_alternateKeys;
136
137 bool m_compressed{false};
138
139 Aws::String m_encoding;
140
141 Aws::String m_format;
142
143 PrimaryKey m_primaryKey;
144 bool m_alternateKeysHasBeenSet = false;
145 bool m_compressedHasBeenSet = false;
146 bool m_encodingHasBeenSet = false;
147 bool m_formatHasBeenSet = false;
148 bool m_primaryKeyHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace MainframeModernization
153} // namespace Aws
VsamAttributes & WithAlternateKeys(AlternateKeysT &&value)
VsamAttributes & WithEncoding(EncodingT &&value)
VsamAttributes & WithFormat(FormatT &&value)
AWS_MAINFRAMEMODERNIZATION_API VsamAttributes(Aws::Utils::Json::JsonView jsonValue)
AWS_MAINFRAMEMODERNIZATION_API VsamAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
VsamAttributes & WithPrimaryKey(PrimaryKeyT &&value)
AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
VsamAttributes & AddAlternateKeys(AlternateKeysT &&value)
const Aws::Vector< AlternateKey > & GetAlternateKeys() const
AWS_MAINFRAMEMODERNIZATION_API VsamAttributes()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue