/** * 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 AwsJobAbortConfig { public: AWS_IOT_API AwsJobAbortConfig(); AWS_IOT_API AwsJobAbortConfig(Aws::Utils::Json::JsonView jsonValue); AWS_IOT_API AwsJobAbortConfig& 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& GetAbortCriteriaList() const{ return m_abortCriteriaList; } /** *

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

*/ inline bool AbortCriteriaListHasBeenSet() const { return m_abortCriteriaListHasBeenSet; } /** *

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

*/ inline void SetAbortCriteriaList(const Aws::Vector& value) { m_abortCriteriaListHasBeenSet = true; m_abortCriteriaList = value; } /** *

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

*/ inline void SetAbortCriteriaList(Aws::Vector&& value) { m_abortCriteriaListHasBeenSet = true; m_abortCriteriaList = std::move(value); } /** *

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

*/ inline AwsJobAbortConfig& WithAbortCriteriaList(const Aws::Vector& value) { SetAbortCriteriaList(value); return *this;} /** *

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

*/ inline AwsJobAbortConfig& WithAbortCriteriaList(Aws::Vector&& value) { SetAbortCriteriaList(std::move(value)); return *this;} /** *

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

*/ inline AwsJobAbortConfig& AddAbortCriteriaList(const AwsJobAbortCriteria& value) { m_abortCriteriaListHasBeenSet = true; m_abortCriteriaList.push_back(value); return *this; } /** *

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

*/ inline AwsJobAbortConfig& AddAbortCriteriaList(AwsJobAbortCriteria&& value) { m_abortCriteriaListHasBeenSet = true; m_abortCriteriaList.push_back(std::move(value)); return *this; } private: Aws::Vector m_abortCriteriaList; bool m_abortCriteriaListHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws