AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ValidationDataConfig.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/Validator.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Bedrock {
21namespace Model {
22
29 public:
30 AWS_BEDROCK_API ValidationDataConfig() = default;
33 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<Validator>& GetValidators() const { return m_validators; }
40 inline bool ValidatorsHasBeenSet() const { return m_validatorsHasBeenSet; }
41 template <typename ValidatorsT = Aws::Vector<Validator>>
42 void SetValidators(ValidatorsT&& value) {
43 m_validatorsHasBeenSet = true;
44 m_validators = std::forward<ValidatorsT>(value);
45 }
46 template <typename ValidatorsT = Aws::Vector<Validator>>
48 SetValidators(std::forward<ValidatorsT>(value));
49 return *this;
50 }
51 template <typename ValidatorsT = Validator>
53 m_validatorsHasBeenSet = true;
54 m_validators.emplace_back(std::forward<ValidatorsT>(value));
55 return *this;
56 }
58 private:
59 Aws::Vector<Validator> m_validators;
60 bool m_validatorsHasBeenSet = false;
61};
62
63} // namespace Model
64} // namespace Bedrock
65} // 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::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue