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

The status of a parameter in a cluster parameter group for an Amazon Redshift * cluster.

See Also:

AWS * API Reference

*/ class AwsRedshiftClusterClusterParameterStatus { public: AWS_SECURITYHUB_API AwsRedshiftClusterClusterParameterStatus(); AWS_SECURITYHUB_API AwsRedshiftClusterClusterParameterStatus(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsRedshiftClusterClusterParameterStatus& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() 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 AwsRedshiftClusterClusterParameterStatus& WithParameterName(const Aws::String& value) { SetParameterName(value); return *this;} /** *

The name of the parameter.

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

The name of the parameter.

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

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

Valid values: in-sync | pending-reboot * | applying | invalid-parameter | * apply-deferred | apply-error | * unknown-error

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

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

Valid values: in-sync | pending-reboot * | applying | invalid-parameter | * apply-deferred | apply-error | * unknown-error

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

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

Valid values: in-sync | pending-reboot * | applying | invalid-parameter | * apply-deferred | apply-error | * unknown-error

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

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

Valid values: in-sync | pending-reboot * | applying | invalid-parameter | * apply-deferred | apply-error | * unknown-error

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

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

Valid values: in-sync | pending-reboot * | applying | invalid-parameter | * apply-deferred | apply-error | * unknown-error

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

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

Valid values: in-sync | pending-reboot * | applying | invalid-parameter | * apply-deferred | apply-error | * unknown-error

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

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

Valid values: in-sync | pending-reboot * | applying | invalid-parameter | * apply-deferred | apply-error | * unknown-error

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

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

Valid values: in-sync | pending-reboot * | applying | invalid-parameter | * apply-deferred | apply-error | * unknown-error

*/ inline AwsRedshiftClusterClusterParameterStatus& 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 AwsRedshiftClusterClusterParameterStatus& WithParameterApplyErrorDescription(const Aws::String& value) { SetParameterApplyErrorDescription(value); return *this;} /** *

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

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

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

*/ inline AwsRedshiftClusterClusterParameterStatus& 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 SecurityHub } // namespace Aws