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

com.amazonaws.services.storagegateway.model.ListTapesResult Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * Copyright 2011-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.storagegateway.model;

import java.io.Serializable;

/**
 * 

* A JSON object containing the following fields: *

* */ public class ListTapesResult implements Serializable, Cloneable { private com.amazonaws.internal.SdkInternalList tapeInfos; /** *

* A string that indicates the position at which to begin returning the next * list of tapes. Use the marker in your next request to continue pagination * of tapes. If there are no more tapes to list, this element does not * appear in the response body. *

*/ private String marker; /** * @return */ public java.util.List getTapeInfos() { if (tapeInfos == null) { tapeInfos = new com.amazonaws.internal.SdkInternalList(); } return tapeInfos; } /** * @param tapeInfos */ public void setTapeInfos(java.util.Collection tapeInfos) { if (tapeInfos == null) { this.tapeInfos = null; return; } this.tapeInfos = new com.amazonaws.internal.SdkInternalList( tapeInfos); } /** *

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

* * @param tapeInfos * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTapesResult withTapeInfos(TapeInfo... tapeInfos) { if (this.tapeInfos == null) { setTapeInfos(new com.amazonaws.internal.SdkInternalList( tapeInfos.length)); } for (TapeInfo ele : tapeInfos) { this.tapeInfos.add(ele); } return this; } /** * @param tapeInfos * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTapesResult withTapeInfos( java.util.Collection tapeInfos) { setTapeInfos(tapeInfos); return this; } /** *

* A string that indicates the position at which to begin returning the next * list of tapes. Use the marker in your next request to continue pagination * of tapes. If there are no more tapes to list, this element does not * appear in the response body. *

* * @param marker * A string that indicates the position at which to begin returning * the next list of tapes. Use the marker in your next request to * continue pagination of tapes. If there are no more tapes to list, * this element does not appear in the response body. */ public void setMarker(String marker) { this.marker = marker; } /** *

* A string that indicates the position at which to begin returning the next * list of tapes. Use the marker in your next request to continue pagination * of tapes. If there are no more tapes to list, this element does not * appear in the response body. *

* * @return A string that indicates the position at which to begin returning * the next list of tapes. Use the marker in your next request to * continue pagination of tapes. If there are no more tapes to list, * this element does not appear in the response body. */ public String getMarker() { return this.marker; } /** *

* A string that indicates the position at which to begin returning the next * list of tapes. Use the marker in your next request to continue pagination * of tapes. If there are no more tapes to list, this element does not * appear in the response body. *

* * @param marker * A string that indicates the position at which to begin returning * the next list of tapes. Use the marker in your next request to * continue pagination of tapes. If there are no more tapes to list, * this element does not appear in the response body. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListTapesResult 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 (getTapeInfos() != null) sb.append("TapeInfos: " + getTapeInfos() + ","); 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 ListTapesResult == false) return false; ListTapesResult other = (ListTapesResult) obj; if (other.getTapeInfos() == null ^ this.getTapeInfos() == null) return false; if (other.getTapeInfos() != null && other.getTapeInfos().equals(this.getTapeInfos()) == 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 + ((getTapeInfos() == null) ? 0 : getTapeInfos().hashCode()); hashCode = prime * hashCode + ((getMarker() == null) ? 0 : getMarker().hashCode()); return hashCode; } @Override public ListTapesResult clone() { try { return (ListTapesResult) 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