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

Defines a validation warning. Validation warnings do not prevent pipeline * activation. The set of validation warnings that can be returned are defined by * AWS Data Pipeline.

See Also:

AWS * API Reference

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

The identifier of the object that contains the validation warning.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The identifier of the object that contains the validation warning.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The identifier of the object that contains the validation warning.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The identifier of the object that contains the validation warning.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The identifier of the object that contains the validation warning.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The identifier of the object that contains the validation warning.

*/ inline ValidationWarning& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The identifier of the object that contains the validation warning.

*/ inline ValidationWarning& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The identifier of the object that contains the validation warning.

*/ inline ValidationWarning& WithId(const char* value) { SetId(value); return *this;} /** *

A description of the validation warning.

*/ inline const Aws::Vector& GetWarnings() const{ return m_warnings; } /** *

A description of the validation warning.

*/ inline bool WarningsHasBeenSet() const { return m_warningsHasBeenSet; } /** *

A description of the validation warning.

*/ inline void SetWarnings(const Aws::Vector& value) { m_warningsHasBeenSet = true; m_warnings = value; } /** *

A description of the validation warning.

*/ inline void SetWarnings(Aws::Vector&& value) { m_warningsHasBeenSet = true; m_warnings = std::move(value); } /** *

A description of the validation warning.

*/ inline ValidationWarning& WithWarnings(const Aws::Vector& value) { SetWarnings(value); return *this;} /** *

A description of the validation warning.

*/ inline ValidationWarning& WithWarnings(Aws::Vector&& value) { SetWarnings(std::move(value)); return *this;} /** *

A description of the validation warning.

*/ inline ValidationWarning& AddWarnings(const Aws::String& value) { m_warningsHasBeenSet = true; m_warnings.push_back(value); return *this; } /** *

A description of the validation warning.

*/ inline ValidationWarning& AddWarnings(Aws::String&& value) { m_warningsHasBeenSet = true; m_warnings.push_back(std::move(value)); return *this; } /** *

A description of the validation warning.

*/ inline ValidationWarning& AddWarnings(const char* value) { m_warningsHasBeenSet = true; m_warnings.push_back(value); return *this; } private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::Vector m_warnings; bool m_warningsHasBeenSet = false; }; } // namespace Model } // namespace DataPipeline } // namespace Aws