AWS SDK for C++

AWS SDK for C++ Version 1.11.636

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace B2BI
22{
23namespace Model
24{
25
37 {
38 public:
39 AWS_B2BI_API X12ElementLengthValidationRule() = default;
43
44
46
51 inline const Aws::String& GetElementId() const { return m_elementId; }
52 inline bool ElementIdHasBeenSet() const { return m_elementIdHasBeenSet; }
53 template<typename ElementIdT = Aws::String>
54 void SetElementId(ElementIdT&& value) { m_elementIdHasBeenSet = true; m_elementId = std::forward<ElementIdT>(value); }
55 template<typename ElementIdT = Aws::String>
56 X12ElementLengthValidationRule& WithElementId(ElementIdT&& value) { SetElementId(std::forward<ElementIdT>(value)); return *this;}
58
60
65 inline int GetMaxLength() const { return m_maxLength; }
66 inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; }
67 inline void SetMaxLength(int value) { m_maxLengthHasBeenSet = true; m_maxLength = value; }
68 inline X12ElementLengthValidationRule& WithMaxLength(int value) { SetMaxLength(value); return *this;}
70
72
77 inline int GetMinLength() const { return m_minLength; }
78 inline bool MinLengthHasBeenSet() const { return m_minLengthHasBeenSet; }
79 inline void SetMinLength(int value) { m_minLengthHasBeenSet = true; m_minLength = value; }
80 inline X12ElementLengthValidationRule& WithMinLength(int value) { SetMinLength(value); return *this;}
82 private:
83
84 Aws::String m_elementId;
85 bool m_elementIdHasBeenSet = false;
86
87 int m_maxLength{0};
88 bool m_maxLengthHasBeenSet = false;
89
90 int m_minLength{0};
91 bool m_minLengthHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace B2BI
96} // 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