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

com.amazonaws.services.fsx.model.DescribeSnapshotsRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon FSx module holds the client classes that are used for communicating with Amazon FSx 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.fsx.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't * found, a SnapshotNotFound error occurs. *

*/ private java.util.List snapshotIds; /** *

* The filters structure. The supported names are file-system-id or volume-id. *

*/ private java.util.List filters; private Integer maxResults; private String nextToken; /** *

* Set to false (default) if you want to only see the snapshots owned by your Amazon Web Services * account. Set to true if you want to see the snapshots in your account and the ones shared with you * from another account. *

*/ private Boolean includeShared; /** *

* The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't * found, a SnapshotNotFound error occurs. *

* * @return The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any * IDs aren't found, a SnapshotNotFound error occurs. */ public java.util.List getSnapshotIds() { return snapshotIds; } /** *

* The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't * found, a SnapshotNotFound error occurs. *

* * @param snapshotIds * The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs * aren't found, a SnapshotNotFound error occurs. */ public void setSnapshotIds(java.util.Collection snapshotIds) { if (snapshotIds == null) { this.snapshotIds = null; return; } this.snapshotIds = new java.util.ArrayList(snapshotIds); } /** *

* The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't * found, a SnapshotNotFound error occurs. *

*

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

* * @param snapshotIds * The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs * aren't found, a SnapshotNotFound error occurs. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSnapshotsRequest withSnapshotIds(String... snapshotIds) { if (this.snapshotIds == null) { setSnapshotIds(new java.util.ArrayList(snapshotIds.length)); } for (String ele : snapshotIds) { this.snapshotIds.add(ele); } return this; } /** *

* The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs aren't * found, a SnapshotNotFound error occurs. *

* * @param snapshotIds * The IDs of the snapshots that you want to retrieve. This parameter value overrides any filters. If any IDs * aren't found, a SnapshotNotFound error occurs. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSnapshotsRequest withSnapshotIds(java.util.Collection snapshotIds) { setSnapshotIds(snapshotIds); return this; } /** *

* The filters structure. The supported names are file-system-id or volume-id. *

* * @return The filters structure. The supported names are file-system-id or volume-id. */ public java.util.List getFilters() { return filters; } /** *

* The filters structure. The supported names are file-system-id or volume-id. *

* * @param filters * The filters structure. The supported names are file-system-id or volume-id. */ public void setFilters(java.util.Collection filters) { if (filters == null) { this.filters = null; return; } this.filters = new java.util.ArrayList(filters); } /** *

* The filters structure. The supported names are file-system-id or volume-id. *

*

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

* * @param filters * The filters structure. The supported names are file-system-id or volume-id. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSnapshotsRequest withFilters(SnapshotFilter... filters) { if (this.filters == null) { setFilters(new java.util.ArrayList(filters.length)); } for (SnapshotFilter ele : filters) { this.filters.add(ele); } return this; } /** *

* The filters structure. The supported names are file-system-id or volume-id. *

* * @param filters * The filters structure. The supported names are file-system-id or volume-id. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSnapshotsRequest withFilters(java.util.Collection filters) { setFilters(filters); return this; } /** * @param maxResults */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** * @return */ public Integer getMaxResults() { return this.maxResults; } /** * @param maxResults * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSnapshotsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** * @param nextToken */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** * @return */ public String getNextToken() { return this.nextToken; } /** * @param nextToken * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSnapshotsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* Set to false (default) if you want to only see the snapshots owned by your Amazon Web Services * account. Set to true if you want to see the snapshots in your account and the ones shared with you * from another account. *

* * @param includeShared * Set to false (default) if you want to only see the snapshots owned by your Amazon Web * Services account. Set to true if you want to see the snapshots in your account and the ones * shared with you from another account. */ public void setIncludeShared(Boolean includeShared) { this.includeShared = includeShared; } /** *

* Set to false (default) if you want to only see the snapshots owned by your Amazon Web Services * account. Set to true if you want to see the snapshots in your account and the ones shared with you * from another account. *

* * @return Set to false (default) if you want to only see the snapshots owned by your Amazon Web * Services account. Set to true if you want to see the snapshots in your account and the ones * shared with you from another account. */ public Boolean getIncludeShared() { return this.includeShared; } /** *

* Set to false (default) if you want to only see the snapshots owned by your Amazon Web Services * account. Set to true if you want to see the snapshots in your account and the ones shared with you * from another account. *

* * @param includeShared * Set to false (default) if you want to only see the snapshots owned by your Amazon Web * Services account. Set to true if you want to see the snapshots in your account and the ones * shared with you from another account. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeSnapshotsRequest withIncludeShared(Boolean includeShared) { setIncludeShared(includeShared); return this; } /** *

* Set to false (default) if you want to only see the snapshots owned by your Amazon Web Services * account. Set to true if you want to see the snapshots in your account and the ones shared with you * from another account. *

* * @return Set to false (default) if you want to only see the snapshots owned by your Amazon Web * Services account. Set to true if you want to see the snapshots in your account and the ones * shared with you from another account. */ public Boolean isIncludeShared() { return this.includeShared; } /** * 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 (getSnapshotIds() != null) sb.append("SnapshotIds: ").append(getSnapshotIds()).append(","); if (getFilters() != null) sb.append("Filters: ").append(getFilters()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getIncludeShared() != null) sb.append("IncludeShared: ").append(getIncludeShared()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeSnapshotsRequest == false) return false; DescribeSnapshotsRequest other = (DescribeSnapshotsRequest) obj; if (other.getSnapshotIds() == null ^ this.getSnapshotIds() == null) return false; if (other.getSnapshotIds() != null && other.getSnapshotIds().equals(this.getSnapshotIds()) == false) return false; if (other.getFilters() == null ^ this.getFilters() == null) return false; if (other.getFilters() != null && other.getFilters().equals(this.getFilters()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getIncludeShared() == null ^ this.getIncludeShared() == null) return false; if (other.getIncludeShared() != null && other.getIncludeShared().equals(this.getIncludeShared()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSnapshotIds() == null) ? 0 : getSnapshotIds().hashCode()); hashCode = prime * hashCode + ((getFilters() == null) ? 0 : getFilters().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getIncludeShared() == null) ? 0 : getIncludeShared().hashCode()); return hashCode; } @Override public DescribeSnapshotsRequest clone() { return (DescribeSnapshotsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy