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

com.amazonaws.services.datasync.model.GenerateRecommendationsRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
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.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 GenerateRecommendationsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises * storage system. *

*/ private String discoveryJobArn; /** *

* Specifies the universally unique identifiers (UUIDs) of the resources in your storage system that you want * recommendations on. *

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

* Specifies the type of resource in your storage system that you want recommendations on. *

*/ private String resourceType; /** *

* Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises * storage system. *

* * @param discoveryJobArn * Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your * on-premises storage system. */ public void setDiscoveryJobArn(String discoveryJobArn) { this.discoveryJobArn = discoveryJobArn; } /** *

* Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises * storage system. *

* * @return Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your * on-premises storage system. */ public String getDiscoveryJobArn() { return this.discoveryJobArn; } /** *

* Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your on-premises * storage system. *

* * @param discoveryJobArn * Specifies the Amazon Resource Name (ARN) of the discovery job that collects information about your * on-premises storage system. * @return Returns a reference to this object so that method calls can be chained together. */ public GenerateRecommendationsRequest withDiscoveryJobArn(String discoveryJobArn) { setDiscoveryJobArn(discoveryJobArn); return this; } /** *

* Specifies the universally unique identifiers (UUIDs) of the resources in your storage system that you want * recommendations on. *

* * @return Specifies the universally unique identifiers (UUIDs) of the resources in your storage system that you * want recommendations on. */ public java.util.List getResourceIds() { return resourceIds; } /** *

* Specifies the universally unique identifiers (UUIDs) of the resources in your storage system that you want * recommendations on. *

* * @param resourceIds * Specifies the universally unique identifiers (UUIDs) of the resources in your storage system that you want * recommendations on. */ public void setResourceIds(java.util.Collection resourceIds) { if (resourceIds == null) { this.resourceIds = null; return; } this.resourceIds = new java.util.ArrayList(resourceIds); } /** *

* Specifies the universally unique identifiers (UUIDs) of the resources in your storage system that you want * recommendations on. *

*

* 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 resources in your storage system that you want * recommendations on. * @return Returns a reference to this object so that method calls can be chained together. */ public GenerateRecommendationsRequest withResourceIds(String... resourceIds) { if (this.resourceIds == null) { setResourceIds(new java.util.ArrayList(resourceIds.length)); } for (String ele : resourceIds) { this.resourceIds.add(ele); } return this; } /** *

* Specifies the universally unique identifiers (UUIDs) of the resources in your storage system that you want * recommendations on. *

* * @param resourceIds * Specifies the universally unique identifiers (UUIDs) of the resources in your storage system that you want * recommendations on. * @return Returns a reference to this object so that method calls can be chained together. */ public GenerateRecommendationsRequest withResourceIds(java.util.Collection resourceIds) { setResourceIds(resourceIds); return this; } /** *

* Specifies the type of resource in your storage system that you want recommendations on. *

* * @param resourceType * Specifies the type of resource in your storage system that you want recommendations on. * @see DiscoveryResourceType */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** *

* Specifies the type of resource in your storage system that you want recommendations on. *

* * @return Specifies the type of resource in your storage system that you want recommendations on. * @see DiscoveryResourceType */ public String getResourceType() { return this.resourceType; } /** *

* Specifies the type of resource in your storage system that you want recommendations on. *

* * @param resourceType * Specifies the type of resource in your storage system that you want recommendations on. * @return Returns a reference to this object so that method calls can be chained together. * @see DiscoveryResourceType */ public GenerateRecommendationsRequest withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** *

* Specifies the type of resource in your storage system that you want recommendations on. *

* * @param resourceType * Specifies the type of resource in your storage system that you want recommendations on. * @return Returns a reference to this object so that method calls can be chained together. * @see DiscoveryResourceType */ public GenerateRecommendationsRequest withResourceType(DiscoveryResourceType resourceType) { this.resourceType = resourceType.toString(); 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 (getResourceIds() != null) sb.append("ResourceIds: ").append(getResourceIds()).append(","); if (getResourceType() != null) sb.append("ResourceType: ").append(getResourceType()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GenerateRecommendationsRequest == false) return false; GenerateRecommendationsRequest other = (GenerateRecommendationsRequest) obj; if (other.getDiscoveryJobArn() == null ^ this.getDiscoveryJobArn() == null) return false; if (other.getDiscoveryJobArn() != null && other.getDiscoveryJobArn().equals(this.getDiscoveryJobArn()) == 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.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == 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 + ((getResourceIds() == null) ? 0 : getResourceIds().hashCode()); hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType().hashCode()); return hashCode; } @Override public GenerateRecommendationsRequest clone() { return (GenerateRecommendationsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy