/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace FraudDetector { namespace Model { /** *

The message details.

See Also:

AWS * API Reference

*/ class FieldValidationMessage { public: AWS_FRAUDDETECTOR_API FieldValidationMessage(); AWS_FRAUDDETECTOR_API FieldValidationMessage(Aws::Utils::Json::JsonView jsonValue); AWS_FRAUDDETECTOR_API FieldValidationMessage& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_FRAUDDETECTOR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The field name.

*/ inline const Aws::String& GetFieldName() const{ return m_fieldName; } /** *

The field name.

*/ inline bool FieldNameHasBeenSet() const { return m_fieldNameHasBeenSet; } /** *

The field name.

*/ inline void SetFieldName(const Aws::String& value) { m_fieldNameHasBeenSet = true; m_fieldName = value; } /** *

The field name.

*/ inline void SetFieldName(Aws::String&& value) { m_fieldNameHasBeenSet = true; m_fieldName = std::move(value); } /** *

The field name.

*/ inline void SetFieldName(const char* value) { m_fieldNameHasBeenSet = true; m_fieldName.assign(value); } /** *

The field name.

*/ inline FieldValidationMessage& WithFieldName(const Aws::String& value) { SetFieldName(value); return *this;} /** *

The field name.

*/ inline FieldValidationMessage& WithFieldName(Aws::String&& value) { SetFieldName(std::move(value)); return *this;} /** *

The field name.

*/ inline FieldValidationMessage& WithFieldName(const char* value) { SetFieldName(value); return *this;} /** *

The message ID.

*/ inline const Aws::String& GetIdentifier() const{ return m_identifier; } /** *

The message ID.

*/ inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } /** *

The message ID.

*/ inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } /** *

The message ID.

*/ inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } /** *

The message ID.

*/ inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } /** *

The message ID.

*/ inline FieldValidationMessage& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} /** *

The message ID.

*/ inline FieldValidationMessage& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} /** *

The message ID.

*/ inline FieldValidationMessage& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} /** *

The message title.

*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *

The message title.

*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *

The message title.

*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *

The message title.

*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *

The message title.

*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *

The message title.

*/ inline FieldValidationMessage& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *

The message title.

*/ inline FieldValidationMessage& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *

The message title.

*/ inline FieldValidationMessage& WithTitle(const char* value) { SetTitle(value); return *this;} /** *

The message content.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

The message content.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The message content.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The message content.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The message content.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

The message content.

*/ inline FieldValidationMessage& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

The message content.

*/ inline FieldValidationMessage& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

The message content.

*/ inline FieldValidationMessage& WithContent(const char* value) { SetContent(value); return *this;} /** *

The message type.

*/ inline const Aws::String& GetType() const{ return m_type; } /** *

The message type.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The message type.

*/ inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The message type.

*/ inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The message type.

*/ inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); } /** *

The message type.

*/ inline FieldValidationMessage& WithType(const Aws::String& value) { SetType(value); return *this;} /** *

The message type.

*/ inline FieldValidationMessage& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;} /** *

The message type.

*/ inline FieldValidationMessage& WithType(const char* value) { SetType(value); return *this;} private: Aws::String m_fieldName; bool m_fieldNameHasBeenSet = false; Aws::String m_identifier; bool m_identifierHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; Aws::String m_content; bool m_contentHasBeenSet = false; Aws::String m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace FraudDetector } // namespace Aws