/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the validation configuration for a field.See Also:
* AWS
* API Reference
The validation to perform on an object type.
The validation to perform on an object type.
The validation to perform on an object type.
The validation to perform on an object type.
The validation to perform on an object type.
The validation to perform on an object type.
The validation to perform on an object type.
The validation to perform on an object type.
The validation to perform on a string value.
*/ inline const Aws::VectorThe validation to perform on a string value.
*/ inline bool StrValuesHasBeenSet() const { return m_strValuesHasBeenSet; } /** *The validation to perform on a string value.
*/ inline void SetStrValues(const Aws::VectorThe validation to perform on a string value.
*/ inline void SetStrValues(Aws::VectorThe validation to perform on a string value.
*/ inline FieldValidationConfiguration& WithStrValues(const Aws::VectorThe validation to perform on a string value.
*/ inline FieldValidationConfiguration& WithStrValues(Aws::VectorThe validation to perform on a string value.
*/ inline FieldValidationConfiguration& AddStrValues(const Aws::String& value) { m_strValuesHasBeenSet = true; m_strValues.push_back(value); return *this; } /** *The validation to perform on a string value.
*/ inline FieldValidationConfiguration& AddStrValues(Aws::String&& value) { m_strValuesHasBeenSet = true; m_strValues.push_back(std::move(value)); return *this; } /** *The validation to perform on a string value.
*/ inline FieldValidationConfiguration& AddStrValues(const char* value) { m_strValuesHasBeenSet = true; m_strValues.push_back(value); return *this; } /** *The validation to perform on a number value.
*/ inline const Aws::VectorThe validation to perform on a number value.
*/ inline bool NumValuesHasBeenSet() const { return m_numValuesHasBeenSet; } /** *The validation to perform on a number value.
*/ inline void SetNumValues(const Aws::VectorThe validation to perform on a number value.
*/ inline void SetNumValues(Aws::VectorThe validation to perform on a number value.
*/ inline FieldValidationConfiguration& WithNumValues(const Aws::VectorThe validation to perform on a number value.
*/ inline FieldValidationConfiguration& WithNumValues(Aws::VectorThe validation to perform on a number value.
*/ inline FieldValidationConfiguration& AddNumValues(int value) { m_numValuesHasBeenSet = true; m_numValues.push_back(value); return *this; } /** *The validation message to display.
*/ inline const Aws::String& GetValidationMessage() const{ return m_validationMessage; } /** *The validation message to display.
*/ inline bool ValidationMessageHasBeenSet() const { return m_validationMessageHasBeenSet; } /** *The validation message to display.
*/ inline void SetValidationMessage(const Aws::String& value) { m_validationMessageHasBeenSet = true; m_validationMessage = value; } /** *The validation message to display.
*/ inline void SetValidationMessage(Aws::String&& value) { m_validationMessageHasBeenSet = true; m_validationMessage = std::move(value); } /** *The validation message to display.
*/ inline void SetValidationMessage(const char* value) { m_validationMessageHasBeenSet = true; m_validationMessage.assign(value); } /** *The validation message to display.
*/ inline FieldValidationConfiguration& WithValidationMessage(const Aws::String& value) { SetValidationMessage(value); return *this;} /** *The validation message to display.
*/ inline FieldValidationConfiguration& WithValidationMessage(Aws::String&& value) { SetValidationMessage(std::move(value)); return *this;} /** *The validation message to display.
*/ inline FieldValidationConfiguration& WithValidationMessage(const char* value) { SetValidationMessage(value); return *this;} private: Aws::String m_type; bool m_typeHasBeenSet = false; Aws::Vector