/* * Copyright 2018-2023 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.datasync.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 DescribeStorageSystemResourcesRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* Specifies the Amazon Resource Name (ARN) of the discovery job that's collecting data from your on-premises * storage system. *
*/ private String discoveryJobArn; /** ** Specifies what kind of storage system resources that you want information about. *
*/ private String resourceType; /** *
* Specifies the universally unique identifiers (UUIDs) of the storage system resources that you want information
* about. You can't use this parameter in combination with the Filter
parameter.
*
* Filters the storage system resources that you want returned. For example, this might be volumes associated with a * specific storage virtual machine (SVM). *
*/ private java.util.Map* Specifies the maximum number of storage system resources that you want to list in a response. *
*/ private Integer maxResults; /** ** Specifies an opaque string that indicates the position to begin the next list of results in the response. *
*/ private String nextToken; /** ** Specifies the Amazon Resource Name (ARN) of the discovery job that's collecting data from your on-premises * storage system. *
* * @param discoveryJobArn * Specifies the Amazon Resource Name (ARN) of the discovery job that's collecting data from your on-premises * storage system. */ public void setDiscoveryJobArn(String discoveryJobArn) { this.discoveryJobArn = discoveryJobArn; } /** ** Specifies the Amazon Resource Name (ARN) of the discovery job that's collecting data from your on-premises * storage system. *
* * @return Specifies the Amazon Resource Name (ARN) of the discovery job that's collecting data from your * on-premises storage system. */ public String getDiscoveryJobArn() { return this.discoveryJobArn; } /** ** Specifies the Amazon Resource Name (ARN) of the discovery job that's collecting data from your on-premises * storage system. *
* * @param discoveryJobArn * Specifies the Amazon Resource Name (ARN) of the discovery job that's collecting data from your on-premises * storage system. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStorageSystemResourcesRequest withDiscoveryJobArn(String discoveryJobArn) { setDiscoveryJobArn(discoveryJobArn); return this; } /** ** Specifies what kind of storage system resources that you want information about. *
* * @param resourceType * Specifies what kind of storage system resources that you want information about. * @see DiscoveryResourceType */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** ** Specifies what kind of storage system resources that you want information about. *
* * @return Specifies what kind of storage system resources that you want information about. * @see DiscoveryResourceType */ public String getResourceType() { return this.resourceType; } /** ** Specifies what kind of storage system resources that you want information about. *
* * @param resourceType * Specifies what kind of storage system resources that you want information about. * @return Returns a reference to this object so that method calls can be chained together. * @see DiscoveryResourceType */ public DescribeStorageSystemResourcesRequest withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** ** Specifies what kind of storage system resources that you want information about. *
* * @param resourceType * Specifies what kind of storage system resources that you want information about. * @return Returns a reference to this object so that method calls can be chained together. * @see DiscoveryResourceType */ public DescribeStorageSystemResourcesRequest withResourceType(DiscoveryResourceType resourceType) { this.resourceType = resourceType.toString(); return this; } /** *
* Specifies the universally unique identifiers (UUIDs) of the storage system resources that you want information
* about. You can't use this parameter in combination with the Filter
parameter.
*
Filter
parameter.
*/
public java.util.List
* Specifies the universally unique identifiers (UUIDs) of the storage system resources that you want information
* about. You can't use this parameter in combination with the Filter
parameter.
*
Filter
parameter.
*/
public void setResourceIds(java.util.Collection
* Specifies the universally unique identifiers (UUIDs) of the storage system resources that you want information
* about. You can't use this parameter in combination with the Filter
parameter.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setResourceIds(java.util.Collection)} or {@link #withResourceIds(java.util.Collection)} if you want to * override the existing values. *
* * @param resourceIds * Specifies the universally unique identifiers (UUIDs) of the storage system resources that you want * information about. You can't use this parameter in combination with theFilter
parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeStorageSystemResourcesRequest withResourceIds(String... resourceIds) {
if (this.resourceIds == null) {
setResourceIds(new java.util.ArrayList
* Specifies the universally unique identifiers (UUIDs) of the storage system resources that you want information
* about. You can't use this parameter in combination with the Filter
parameter.
*
Filter
parameter.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeStorageSystemResourcesRequest withResourceIds(java.util.Collection* Filters the storage system resources that you want returned. For example, this might be volumes associated with a * specific storage virtual machine (SVM). *
* * @return Filters the storage system resources that you want returned. For example, this might be volumes * associated with a specific storage virtual machine (SVM). */ public java.util.Map* Filters the storage system resources that you want returned. For example, this might be volumes associated with a * specific storage virtual machine (SVM). *
* * @param filter * Filters the storage system resources that you want returned. For example, this might be volumes associated * with a specific storage virtual machine (SVM). */ public void setFilter(java.util.Map* Filters the storage system resources that you want returned. For example, this might be volumes associated with a * specific storage virtual machine (SVM). *
* * @param filter * Filters the storage system resources that you want returned. For example, this might be volumes associated * with a specific storage virtual machine (SVM). * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStorageSystemResourcesRequest withFilter(java.util.Map* Specifies the maximum number of storage system resources that you want to list in a response. *
* * @param maxResults * Specifies the maximum number of storage system resources that you want to list in a response. */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** ** Specifies the maximum number of storage system resources that you want to list in a response. *
* * @return Specifies the maximum number of storage system resources that you want to list in a response. */ public Integer getMaxResults() { return this.maxResults; } /** ** Specifies the maximum number of storage system resources that you want to list in a response. *
* * @param maxResults * Specifies the maximum number of storage system resources that you want to list in a response. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStorageSystemResourcesRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** ** Specifies an opaque string that indicates the position to begin the next list of results in the response. *
* * @param nextToken * Specifies an opaque string that indicates the position to begin the next list of results in the response. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** ** Specifies an opaque string that indicates the position to begin the next list of results in the response. *
* * @return Specifies an opaque string that indicates the position to begin the next list of results in the response. */ public String getNextToken() { return this.nextToken; } /** ** Specifies an opaque string that indicates the position to begin the next list of results in the response. *
* * @param nextToken * Specifies an opaque string that indicates the position to begin the next list of results in the response. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribeStorageSystemResourcesRequest withNextToken(String nextToken) { setNextToken(nextToken); 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 (getDiscoveryJobArn() != null) sb.append("DiscoveryJobArn: ").append(getDiscoveryJobArn()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()).append(","); if (getResourceIds() != null) sb.append("ResourceIds: ").append(getResourceIds()).append(","); if (getFilter() != null) sb.append("Filter: ").append(getFilter()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DescribeStorageSystemResourcesRequest == false) return false; DescribeStorageSystemResourcesRequest other = (DescribeStorageSystemResourcesRequest) obj; if (other.getDiscoveryJobArn() == null ^ this.getDiscoveryJobArn() == null) return false; if (other.getDiscoveryJobArn() != null && other.getDiscoveryJobArn().equals(this.getDiscoveryJobArn()) == false) return false; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getResourceIds() == null ^ this.getResourceIds() == null) return false; if (other.getResourceIds() != null && other.getResourceIds().equals(this.getResourceIds()) == false) return false; if (other.getFilter() == null ^ this.getFilter() == null) return false; if (other.getFilter() != null && other.getFilter().equals(this.getFilter()) == 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; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDiscoveryJobArn() == null) ? 0 : getDiscoveryJobArn().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); hashCode = prime * hashCode + ((getResourceIds() == null) ? 0 : getResourceIds().hashCode()); hashCode = prime * hashCode + ((getFilter() == null) ? 0 : getFilter().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public DescribeStorageSystemResourcesRequest clone() { return (DescribeStorageSystemResourcesRequest) super.clone(); } }