/** * 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 Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace RDS { namespace Model { /** *

Contains the details about a blue/green deployment.

For more * information, see Using * Amazon RDS Blue/Green Deployments for database updates in the Amazon RDS * User Guide and Using * Amazon RDS Blue/Green Deployments for database updates in the Amazon * Aurora User Guide.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of a resource in the blue environment.

*/ inline const Aws::String& GetSourceMember() const{ return m_sourceMember; } /** *

The Amazon Resource Name (ARN) of a resource in the blue environment.

*/ inline bool SourceMemberHasBeenSet() const { return m_sourceMemberHasBeenSet; } /** *

The Amazon Resource Name (ARN) of a resource in the blue environment.

*/ inline void SetSourceMember(const Aws::String& value) { m_sourceMemberHasBeenSet = true; m_sourceMember = value; } /** *

The Amazon Resource Name (ARN) of a resource in the blue environment.

*/ inline void SetSourceMember(Aws::String&& value) { m_sourceMemberHasBeenSet = true; m_sourceMember = std::move(value); } /** *

The Amazon Resource Name (ARN) of a resource in the blue environment.

*/ inline void SetSourceMember(const char* value) { m_sourceMemberHasBeenSet = true; m_sourceMember.assign(value); } /** *

The Amazon Resource Name (ARN) of a resource in the blue environment.

*/ inline SwitchoverDetail& WithSourceMember(const Aws::String& value) { SetSourceMember(value); return *this;} /** *

The Amazon Resource Name (ARN) of a resource in the blue environment.

*/ inline SwitchoverDetail& WithSourceMember(Aws::String&& value) { SetSourceMember(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of a resource in the blue environment.

*/ inline SwitchoverDetail& WithSourceMember(const char* value) { SetSourceMember(value); return *this;} /** *

The Amazon Resource Name (ARN) of a resource in the green environment.

*/ inline const Aws::String& GetTargetMember() const{ return m_targetMember; } /** *

The Amazon Resource Name (ARN) of a resource in the green environment.

*/ inline bool TargetMemberHasBeenSet() const { return m_targetMemberHasBeenSet; } /** *

The Amazon Resource Name (ARN) of a resource in the green environment.

*/ inline void SetTargetMember(const Aws::String& value) { m_targetMemberHasBeenSet = true; m_targetMember = value; } /** *

The Amazon Resource Name (ARN) of a resource in the green environment.

*/ inline void SetTargetMember(Aws::String&& value) { m_targetMemberHasBeenSet = true; m_targetMember = std::move(value); } /** *

The Amazon Resource Name (ARN) of a resource in the green environment.

*/ inline void SetTargetMember(const char* value) { m_targetMemberHasBeenSet = true; m_targetMember.assign(value); } /** *

The Amazon Resource Name (ARN) of a resource in the green environment.

*/ inline SwitchoverDetail& WithTargetMember(const Aws::String& value) { SetTargetMember(value); return *this;} /** *

The Amazon Resource Name (ARN) of a resource in the green environment.

*/ inline SwitchoverDetail& WithTargetMember(Aws::String&& value) { SetTargetMember(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of a resource in the green environment.

*/ inline SwitchoverDetail& WithTargetMember(const char* value) { SetTargetMember(value); return *this;} /** *

The switchover status of a resource in a blue/green deployment.

*

Values:

  • PROVISIONING - The resource is being * prepared to switch over.

  • AVAILABLE - The * resource is ready to switch over.

  • * SWITCHOVER_IN_PROGRESS - The resource is being switched over.

    *
  • SWITCHOVER_COMPLETED - The resource has been * switched over.

  • SWITCHOVER_FAILED - The resource * attempted to switch over but failed.

  • * MISSING_SOURCE - The source resource has been deleted.

  • *
  • MISSING_TARGET - The target resource has been deleted.

    *
*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The switchover status of a resource in a blue/green deployment.

*

Values:

  • PROVISIONING - The resource is being * prepared to switch over.

  • AVAILABLE - The * resource is ready to switch over.

  • * SWITCHOVER_IN_PROGRESS - The resource is being switched over.

    *
  • SWITCHOVER_COMPLETED - The resource has been * switched over.

  • SWITCHOVER_FAILED - The resource * attempted to switch over but failed.

  • * MISSING_SOURCE - The source resource has been deleted.

  • *
  • MISSING_TARGET - The target resource has been deleted.

    *
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The switchover status of a resource in a blue/green deployment.

*

Values:

  • PROVISIONING - The resource is being * prepared to switch over.

  • AVAILABLE - The * resource is ready to switch over.

  • * SWITCHOVER_IN_PROGRESS - The resource is being switched over.

    *
  • SWITCHOVER_COMPLETED - The resource has been * switched over.

  • SWITCHOVER_FAILED - The resource * attempted to switch over but failed.

  • * MISSING_SOURCE - The source resource has been deleted.

  • *
  • MISSING_TARGET - The target resource has been deleted.

    *
*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The switchover status of a resource in a blue/green deployment.

*

Values:

  • PROVISIONING - The resource is being * prepared to switch over.

  • AVAILABLE - The * resource is ready to switch over.

  • * SWITCHOVER_IN_PROGRESS - The resource is being switched over.

    *
  • SWITCHOVER_COMPLETED - The resource has been * switched over.

  • SWITCHOVER_FAILED - The resource * attempted to switch over but failed.

  • * MISSING_SOURCE - The source resource has been deleted.

  • *
  • MISSING_TARGET - The target resource has been deleted.

    *
*/ inline void SetStatus(Aws::String&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The switchover status of a resource in a blue/green deployment.

*

Values:

  • PROVISIONING - The resource is being * prepared to switch over.

  • AVAILABLE - The * resource is ready to switch over.

  • * SWITCHOVER_IN_PROGRESS - The resource is being switched over.

    *
  • SWITCHOVER_COMPLETED - The resource has been * switched over.

  • SWITCHOVER_FAILED - The resource * attempted to switch over but failed.

  • * MISSING_SOURCE - The source resource has been deleted.

  • *
  • MISSING_TARGET - The target resource has been deleted.

    *
*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The switchover status of a resource in a blue/green deployment.

*

Values:

  • PROVISIONING - The resource is being * prepared to switch over.

  • AVAILABLE - The * resource is ready to switch over.

  • * SWITCHOVER_IN_PROGRESS - The resource is being switched over.

    *
  • SWITCHOVER_COMPLETED - The resource has been * switched over.

  • SWITCHOVER_FAILED - The resource * attempted to switch over but failed.

  • * MISSING_SOURCE - The source resource has been deleted.

  • *
  • MISSING_TARGET - The target resource has been deleted.

    *
*/ inline SwitchoverDetail& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The switchover status of a resource in a blue/green deployment.

*

Values:

  • PROVISIONING - The resource is being * prepared to switch over.

  • AVAILABLE - The * resource is ready to switch over.

  • * SWITCHOVER_IN_PROGRESS - The resource is being switched over.

    *
  • SWITCHOVER_COMPLETED - The resource has been * switched over.

  • SWITCHOVER_FAILED - The resource * attempted to switch over but failed.

  • * MISSING_SOURCE - The source resource has been deleted.

  • *
  • MISSING_TARGET - The target resource has been deleted.

    *
*/ inline SwitchoverDetail& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The switchover status of a resource in a blue/green deployment.

*

Values:

  • PROVISIONING - The resource is being * prepared to switch over.

  • AVAILABLE - The * resource is ready to switch over.

  • * SWITCHOVER_IN_PROGRESS - The resource is being switched over.

    *
  • SWITCHOVER_COMPLETED - The resource has been * switched over.

  • SWITCHOVER_FAILED - The resource * attempted to switch over but failed.

  • * MISSING_SOURCE - The source resource has been deleted.

  • *
  • MISSING_TARGET - The target resource has been deleted.

    *
*/ inline SwitchoverDetail& WithStatus(const char* value) { SetStatus(value); return *this;} private: Aws::String m_sourceMember; bool m_sourceMemberHasBeenSet = false; Aws::String m_targetMember; bool m_targetMemberHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace RDS } // namespace Aws