All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.securityhub.model.AwsRedshiftClusterRestoreStatus Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS SecurityHub module holds the client classes that are used for communicating with AWS SecurityHub Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
 * the License. A copy of the License is located at
 * 
 * http://aws.amazon.com/apache2.0
 * 
 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
 * and limitations under the License.
 */
package com.amazonaws.services.securityhub.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Information about the status of a cluster restore action. It only applies if the cluster was created by restoring a * snapshot. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsRedshiftClusterRestoreStatus implements Serializable, Cloneable, StructuredPojo { /** *

* The number of megabytes per second being transferred from the backup storage. Returns the average rate for a * completed backup. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

*/ private Double currentRestoreRateInMegaBytesPerSecond; /** *

* The amount of time an in-progress restore has been running, or the amount of time it took a completed restore to * finish. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

*/ private Long elapsedTimeInSeconds; /** *

* The estimate of the time remaining before the restore is complete. Returns 0 for a completed restore. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

*/ private Long estimatedTimeToCompletionInSeconds; /** *

* The number of megabytes that were transferred from snapshot storage. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

*/ private Long progressInMegaBytes; /** *

* The size of the set of snapshot data that was used to restore the cluster. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

*/ private Long snapshotSizeInMegaBytes; /** *

* The status of the restore action. *

*

* Valid values: starting | restoring | completed | failed *

*/ private String status; /** *

* The number of megabytes per second being transferred from the backup storage. Returns the average rate for a * completed backup. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @param currentRestoreRateInMegaBytesPerSecond * The number of megabytes per second being transferred from the backup storage. Returns the average rate for * a completed backup.

*

* This field is only updated when you restore to DC2 and DS2 node types. */ public void setCurrentRestoreRateInMegaBytesPerSecond(Double currentRestoreRateInMegaBytesPerSecond) { this.currentRestoreRateInMegaBytesPerSecond = currentRestoreRateInMegaBytesPerSecond; } /** *

* The number of megabytes per second being transferred from the backup storage. Returns the average rate for a * completed backup. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @return The number of megabytes per second being transferred from the backup storage. Returns the average rate * for a completed backup.

*

* This field is only updated when you restore to DC2 and DS2 node types. */ public Double getCurrentRestoreRateInMegaBytesPerSecond() { return this.currentRestoreRateInMegaBytesPerSecond; } /** *

* The number of megabytes per second being transferred from the backup storage. Returns the average rate for a * completed backup. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @param currentRestoreRateInMegaBytesPerSecond * The number of megabytes per second being transferred from the backup storage. Returns the average rate for * a completed backup.

*

* This field is only updated when you restore to DC2 and DS2 node types. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRedshiftClusterRestoreStatus withCurrentRestoreRateInMegaBytesPerSecond(Double currentRestoreRateInMegaBytesPerSecond) { setCurrentRestoreRateInMegaBytesPerSecond(currentRestoreRateInMegaBytesPerSecond); return this; } /** *

* The amount of time an in-progress restore has been running, or the amount of time it took a completed restore to * finish. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @param elapsedTimeInSeconds * The amount of time an in-progress restore has been running, or the amount of time it took a completed * restore to finish.

*

* This field is only updated when you restore to DC2 and DS2 node types. */ public void setElapsedTimeInSeconds(Long elapsedTimeInSeconds) { this.elapsedTimeInSeconds = elapsedTimeInSeconds; } /** *

* The amount of time an in-progress restore has been running, or the amount of time it took a completed restore to * finish. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @return The amount of time an in-progress restore has been running, or the amount of time it took a completed * restore to finish.

*

* This field is only updated when you restore to DC2 and DS2 node types. */ public Long getElapsedTimeInSeconds() { return this.elapsedTimeInSeconds; } /** *

* The amount of time an in-progress restore has been running, or the amount of time it took a completed restore to * finish. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @param elapsedTimeInSeconds * The amount of time an in-progress restore has been running, or the amount of time it took a completed * restore to finish.

*

* This field is only updated when you restore to DC2 and DS2 node types. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRedshiftClusterRestoreStatus withElapsedTimeInSeconds(Long elapsedTimeInSeconds) { setElapsedTimeInSeconds(elapsedTimeInSeconds); return this; } /** *

* The estimate of the time remaining before the restore is complete. Returns 0 for a completed restore. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @param estimatedTimeToCompletionInSeconds * The estimate of the time remaining before the restore is complete. Returns 0 for a completed restore.

*

* This field is only updated when you restore to DC2 and DS2 node types. */ public void setEstimatedTimeToCompletionInSeconds(Long estimatedTimeToCompletionInSeconds) { this.estimatedTimeToCompletionInSeconds = estimatedTimeToCompletionInSeconds; } /** *

* The estimate of the time remaining before the restore is complete. Returns 0 for a completed restore. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @return The estimate of the time remaining before the restore is complete. Returns 0 for a completed restore.

*

* This field is only updated when you restore to DC2 and DS2 node types. */ public Long getEstimatedTimeToCompletionInSeconds() { return this.estimatedTimeToCompletionInSeconds; } /** *

* The estimate of the time remaining before the restore is complete. Returns 0 for a completed restore. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @param estimatedTimeToCompletionInSeconds * The estimate of the time remaining before the restore is complete. Returns 0 for a completed restore.

*

* This field is only updated when you restore to DC2 and DS2 node types. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRedshiftClusterRestoreStatus withEstimatedTimeToCompletionInSeconds(Long estimatedTimeToCompletionInSeconds) { setEstimatedTimeToCompletionInSeconds(estimatedTimeToCompletionInSeconds); return this; } /** *

* The number of megabytes that were transferred from snapshot storage. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @param progressInMegaBytes * The number of megabytes that were transferred from snapshot storage.

*

* This field is only updated when you restore to DC2 and DS2 node types. */ public void setProgressInMegaBytes(Long progressInMegaBytes) { this.progressInMegaBytes = progressInMegaBytes; } /** *

* The number of megabytes that were transferred from snapshot storage. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @return The number of megabytes that were transferred from snapshot storage.

*

* This field is only updated when you restore to DC2 and DS2 node types. */ public Long getProgressInMegaBytes() { return this.progressInMegaBytes; } /** *

* The number of megabytes that were transferred from snapshot storage. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @param progressInMegaBytes * The number of megabytes that were transferred from snapshot storage.

*

* This field is only updated when you restore to DC2 and DS2 node types. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRedshiftClusterRestoreStatus withProgressInMegaBytes(Long progressInMegaBytes) { setProgressInMegaBytes(progressInMegaBytes); return this; } /** *

* The size of the set of snapshot data that was used to restore the cluster. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @param snapshotSizeInMegaBytes * The size of the set of snapshot data that was used to restore the cluster.

*

* This field is only updated when you restore to DC2 and DS2 node types. */ public void setSnapshotSizeInMegaBytes(Long snapshotSizeInMegaBytes) { this.snapshotSizeInMegaBytes = snapshotSizeInMegaBytes; } /** *

* The size of the set of snapshot data that was used to restore the cluster. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @return The size of the set of snapshot data that was used to restore the cluster.

*

* This field is only updated when you restore to DC2 and DS2 node types. */ public Long getSnapshotSizeInMegaBytes() { return this.snapshotSizeInMegaBytes; } /** *

* The size of the set of snapshot data that was used to restore the cluster. *

*

* This field is only updated when you restore to DC2 and DS2 node types. *

* * @param snapshotSizeInMegaBytes * The size of the set of snapshot data that was used to restore the cluster.

*

* This field is only updated when you restore to DC2 and DS2 node types. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRedshiftClusterRestoreStatus withSnapshotSizeInMegaBytes(Long snapshotSizeInMegaBytes) { setSnapshotSizeInMegaBytes(snapshotSizeInMegaBytes); return this; } /** *

* The status of the restore action. *

*

* Valid values: starting | restoring | completed | failed *

* * @param status * The status of the restore action.

*

* Valid values: starting | restoring | completed | * failed */ public void setStatus(String status) { this.status = status; } /** *

* The status of the restore action. *

*

* Valid values: starting | restoring | completed | failed *

* * @return The status of the restore action.

*

* Valid values: starting | restoring | completed | * failed */ public String getStatus() { return this.status; } /** *

* The status of the restore action. *

*

* Valid values: starting | restoring | completed | failed *

* * @param status * The status of the restore action.

*

* Valid values: starting | restoring | completed | * failed * @return Returns a reference to this object so that method calls can be chained together. */ public AwsRedshiftClusterRestoreStatus withStatus(String status) { setStatus(status); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getCurrentRestoreRateInMegaBytesPerSecond() != null) sb.append("CurrentRestoreRateInMegaBytesPerSecond: ").append(getCurrentRestoreRateInMegaBytesPerSecond()).append(","); if (getElapsedTimeInSeconds() != null) sb.append("ElapsedTimeInSeconds: ").append(getElapsedTimeInSeconds()).append(","); if (getEstimatedTimeToCompletionInSeconds() != null) sb.append("EstimatedTimeToCompletionInSeconds: ").append(getEstimatedTimeToCompletionInSeconds()).append(","); if (getProgressInMegaBytes() != null) sb.append("ProgressInMegaBytes: ").append(getProgressInMegaBytes()).append(","); if (getSnapshotSizeInMegaBytes() != null) sb.append("SnapshotSizeInMegaBytes: ").append(getSnapshotSizeInMegaBytes()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AwsRedshiftClusterRestoreStatus == false) return false; AwsRedshiftClusterRestoreStatus other = (AwsRedshiftClusterRestoreStatus) obj; if (other.getCurrentRestoreRateInMegaBytesPerSecond() == null ^ this.getCurrentRestoreRateInMegaBytesPerSecond() == null) return false; if (other.getCurrentRestoreRateInMegaBytesPerSecond() != null && other.getCurrentRestoreRateInMegaBytesPerSecond().equals(this.getCurrentRestoreRateInMegaBytesPerSecond()) == false) return false; if (other.getElapsedTimeInSeconds() == null ^ this.getElapsedTimeInSeconds() == null) return false; if (other.getElapsedTimeInSeconds() != null && other.getElapsedTimeInSeconds().equals(this.getElapsedTimeInSeconds()) == false) return false; if (other.getEstimatedTimeToCompletionInSeconds() == null ^ this.getEstimatedTimeToCompletionInSeconds() == null) return false; if (other.getEstimatedTimeToCompletionInSeconds() != null && other.getEstimatedTimeToCompletionInSeconds().equals(this.getEstimatedTimeToCompletionInSeconds()) == false) return false; if (other.getProgressInMegaBytes() == null ^ this.getProgressInMegaBytes() == null) return false; if (other.getProgressInMegaBytes() != null && other.getProgressInMegaBytes().equals(this.getProgressInMegaBytes()) == false) return false; if (other.getSnapshotSizeInMegaBytes() == null ^ this.getSnapshotSizeInMegaBytes() == null) return false; if (other.getSnapshotSizeInMegaBytes() != null && other.getSnapshotSizeInMegaBytes().equals(this.getSnapshotSizeInMegaBytes()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCurrentRestoreRateInMegaBytesPerSecond() == null) ? 0 : getCurrentRestoreRateInMegaBytesPerSecond().hashCode()); hashCode = prime * hashCode + ((getElapsedTimeInSeconds() == null) ? 0 : getElapsedTimeInSeconds().hashCode()); hashCode = prime * hashCode + ((getEstimatedTimeToCompletionInSeconds() == null) ? 0 : getEstimatedTimeToCompletionInSeconds().hashCode()); hashCode = prime * hashCode + ((getProgressInMegaBytes() == null) ? 0 : getProgressInMegaBytes().hashCode()); hashCode = prime * hashCode + ((getSnapshotSizeInMegaBytes() == null) ? 0 : getSnapshotSizeInMegaBytes().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public AwsRedshiftClusterRestoreStatus clone() { try { return (AwsRedshiftClusterRestoreStatus) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.securityhub.model.transform.AwsRedshiftClusterRestoreStatusMarshaller.getInstance().marshall(this, protocolMarshaller); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy