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

Describes the status of a parameter group.

See Also:

AWS * API Reference

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

The name of the parameter.

*/ inline const Aws::String& GetParameterName() const{ return m_parameterName; } /** *

The name of the parameter.

*/ inline bool ParameterNameHasBeenSet() const { return m_parameterNameHasBeenSet; } /** *

The name of the parameter.

*/ inline void SetParameterName(const Aws::String& value) { m_parameterNameHasBeenSet = true; m_parameterName = value; } /** *

The name of the parameter.

*/ inline void SetParameterName(Aws::String&& value) { m_parameterNameHasBeenSet = true; m_parameterName = std::move(value); } /** *

The name of the parameter.

*/ inline void SetParameterName(const char* value) { m_parameterNameHasBeenSet = true; m_parameterName.assign(value); } /** *

The name of the parameter.

*/ inline ClusterParameterStatus& WithParameterName(const Aws::String& value) { SetParameterName(value); return *this;} /** *

The name of the parameter.

*/ inline ClusterParameterStatus& WithParameterName(Aws::String&& value) { SetParameterName(std::move(value)); return *this;} /** *

The name of the parameter.

*/ inline ClusterParameterStatus& WithParameterName(const char* value) { SetParameterName(value); return *this;} /** *

The status of the parameter that indicates whether the parameter is in sync * with the database, waiting for a cluster reboot, or encountered an error when * being applied.

The following are possible statuses and descriptions.

*
  • in-sync: The parameter value is in sync with the * database.

  • pending-reboot: The parameter value * will be applied after the cluster reboots.

  • * applying: The parameter value is being applied to the database.

    *
  • invalid-parameter: Cannot apply the parameter value * because it has an invalid value or syntax.

  • * apply-deferred: The parameter contains static property changes. The * changes are deferred until the cluster reboots.

  • * apply-error: Cannot connect to the cluster. The parameter change * will be applied after the cluster reboots.

  • * unknown-error: Cannot apply the parameter change right now. The * change will be applied after the cluster reboots.

*/ inline const Aws::String& GetParameterApplyStatus() const{ return m_parameterApplyStatus; } /** *

The status of the parameter that indicates whether the parameter is in sync * with the database, waiting for a cluster reboot, or encountered an error when * being applied.

The following are possible statuses and descriptions.

*
  • in-sync: The parameter value is in sync with the * database.

  • pending-reboot: The parameter value * will be applied after the cluster reboots.

  • * applying: The parameter value is being applied to the database.

    *
  • invalid-parameter: Cannot apply the parameter value * because it has an invalid value or syntax.

  • * apply-deferred: The parameter contains static property changes. The * changes are deferred until the cluster reboots.

  • * apply-error: Cannot connect to the cluster. The parameter change * will be applied after the cluster reboots.

  • * unknown-error: Cannot apply the parameter change right now. The * change will be applied after the cluster reboots.

*/ inline bool ParameterApplyStatusHasBeenSet() const { return m_parameterApplyStatusHasBeenSet; } /** *

The status of the parameter that indicates whether the parameter is in sync * with the database, waiting for a cluster reboot, or encountered an error when * being applied.

The following are possible statuses and descriptions.

*
  • in-sync: The parameter value is in sync with the * database.

  • pending-reboot: The parameter value * will be applied after the cluster reboots.

  • * applying: The parameter value is being applied to the database.

    *
  • invalid-parameter: Cannot apply the parameter value * because it has an invalid value or syntax.

  • * apply-deferred: The parameter contains static property changes. The * changes are deferred until the cluster reboots.

  • * apply-error: Cannot connect to the cluster. The parameter change * will be applied after the cluster reboots.

  • * unknown-error: Cannot apply the parameter change right now. The * change will be applied after the cluster reboots.

*/ inline void SetParameterApplyStatus(const Aws::String& value) { m_parameterApplyStatusHasBeenSet = true; m_parameterApplyStatus = value; } /** *

The status of the parameter that indicates whether the parameter is in sync * with the database, waiting for a cluster reboot, or encountered an error when * being applied.

The following are possible statuses and descriptions.

*
  • in-sync: The parameter value is in sync with the * database.

  • pending-reboot: The parameter value * will be applied after the cluster reboots.

  • * applying: The parameter value is being applied to the database.

    *
  • invalid-parameter: Cannot apply the parameter value * because it has an invalid value or syntax.

  • * apply-deferred: The parameter contains static property changes. The * changes are deferred until the cluster reboots.

  • * apply-error: Cannot connect to the cluster. The parameter change * will be applied after the cluster reboots.

  • * unknown-error: Cannot apply the parameter change right now. The * change will be applied after the cluster reboots.

*/ inline void SetParameterApplyStatus(Aws::String&& value) { m_parameterApplyStatusHasBeenSet = true; m_parameterApplyStatus = std::move(value); } /** *

The status of the parameter that indicates whether the parameter is in sync * with the database, waiting for a cluster reboot, or encountered an error when * being applied.

The following are possible statuses and descriptions.

*
  • in-sync: The parameter value is in sync with the * database.

  • pending-reboot: The parameter value * will be applied after the cluster reboots.

  • * applying: The parameter value is being applied to the database.

    *
  • invalid-parameter: Cannot apply the parameter value * because it has an invalid value or syntax.

  • * apply-deferred: The parameter contains static property changes. The * changes are deferred until the cluster reboots.

  • * apply-error: Cannot connect to the cluster. The parameter change * will be applied after the cluster reboots.

  • * unknown-error: Cannot apply the parameter change right now. The * change will be applied after the cluster reboots.

*/ inline void SetParameterApplyStatus(const char* value) { m_parameterApplyStatusHasBeenSet = true; m_parameterApplyStatus.assign(value); } /** *

The status of the parameter that indicates whether the parameter is in sync * with the database, waiting for a cluster reboot, or encountered an error when * being applied.

The following are possible statuses and descriptions.

*
  • in-sync: The parameter value is in sync with the * database.

  • pending-reboot: The parameter value * will be applied after the cluster reboots.

  • * applying: The parameter value is being applied to the database.

    *
  • invalid-parameter: Cannot apply the parameter value * because it has an invalid value or syntax.

  • * apply-deferred: The parameter contains static property changes. The * changes are deferred until the cluster reboots.

  • * apply-error: Cannot connect to the cluster. The parameter change * will be applied after the cluster reboots.

  • * unknown-error: Cannot apply the parameter change right now. The * change will be applied after the cluster reboots.

*/ inline ClusterParameterStatus& WithParameterApplyStatus(const Aws::String& value) { SetParameterApplyStatus(value); return *this;} /** *

The status of the parameter that indicates whether the parameter is in sync * with the database, waiting for a cluster reboot, or encountered an error when * being applied.

The following are possible statuses and descriptions.

*
  • in-sync: The parameter value is in sync with the * database.

  • pending-reboot: The parameter value * will be applied after the cluster reboots.

  • * applying: The parameter value is being applied to the database.

    *
  • invalid-parameter: Cannot apply the parameter value * because it has an invalid value or syntax.

  • * apply-deferred: The parameter contains static property changes. The * changes are deferred until the cluster reboots.

  • * apply-error: Cannot connect to the cluster. The parameter change * will be applied after the cluster reboots.

  • * unknown-error: Cannot apply the parameter change right now. The * change will be applied after the cluster reboots.

*/ inline ClusterParameterStatus& WithParameterApplyStatus(Aws::String&& value) { SetParameterApplyStatus(std::move(value)); return *this;} /** *

The status of the parameter that indicates whether the parameter is in sync * with the database, waiting for a cluster reboot, or encountered an error when * being applied.

The following are possible statuses and descriptions.

*
  • in-sync: The parameter value is in sync with the * database.

  • pending-reboot: The parameter value * will be applied after the cluster reboots.

  • * applying: The parameter value is being applied to the database.

    *
  • invalid-parameter: Cannot apply the parameter value * because it has an invalid value or syntax.

  • * apply-deferred: The parameter contains static property changes. The * changes are deferred until the cluster reboots.

  • * apply-error: Cannot connect to the cluster. The parameter change * will be applied after the cluster reboots.

  • * unknown-error: Cannot apply the parameter change right now. The * change will be applied after the cluster reboots.

*/ inline ClusterParameterStatus& WithParameterApplyStatus(const char* value) { SetParameterApplyStatus(value); return *this;} /** *

The error that prevented the parameter from being applied to the * database.

*/ inline const Aws::String& GetParameterApplyErrorDescription() const{ return m_parameterApplyErrorDescription; } /** *

The error that prevented the parameter from being applied to the * database.

*/ inline bool ParameterApplyErrorDescriptionHasBeenSet() const { return m_parameterApplyErrorDescriptionHasBeenSet; } /** *

The error that prevented the parameter from being applied to the * database.

*/ inline void SetParameterApplyErrorDescription(const Aws::String& value) { m_parameterApplyErrorDescriptionHasBeenSet = true; m_parameterApplyErrorDescription = value; } /** *

The error that prevented the parameter from being applied to the * database.

*/ inline void SetParameterApplyErrorDescription(Aws::String&& value) { m_parameterApplyErrorDescriptionHasBeenSet = true; m_parameterApplyErrorDescription = std::move(value); } /** *

The error that prevented the parameter from being applied to the * database.

*/ inline void SetParameterApplyErrorDescription(const char* value) { m_parameterApplyErrorDescriptionHasBeenSet = true; m_parameterApplyErrorDescription.assign(value); } /** *

The error that prevented the parameter from being applied to the * database.

*/ inline ClusterParameterStatus& WithParameterApplyErrorDescription(const Aws::String& value) { SetParameterApplyErrorDescription(value); return *this;} /** *

The error that prevented the parameter from being applied to the * database.

*/ inline ClusterParameterStatus& WithParameterApplyErrorDescription(Aws::String&& value) { SetParameterApplyErrorDescription(std::move(value)); return *this;} /** *

The error that prevented the parameter from being applied to the * database.

*/ inline ClusterParameterStatus& WithParameterApplyErrorDescription(const char* value) { SetParameterApplyErrorDescription(value); return *this;} private: Aws::String m_parameterName; bool m_parameterNameHasBeenSet = false; Aws::String m_parameterApplyStatus; bool m_parameterApplyStatusHasBeenSet = false; Aws::String m_parameterApplyErrorDescription; bool m_parameterApplyErrorDescriptionHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws