AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
X12ValidationRule.h
1
6#pragma once
7#include <aws/b2bi/B2BI_EXPORTS.h>
8#include <aws/b2bi/model/X12CodeListValidationRule.h>
9#include <aws/b2bi/model/X12ElementLengthValidationRule.h>
10#include <aws/b2bi/model/X12ElementRequirementValidationRule.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace B2BI
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_B2BI_API X12ValidationRule() = default;
47
48
50
56 inline const X12CodeListValidationRule& GetCodeListValidationRule() const { return m_codeListValidationRule; }
57 inline bool CodeListValidationRuleHasBeenSet() const { return m_codeListValidationRuleHasBeenSet; }
58 template<typename CodeListValidationRuleT = X12CodeListValidationRule>
59 void SetCodeListValidationRule(CodeListValidationRuleT&& value) { m_codeListValidationRuleHasBeenSet = true; m_codeListValidationRule = std::forward<CodeListValidationRuleT>(value); }
60 template<typename CodeListValidationRuleT = X12CodeListValidationRule>
61 X12ValidationRule& WithCodeListValidationRule(CodeListValidationRuleT&& value) { SetCodeListValidationRule(std::forward<CodeListValidationRuleT>(value)); return *this;}
63
65
71 inline const X12ElementLengthValidationRule& GetElementLengthValidationRule() const { return m_elementLengthValidationRule; }
72 inline bool ElementLengthValidationRuleHasBeenSet() const { return m_elementLengthValidationRuleHasBeenSet; }
73 template<typename ElementLengthValidationRuleT = X12ElementLengthValidationRule>
74 void SetElementLengthValidationRule(ElementLengthValidationRuleT&& value) { m_elementLengthValidationRuleHasBeenSet = true; m_elementLengthValidationRule = std::forward<ElementLengthValidationRuleT>(value); }
75 template<typename ElementLengthValidationRuleT = X12ElementLengthValidationRule>
76 X12ValidationRule& WithElementLengthValidationRule(ElementLengthValidationRuleT&& value) { SetElementLengthValidationRule(std::forward<ElementLengthValidationRuleT>(value)); return *this;}
78
80
86 inline const X12ElementRequirementValidationRule& GetElementRequirementValidationRule() const { return m_elementRequirementValidationRule; }
87 inline bool ElementRequirementValidationRuleHasBeenSet() const { return m_elementRequirementValidationRuleHasBeenSet; }
88 template<typename ElementRequirementValidationRuleT = X12ElementRequirementValidationRule>
89 void SetElementRequirementValidationRule(ElementRequirementValidationRuleT&& value) { m_elementRequirementValidationRuleHasBeenSet = true; m_elementRequirementValidationRule = std::forward<ElementRequirementValidationRuleT>(value); }
90 template<typename ElementRequirementValidationRuleT = X12ElementRequirementValidationRule>
91 X12ValidationRule& WithElementRequirementValidationRule(ElementRequirementValidationRuleT&& value) { SetElementRequirementValidationRule(std::forward<ElementRequirementValidationRuleT>(value)); return *this;}
93 private:
94
95 X12CodeListValidationRule m_codeListValidationRule;
96 bool m_codeListValidationRuleHasBeenSet = false;
97
98 X12ElementLengthValidationRule m_elementLengthValidationRule;
99 bool m_elementLengthValidationRuleHasBeenSet = false;
100
101 X12ElementRequirementValidationRule m_elementRequirementValidationRule;
102 bool m_elementRequirementValidationRuleHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace B2BI
107} // namespace Aws
X12ValidationRule & WithElementRequirementValidationRule(ElementRequirementValidationRuleT &&value)
const X12ElementRequirementValidationRule & GetElementRequirementValidationRule() const
AWS_B2BI_API X12ValidationRule & operator=(Aws::Utils::Json::JsonView jsonValue)
const X12CodeListValidationRule & GetCodeListValidationRule() const
void SetElementRequirementValidationRule(ElementRequirementValidationRuleT &&value)
AWS_B2BI_API X12ValidationRule()=default
AWS_B2BI_API X12ValidationRule(Aws::Utils::Json::JsonView jsonValue)
AWS_B2BI_API Aws::Utils::Json::JsonValue Jsonize() const
X12ValidationRule & WithElementLengthValidationRule(ElementLengthValidationRuleT &&value)
const X12ElementLengthValidationRule & GetElementLengthValidationRule() const
void SetCodeListValidationRule(CodeListValidationRuleT &&value)
X12ValidationRule & WithCodeListValidationRule(CodeListValidationRuleT &&value)
void SetElementLengthValidationRule(ElementLengthValidationRuleT &&value)
Aws::Utils::Json::JsonValue JsonValue