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

com.amazonaws.services.redshift.model.DescribeTableRestoreStatusResult Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2010-2016 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.redshift.model;

import java.io.Serializable;

/**
 * 
 */
public class DescribeTableRestoreStatusResult implements Serializable,
        Cloneable {

    /**
     * 

* A list of status details for one or more table restore requests. *

*/ private com.amazonaws.internal.SdkInternalList tableRestoreStatusDetails; /** *

* A pagination token that can be used in a subsequent * DescribeTableRestoreStatus request. *

*/ private String marker; /** *

* A list of status details for one or more table restore requests. *

* * @return A list of status details for one or more table restore requests. */ public java.util.List getTableRestoreStatusDetails() { if (tableRestoreStatusDetails == null) { tableRestoreStatusDetails = new com.amazonaws.internal.SdkInternalList(); } return tableRestoreStatusDetails; } /** *

* A list of status details for one or more table restore requests. *

* * @param tableRestoreStatusDetails * A list of status details for one or more table restore requests. */ public void setTableRestoreStatusDetails( java.util.Collection tableRestoreStatusDetails) { if (tableRestoreStatusDetails == null) { this.tableRestoreStatusDetails = null; return; } this.tableRestoreStatusDetails = new com.amazonaws.internal.SdkInternalList( tableRestoreStatusDetails); } /** *

* A list of status details for one or more table restore requests. *

*

* NOTE: This method appends the values to the existing list (if * any). Use {@link #setTableRestoreStatusDetails(java.util.Collection)} or * {@link #withTableRestoreStatusDetails(java.util.Collection)} if you want * to override the existing values. *

* * @param tableRestoreStatusDetails * A list of status details for one or more table restore requests. * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeTableRestoreStatusResult withTableRestoreStatusDetails( TableRestoreStatus... tableRestoreStatusDetails) { if (this.tableRestoreStatusDetails == null) { setTableRestoreStatusDetails(new com.amazonaws.internal.SdkInternalList( tableRestoreStatusDetails.length)); } for (TableRestoreStatus ele : tableRestoreStatusDetails) { this.tableRestoreStatusDetails.add(ele); } return this; } /** *

* A list of status details for one or more table restore requests. *

* * @param tableRestoreStatusDetails * A list of status details for one or more table restore requests. * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeTableRestoreStatusResult withTableRestoreStatusDetails( java.util.Collection tableRestoreStatusDetails) { setTableRestoreStatusDetails(tableRestoreStatusDetails); return this; } /** *

* A pagination token that can be used in a subsequent * DescribeTableRestoreStatus request. *

* * @param marker * A pagination token that can be used in a subsequent * DescribeTableRestoreStatus request. */ public void setMarker(String marker) { this.marker = marker; } /** *

* A pagination token that can be used in a subsequent * DescribeTableRestoreStatus request. *

* * @return A pagination token that can be used in a subsequent * DescribeTableRestoreStatus request. */ public String getMarker() { return this.marker; } /** *

* A pagination token that can be used in a subsequent * DescribeTableRestoreStatus request. *

* * @param marker * A pagination token that can be used in a subsequent * DescribeTableRestoreStatus request. * @return Returns a reference to this object so that method calls can be * chained together. */ public DescribeTableRestoreStatusResult withMarker(String marker) { setMarker(marker); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getTableRestoreStatusDetails() != null) sb.append("TableRestoreStatusDetails: " + getTableRestoreStatusDetails() + ","); if (getMarker() != null) sb.append("Marker: " + getMarker()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeTableRestoreStatusResult == false) return false; DescribeTableRestoreStatusResult other = (DescribeTableRestoreStatusResult) obj; if (other.getTableRestoreStatusDetails() == null ^ this.getTableRestoreStatusDetails() == null) return false; if (other.getTableRestoreStatusDetails() != null && other.getTableRestoreStatusDetails().equals( this.getTableRestoreStatusDetails()) == false) return false; if (other.getMarker() == null ^ this.getMarker() == null) return false; if (other.getMarker() != null && other.getMarker().equals(this.getMarker()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getTableRestoreStatusDetails() == null) ? 0 : getTableRestoreStatusDetails().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); return hashCode; } @Override public DescribeTableRestoreStatusResult clone() { try { return (DescribeTableRestoreStatusResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy