/** * 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 GreengrassV2 { namespace Model { /** *

Contains a list of criteria that define when and how to cancel a * configuration deployment.

See Also:

AWS * API Reference

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

The list of criteria that define when and how to cancel the configuration * deployment.

*/ inline const Aws::Vector& GetCriteriaList() const{ return m_criteriaList; } /** *

The list of criteria that define when and how to cancel the configuration * deployment.

*/ inline bool CriteriaListHasBeenSet() const { return m_criteriaListHasBeenSet; } /** *

The list of criteria that define when and how to cancel the configuration * deployment.

*/ inline void SetCriteriaList(const Aws::Vector& value) { m_criteriaListHasBeenSet = true; m_criteriaList = value; } /** *

The list of criteria that define when and how to cancel the configuration * deployment.

*/ inline void SetCriteriaList(Aws::Vector&& value) { m_criteriaListHasBeenSet = true; m_criteriaList = std::move(value); } /** *

The list of criteria that define when and how to cancel the configuration * deployment.

*/ inline IoTJobAbortConfig& WithCriteriaList(const Aws::Vector& value) { SetCriteriaList(value); return *this;} /** *

The list of criteria that define when and how to cancel the configuration * deployment.

*/ inline IoTJobAbortConfig& WithCriteriaList(Aws::Vector&& value) { SetCriteriaList(std::move(value)); return *this;} /** *

The list of criteria that define when and how to cancel the configuration * deployment.

*/ inline IoTJobAbortConfig& AddCriteriaList(const IoTJobAbortCriteria& value) { m_criteriaListHasBeenSet = true; m_criteriaList.push_back(value); return *this; } /** *

The list of criteria that define when and how to cancel the configuration * deployment.

*/ inline IoTJobAbortConfig& AddCriteriaList(IoTJobAbortCriteria&& value) { m_criteriaListHasBeenSet = true; m_criteriaList.push_back(std::move(value)); return *this; } private: Aws::Vector m_criteriaList; bool m_criteriaListHasBeenSet = false; }; } // namespace Model } // namespace GreengrassV2 } // namespace Aws