AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AlternateKey.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/m2/MainframeModernization_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace MainframeModernization {
20namespace Model {
21
31 public:
32 AWS_MAINFRAMEMODERNIZATION_API AlternateKey() = default;
33 AWS_MAINFRAMEMODERNIZATION_API AlternateKey(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MAINFRAMEMODERNIZATION_API AlternateKey& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline bool GetAllowDuplicates() const { return m_allowDuplicates; }
43 inline bool AllowDuplicatesHasBeenSet() const { return m_allowDuplicatesHasBeenSet; }
44 inline void SetAllowDuplicates(bool value) {
45 m_allowDuplicatesHasBeenSet = true;
46 m_allowDuplicates = value;
47 }
48 inline AlternateKey& WithAllowDuplicates(bool value) {
49 SetAllowDuplicates(value);
50 return *this;
51 }
53
55
59 inline int GetLength() const { return m_length; }
60 inline bool LengthHasBeenSet() const { return m_lengthHasBeenSet; }
61 inline void SetLength(int value) {
62 m_lengthHasBeenSet = true;
63 m_length = value;
64 }
65 inline AlternateKey& WithLength(int value) {
66 SetLength(value);
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
83 AlternateKey& WithName(NameT&& value) {
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
94 inline int GetOffset() const { return m_offset; }
95 inline bool OffsetHasBeenSet() const { return m_offsetHasBeenSet; }
96 inline void SetOffset(int value) {
97 m_offsetHasBeenSet = true;
98 m_offset = value;
99 }
100 inline AlternateKey& WithOffset(int value) {
101 SetOffset(value);
102 return *this;
103 }
105 private:
106 bool m_allowDuplicates{false};
107
108 int m_length{0};
109
110 Aws::String m_name;
111
112 int m_offset{0};
113 bool m_allowDuplicatesHasBeenSet = false;
114 bool m_lengthHasBeenSet = false;
115 bool m_nameHasBeenSet = false;
116 bool m_offsetHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace MainframeModernization
121} // namespace Aws
AWS_MAINFRAMEMODERNIZATION_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MAINFRAMEMODERNIZATION_API AlternateKey(Aws::Utils::Json::JsonView jsonValue)
AWS_MAINFRAMEMODERNIZATION_API AlternateKey & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MAINFRAMEMODERNIZATION_API AlternateKey()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue