/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a configuration for automatically rolling back to a
* previous version of an application revision when a deployment is not completed
* successfully.See Also:
AWS
* API Reference
Indicates whether a defined automatic rollback configuration is currently * enabled.
*/ inline bool GetEnabled() const{ return m_enabled; } /** *Indicates whether a defined automatic rollback configuration is currently * enabled.
*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *Indicates whether a defined automatic rollback configuration is currently * enabled.
*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *Indicates whether a defined automatic rollback configuration is currently * enabled.
*/ inline AutoRollbackConfiguration& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *The event type or types that trigger a rollback.
*/ inline const Aws::VectorThe event type or types that trigger a rollback.
*/ inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; } /** *The event type or types that trigger a rollback.
*/ inline void SetEvents(const Aws::VectorThe event type or types that trigger a rollback.
*/ inline void SetEvents(Aws::VectorThe event type or types that trigger a rollback.
*/ inline AutoRollbackConfiguration& WithEvents(const Aws::VectorThe event type or types that trigger a rollback.
*/ inline AutoRollbackConfiguration& WithEvents(Aws::VectorThe event type or types that trigger a rollback.
*/ inline AutoRollbackConfiguration& AddEvents(const AutoRollbackEvent& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; } /** *The event type or types that trigger a rollback.
*/ inline AutoRollbackConfiguration& AddEvents(AutoRollbackEvent&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; } private: bool m_enabled; bool m_enabledHasBeenSet = false; Aws::Vector