AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
ValidationDataConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/bedrock/model/Validator.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 Bedrock
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_BEDROCK_API ValidationDataConfig() = default;
38 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::Vector<Validator>& GetValidators() const { return m_validators; }
46 inline bool ValidatorsHasBeenSet() const { return m_validatorsHasBeenSet; }
47 template<typename ValidatorsT = Aws::Vector<Validator>>
48 void SetValidators(ValidatorsT&& value) { m_validatorsHasBeenSet = true; m_validators = std::forward<ValidatorsT>(value); }
49 template<typename ValidatorsT = Aws::Vector<Validator>>
50 ValidationDataConfig& WithValidators(ValidatorsT&& value) { SetValidators(std::forward<ValidatorsT>(value)); return *this;}
51 template<typename ValidatorsT = Validator>
52 ValidationDataConfig& AddValidators(ValidatorsT&& value) { m_validatorsHasBeenSet = true; m_validators.emplace_back(std::forward<ValidatorsT>(value)); return *this; }
54 private:
55
56 Aws::Vector<Validator> m_validators;
57 bool m_validatorsHasBeenSet = false;
58 };
59
60} // namespace Model
61} // namespace Bedrock
62} // namespace Aws
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
ValidationDataConfig & WithValidators(ValidatorsT &&value)
AWS_BEDROCK_API ValidationDataConfig()=default
AWS_BEDROCK_API ValidationDataConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Validator > & GetValidators() const
ValidationDataConfig & AddValidators(ValidatorsT &&value)
AWS_BEDROCK_API ValidationDataConfig(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue