AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
VsamAttributes.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 VsamAttributes() = default;
38 AWS_MAINFRAMEMODERNIZATION_API VsamAttributes(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MAINFRAMEMODERNIZATION_API VsamAttributes& 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 VsamAttributes& WithAlternateKeys(AlternateKeysT&& value) { SetAlternateKeys(std::forward<AlternateKeysT>(value)); return *this;}
55 template<typename AlternateKeysT = AlternateKey>
56 VsamAttributes& AddAlternateKeys(AlternateKeysT&& value) { m_alternateKeysHasBeenSet = true; m_alternateKeys.emplace_back(std::forward<AlternateKeysT>(value)); return *this; }
58
60
65 inline bool GetCompressed() const { return m_compressed; }
66 inline bool CompressedHasBeenSet() const { return m_compressedHasBeenSet; }
67 inline void SetCompressed(bool value) { m_compressedHasBeenSet = true; m_compressed = value; }
68 inline VsamAttributes& WithCompressed(bool value) { SetCompressed(value); return *this;}
70
72
75 inline const Aws::String& GetEncoding() const { return m_encoding; }
76 inline bool EncodingHasBeenSet() const { return m_encodingHasBeenSet; }
77 template<typename EncodingT = Aws::String>
78 void SetEncoding(EncodingT&& value) { m_encodingHasBeenSet = true; m_encoding = std::forward<EncodingT>(value); }
79 template<typename EncodingT = Aws::String>
80 VsamAttributes& WithEncoding(EncodingT&& value) { SetEncoding(std::forward<EncodingT>(value)); return *this;}
82
84
87 inline const Aws::String& GetFormat() const { return m_format; }
88 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
89 template<typename FormatT = Aws::String>
90 void SetFormat(FormatT&& value) { m_formatHasBeenSet = true; m_format = std::forward<FormatT>(value); }
91 template<typename FormatT = Aws::String>
92 VsamAttributes& WithFormat(FormatT&& value) { SetFormat(std::forward<FormatT>(value)); return *this;}
94
96
99 inline const PrimaryKey& GetPrimaryKey() const { return m_primaryKey; }
100 inline bool PrimaryKeyHasBeenSet() const { return m_primaryKeyHasBeenSet; }
101 template<typename PrimaryKeyT = PrimaryKey>
102 void SetPrimaryKey(PrimaryKeyT&& value) { m_primaryKeyHasBeenSet = true; m_primaryKey = std::forward<PrimaryKeyT>(value); }
103 template<typename PrimaryKeyT = PrimaryKey>
104 VsamAttributes& WithPrimaryKey(PrimaryKeyT&& value) { SetPrimaryKey(std::forward<PrimaryKeyT>(value)); return *this;}
106 private:
107
108 Aws::Vector<AlternateKey> m_alternateKeys;
109 bool m_alternateKeysHasBeenSet = false;
110
111 bool m_compressed{false};
112 bool m_compressedHasBeenSet = false;
113
114 Aws::String m_encoding;
115 bool m_encodingHasBeenSet = false;
116
117 Aws::String m_format;
118 bool m_formatHasBeenSet = false;
119
120 PrimaryKey m_primaryKey;
121 bool m_primaryKeyHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace MainframeModernization
126} // 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