AWS SDK for C++

AWS SDK for C++ Version 1.11.636

Loading...
Searching...
No Matches
X12ValidationOptions.h
1
6#pragma once
7#include <aws/b2bi/B2BI_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/b2bi/model/X12ValidationRule.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace B2BI
23{
24namespace Model
25{
26
40 {
41 public:
42 AWS_B2BI_API X12ValidationOptions() = default;
46
47
49
54 inline const Aws::Vector<X12ValidationRule>& GetValidationRules() const { return m_validationRules; }
55 inline bool ValidationRulesHasBeenSet() const { return m_validationRulesHasBeenSet; }
56 template<typename ValidationRulesT = Aws::Vector<X12ValidationRule>>
57 void SetValidationRules(ValidationRulesT&& value) { m_validationRulesHasBeenSet = true; m_validationRules = std::forward<ValidationRulesT>(value); }
58 template<typename ValidationRulesT = Aws::Vector<X12ValidationRule>>
59 X12ValidationOptions& WithValidationRules(ValidationRulesT&& value) { SetValidationRules(std::forward<ValidationRulesT>(value)); return *this;}
60 template<typename ValidationRulesT = X12ValidationRule>
61 X12ValidationOptions& AddValidationRules(ValidationRulesT&& value) { m_validationRulesHasBeenSet = true; m_validationRules.emplace_back(std::forward<ValidationRulesT>(value)); return *this; }
63 private:
64
65 Aws::Vector<X12ValidationRule> m_validationRules;
66 bool m_validationRulesHasBeenSet = false;
67 };
68
69} // namespace Model
70} // namespace B2BI
71} // namespace Aws
AWS_B2BI_API X12ValidationOptions()=default
AWS_B2BI_API X12ValidationOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
X12ValidationOptions & AddValidationRules(ValidationRulesT &&value)
AWS_B2BI_API X12ValidationOptions(Aws::Utils::Json::JsonView jsonValue)
void SetValidationRules(ValidationRulesT &&value)
const Aws::Vector< X12ValidationRule > & GetValidationRules() const
X12ValidationOptions & WithValidationRules(ValidationRulesT &&value)
AWS_B2BI_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue