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

The criteria that determine when and how a job abort takes * place.

See Also:

AWS API * Reference

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

The list of criteria that determine when and how to abort the job.

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

The list of criteria that determine when and how to abort the job.

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

The list of criteria that determine when and how to abort the job.

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

The list of criteria that determine when and how to abort the job.

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

The list of criteria that determine when and how to abort the job.

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

The list of criteria that determine when and how to abort the job.

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

The list of criteria that determine when and how to abort the job.

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

The list of criteria that determine when and how to abort the job.

*/ inline AbortConfig& AddCriteriaList(AbortCriteria&& 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 IoT } // namespace Aws