AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAlternateKeys(const Aws::Vector<AlternateKey>& value) { m_alternateKeysHasBeenSet = true; m_alternateKeys = value; }
52 inline void SetAlternateKeys(Aws::Vector<AlternateKey>&& value) { m_alternateKeysHasBeenSet = true; m_alternateKeys = std::move(value); }
53 inline VsamAttributes& WithAlternateKeys(const Aws::Vector<AlternateKey>& value) { SetAlternateKeys(value); return *this;}
54 inline VsamAttributes& WithAlternateKeys(Aws::Vector<AlternateKey>&& value) { SetAlternateKeys(std::move(value)); return *this;}
55 inline VsamAttributes& AddAlternateKeys(const AlternateKey& value) { m_alternateKeysHasBeenSet = true; m_alternateKeys.push_back(value); return *this; }
56 inline VsamAttributes& AddAlternateKeys(AlternateKey&& value) { m_alternateKeysHasBeenSet = true; m_alternateKeys.push_back(std::move(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 inline void SetEncoding(const Aws::String& value) { m_encodingHasBeenSet = true; m_encoding = value; }
78 inline void SetEncoding(Aws::String&& value) { m_encodingHasBeenSet = true; m_encoding = std::move(value); }
79 inline void SetEncoding(const char* value) { m_encodingHasBeenSet = true; m_encoding.assign(value); }
80 inline VsamAttributes& WithEncoding(const Aws::String& value) { SetEncoding(value); return *this;}
81 inline VsamAttributes& WithEncoding(Aws::String&& value) { SetEncoding(std::move(value)); return *this;}
82 inline VsamAttributes& WithEncoding(const char* value) { SetEncoding(value); return *this;}
84
86
89 inline const Aws::String& GetFormat() const{ return m_format; }
90 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
91 inline void SetFormat(const Aws::String& value) { m_formatHasBeenSet = true; m_format = value; }
92 inline void SetFormat(Aws::String&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
93 inline void SetFormat(const char* value) { m_formatHasBeenSet = true; m_format.assign(value); }
94 inline VsamAttributes& WithFormat(const Aws::String& value) { SetFormat(value); return *this;}
95 inline VsamAttributes& WithFormat(Aws::String&& value) { SetFormat(std::move(value)); return *this;}
96 inline VsamAttributes& WithFormat(const char* value) { SetFormat(value); return *this;}
98
100
103 inline const PrimaryKey& GetPrimaryKey() const{ return m_primaryKey; }
104 inline bool PrimaryKeyHasBeenSet() const { return m_primaryKeyHasBeenSet; }
105 inline void SetPrimaryKey(const PrimaryKey& value) { m_primaryKeyHasBeenSet = true; m_primaryKey = value; }
106 inline void SetPrimaryKey(PrimaryKey&& value) { m_primaryKeyHasBeenSet = true; m_primaryKey = std::move(value); }
107 inline VsamAttributes& WithPrimaryKey(const PrimaryKey& value) { SetPrimaryKey(value); return *this;}
108 inline VsamAttributes& WithPrimaryKey(PrimaryKey&& value) { SetPrimaryKey(std::move(value)); return *this;}
110 private:
111
112 Aws::Vector<AlternateKey> m_alternateKeys;
113 bool m_alternateKeysHasBeenSet = false;
114
115 bool m_compressed;
116 bool m_compressedHasBeenSet = false;
117
118 Aws::String m_encoding;
119 bool m_encodingHasBeenSet = false;
120
121 Aws::String m_format;
122 bool m_formatHasBeenSet = false;
123
124 PrimaryKey m_primaryKey;
125 bool m_primaryKeyHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace MainframeModernization
130} // namespace Aws
VsamAttributes & WithAlternateKeys(Aws::Vector< AlternateKey > &&value)
VsamAttributes & AddAlternateKeys(AlternateKey &&value)
VsamAttributes & WithPrimaryKey(const PrimaryKey &value)
VsamAttributes & AddAlternateKeys(const AlternateKey &value)
AWS_MAINFRAMEMODERNIZATION_API VsamAttributes()
VsamAttributes & WithFormat(const char *value)
void SetAlternateKeys(const Aws::Vector< AlternateKey > &value)
AWS_MAINFRAMEMODERNIZATION_API VsamAttributes(Aws::Utils::Json::JsonView jsonValue)
VsamAttributes & WithPrimaryKey(PrimaryKey &&value)
VsamAttributes & WithEncoding(const char *value)
void SetAlternateKeys(Aws::Vector< AlternateKey > &&value)
AWS_MAINFRAMEMODERNIZATION_API VsamAttributes & operator=(Aws::Utils::Json::JsonView jsonValue)
VsamAttributes & WithFormat(Aws::String &&value)
AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
VsamAttributes & WithAlternateKeys(const Aws::Vector< AlternateKey > &value)
VsamAttributes & WithFormat(const Aws::String &value)
VsamAttributes & WithEncoding(Aws::String &&value)
const Aws::Vector< AlternateKey > & GetAlternateKeys() const
VsamAttributes & WithEncoding(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue