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

Details for Site-to-Site VPN tunnel endpoint maintenance * events.

See Also:

AWS * API Reference

*/ class MaintenanceDetails { public: AWS_EC2_API MaintenanceDetails(); AWS_EC2_API MaintenanceDetails(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API MaintenanceDetails& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Verify existence of a pending maintenance.

*/ inline const Aws::String& GetPendingMaintenance() const{ return m_pendingMaintenance; } /** *

Verify existence of a pending maintenance.

*/ inline bool PendingMaintenanceHasBeenSet() const { return m_pendingMaintenanceHasBeenSet; } /** *

Verify existence of a pending maintenance.

*/ inline void SetPendingMaintenance(const Aws::String& value) { m_pendingMaintenanceHasBeenSet = true; m_pendingMaintenance = value; } /** *

Verify existence of a pending maintenance.

*/ inline void SetPendingMaintenance(Aws::String&& value) { m_pendingMaintenanceHasBeenSet = true; m_pendingMaintenance = std::move(value); } /** *

Verify existence of a pending maintenance.

*/ inline void SetPendingMaintenance(const char* value) { m_pendingMaintenanceHasBeenSet = true; m_pendingMaintenance.assign(value); } /** *

Verify existence of a pending maintenance.

*/ inline MaintenanceDetails& WithPendingMaintenance(const Aws::String& value) { SetPendingMaintenance(value); return *this;} /** *

Verify existence of a pending maintenance.

*/ inline MaintenanceDetails& WithPendingMaintenance(Aws::String&& value) { SetPendingMaintenance(std::move(value)); return *this;} /** *

Verify existence of a pending maintenance.

*/ inline MaintenanceDetails& WithPendingMaintenance(const char* value) { SetPendingMaintenance(value); return *this;} /** *

The timestamp after which Amazon Web Services will automatically apply * maintenance.

*/ inline const Aws::Utils::DateTime& GetMaintenanceAutoAppliedAfter() const{ return m_maintenanceAutoAppliedAfter; } /** *

The timestamp after which Amazon Web Services will automatically apply * maintenance.

*/ inline bool MaintenanceAutoAppliedAfterHasBeenSet() const { return m_maintenanceAutoAppliedAfterHasBeenSet; } /** *

The timestamp after which Amazon Web Services will automatically apply * maintenance.

*/ inline void SetMaintenanceAutoAppliedAfter(const Aws::Utils::DateTime& value) { m_maintenanceAutoAppliedAfterHasBeenSet = true; m_maintenanceAutoAppliedAfter = value; } /** *

The timestamp after which Amazon Web Services will automatically apply * maintenance.

*/ inline void SetMaintenanceAutoAppliedAfter(Aws::Utils::DateTime&& value) { m_maintenanceAutoAppliedAfterHasBeenSet = true; m_maintenanceAutoAppliedAfter = std::move(value); } /** *

The timestamp after which Amazon Web Services will automatically apply * maintenance.

*/ inline MaintenanceDetails& WithMaintenanceAutoAppliedAfter(const Aws::Utils::DateTime& value) { SetMaintenanceAutoAppliedAfter(value); return *this;} /** *

The timestamp after which Amazon Web Services will automatically apply * maintenance.

*/ inline MaintenanceDetails& WithMaintenanceAutoAppliedAfter(Aws::Utils::DateTime&& value) { SetMaintenanceAutoAppliedAfter(std::move(value)); return *this;} /** *

Timestamp of last applied maintenance.

*/ inline const Aws::Utils::DateTime& GetLastMaintenanceApplied() const{ return m_lastMaintenanceApplied; } /** *

Timestamp of last applied maintenance.

*/ inline bool LastMaintenanceAppliedHasBeenSet() const { return m_lastMaintenanceAppliedHasBeenSet; } /** *

Timestamp of last applied maintenance.

*/ inline void SetLastMaintenanceApplied(const Aws::Utils::DateTime& value) { m_lastMaintenanceAppliedHasBeenSet = true; m_lastMaintenanceApplied = value; } /** *

Timestamp of last applied maintenance.

*/ inline void SetLastMaintenanceApplied(Aws::Utils::DateTime&& value) { m_lastMaintenanceAppliedHasBeenSet = true; m_lastMaintenanceApplied = std::move(value); } /** *

Timestamp of last applied maintenance.

*/ inline MaintenanceDetails& WithLastMaintenanceApplied(const Aws::Utils::DateTime& value) { SetLastMaintenanceApplied(value); return *this;} /** *

Timestamp of last applied maintenance.

*/ inline MaintenanceDetails& WithLastMaintenanceApplied(Aws::Utils::DateTime&& value) { SetLastMaintenanceApplied(std::move(value)); return *this;} private: Aws::String m_pendingMaintenance; bool m_pendingMaintenanceHasBeenSet = false; Aws::Utils::DateTime m_maintenanceAutoAppliedAfter; bool m_maintenanceAutoAppliedAfterHasBeenSet = false; Aws::Utils::DateTime m_lastMaintenanceApplied; bool m_lastMaintenanceAppliedHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws