/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include List of errors that occurred when the template version creation
* failed.See Also:
AWS
* API Reference
Type of error.
*/ inline const TemplateErrorType& GetType() const{ return m_type; } /** *Type of error.
*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *Type of error.
*/ inline void SetType(const TemplateErrorType& value) { m_typeHasBeenSet = true; m_type = value; } /** *Type of error.
*/ inline void SetType(TemplateErrorType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *Type of error.
*/ inline TemplateError& WithType(const TemplateErrorType& value) { SetType(value); return *this;} /** *Type of error.
*/ inline TemplateError& WithType(TemplateErrorType&& value) { SetType(std::move(value)); return *this;} /** *Description of the error type.
*/ inline const Aws::String& GetMessage() const{ return m_message; } /** *Description of the error type.
*/ inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } /** *Description of the error type.
*/ inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } /** *Description of the error type.
*/ inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } /** *Description of the error type.
*/ inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } /** *Description of the error type.
*/ inline TemplateError& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} /** *Description of the error type.
*/ inline TemplateError& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} /** *Description of the error type.
*/ inline TemplateError& WithMessage(const char* value) { SetMessage(value); return *this;} /** *An error path that shows which entities caused the template error.
*/ inline const Aws::VectorAn error path that shows which entities caused the template error.
*/ inline bool ViolatedEntitiesHasBeenSet() const { return m_violatedEntitiesHasBeenSet; } /** *An error path that shows which entities caused the template error.
*/ inline void SetViolatedEntities(const Aws::VectorAn error path that shows which entities caused the template error.
*/ inline void SetViolatedEntities(Aws::VectorAn error path that shows which entities caused the template error.
*/ inline TemplateError& WithViolatedEntities(const Aws::VectorAn error path that shows which entities caused the template error.
*/ inline TemplateError& WithViolatedEntities(Aws::VectorAn error path that shows which entities caused the template error.
*/ inline TemplateError& AddViolatedEntities(const Entity& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities.push_back(value); return *this; } /** *An error path that shows which entities caused the template error.
*/ inline TemplateError& AddViolatedEntities(Entity&& value) { m_violatedEntitiesHasBeenSet = true; m_violatedEntities.push_back(std::move(value)); return *this; } private: TemplateErrorType m_type; bool m_typeHasBeenSet = false; Aws::String m_message; bool m_messageHasBeenSet = false; Aws::Vector