AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
X12ElementLengthValidationRule.h
1
6#pragma once
7#include <aws/b2bi/B2BI_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace B2BI {
20namespace Model {
21
33 public:
34 AWS_B2BI_API X12ElementLengthValidationRule() = default;
38
40
45 inline const Aws::String& GetElementId() const { return m_elementId; }
46 inline bool ElementIdHasBeenSet() const { return m_elementIdHasBeenSet; }
47 template <typename ElementIdT = Aws::String>
48 void SetElementId(ElementIdT&& value) {
49 m_elementIdHasBeenSet = true;
50 m_elementId = std::forward<ElementIdT>(value);
51 }
52 template <typename ElementIdT = Aws::String>
54 SetElementId(std::forward<ElementIdT>(value));
55 return *this;
56 }
58
60
65 inline int GetMaxLength() const { return m_maxLength; }
66 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
67 inline void SetMaxLength(int value) {
68 m_maxLengthHasBeenSet = true;
69 m_maxLength = value;
70 }
72 SetMaxLength(value);
73 return *this;
74 }
76
78
83 inline int GetMinLength() const { return m_minLength; }
84 inline bool MinLengthHasBeenSet() const { return m_minLengthHasBeenSet; }
85 inline void SetMinLength(int value) {
86 m_minLengthHasBeenSet = true;
87 m_minLength = value;
88 }
90 SetMinLength(value);
91 return *this;
92 }
94 private:
95 Aws::String m_elementId;
96
97 int m_maxLength{0};
98
99 int m_minLength{0};
100 bool m_elementIdHasBeenSet = false;
101 bool m_maxLengthHasBeenSet = false;
102 bool m_minLengthHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace B2BI
107} // namespace Aws
X12ElementLengthValidationRule & WithElementId(ElementIdT &&value)
AWS_B2BI_API X12ElementLengthValidationRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_B2BI_API Aws::Utils::Json::JsonValue Jsonize() const
X12ElementLengthValidationRule & WithMaxLength(int value)
AWS_B2BI_API X12ElementLengthValidationRule(Aws::Utils::Json::JsonView jsonValue)
X12ElementLengthValidationRule & WithMinLength(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue