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

com.amazonaws.services.migrationhubstrategyrecommendations.model.StartImportFileTaskRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Migration Hub Strategy Recommendations module holds the client classes that are used for communicating with Migration Hub Strategy Recommendations Service

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

    /**
     * 

* The S3 bucket where the import file is located. The bucket name is required to begin with * migrationhub-strategy-. *

*/ private String s3Bucket; /** *

* Specifies the source that the servers are coming from. By default, Strategy Recommendations assumes that the * servers specified in the import file are available in AWS Application Discovery Service. *

*/ private String dataSourceType; /** *

* Groups the resources in the import file together with a unique name. This ID can be as filter in * ListApplicationComponents and ListServers. *

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

* A descriptive name for the request. *

*/ private String name; /** *

* The S3 bucket where Strategy Recommendations uploads import results. The bucket name is required to begin with * migrationhub-strategy-. *

*/ private String s3bucketForReportData; /** *

* The Amazon S3 key name of the import file. *

*/ private String s3key; /** *

* The S3 bucket where the import file is located. The bucket name is required to begin with * migrationhub-strategy-. *

* * @param s3Bucket * The S3 bucket where the import file is located. The bucket name is required to begin with * migrationhub-strategy-. */ public void setS3Bucket(String s3Bucket) { this.s3Bucket = s3Bucket; } /** *

* The S3 bucket where the import file is located. The bucket name is required to begin with * migrationhub-strategy-. *

* * @return The S3 bucket where the import file is located. The bucket name is required to begin with * migrationhub-strategy-. */ public String getS3Bucket() { return this.s3Bucket; } /** *

* The S3 bucket where the import file is located. The bucket name is required to begin with * migrationhub-strategy-. *

* * @param s3Bucket * The S3 bucket where the import file is located. The bucket name is required to begin with * migrationhub-strategy-. * @return Returns a reference to this object so that method calls can be chained together. */ public StartImportFileTaskRequest withS3Bucket(String s3Bucket) { setS3Bucket(s3Bucket); return this; } /** *

* Specifies the source that the servers are coming from. By default, Strategy Recommendations assumes that the * servers specified in the import file are available in AWS Application Discovery Service. *

* * @param dataSourceType * Specifies the source that the servers are coming from. By default, Strategy Recommendations assumes that * the servers specified in the import file are available in AWS Application Discovery Service. * @see DataSourceType */ public void setDataSourceType(String dataSourceType) { this.dataSourceType = dataSourceType; } /** *

* Specifies the source that the servers are coming from. By default, Strategy Recommendations assumes that the * servers specified in the import file are available in AWS Application Discovery Service. *

* * @return Specifies the source that the servers are coming from. By default, Strategy Recommendations assumes that * the servers specified in the import file are available in AWS Application Discovery Service. * @see DataSourceType */ public String getDataSourceType() { return this.dataSourceType; } /** *

* Specifies the source that the servers are coming from. By default, Strategy Recommendations assumes that the * servers specified in the import file are available in AWS Application Discovery Service. *

* * @param dataSourceType * Specifies the source that the servers are coming from. By default, Strategy Recommendations assumes that * the servers specified in the import file are available in AWS Application Discovery Service. * @return Returns a reference to this object so that method calls can be chained together. * @see DataSourceType */ public StartImportFileTaskRequest withDataSourceType(String dataSourceType) { setDataSourceType(dataSourceType); return this; } /** *

* Specifies the source that the servers are coming from. By default, Strategy Recommendations assumes that the * servers specified in the import file are available in AWS Application Discovery Service. *

* * @param dataSourceType * Specifies the source that the servers are coming from. By default, Strategy Recommendations assumes that * the servers specified in the import file are available in AWS Application Discovery Service. * @return Returns a reference to this object so that method calls can be chained together. * @see DataSourceType */ public StartImportFileTaskRequest withDataSourceType(DataSourceType dataSourceType) { this.dataSourceType = dataSourceType.toString(); return this; } /** *

* Groups the resources in the import file together with a unique name. This ID can be as filter in * ListApplicationComponents and ListServers. *

* * @return Groups the resources in the import file together with a unique name. This ID can be as filter in * ListApplicationComponents and ListServers. */ public java.util.List getGroupId() { return groupId; } /** *

* Groups the resources in the import file together with a unique name. This ID can be as filter in * ListApplicationComponents and ListServers. *

* * @param groupId * Groups the resources in the import file together with a unique name. This ID can be as filter in * ListApplicationComponents and ListServers. */ public void setGroupId(java.util.Collection groupId) { if (groupId == null) { this.groupId = null; return; } this.groupId = new java.util.ArrayList(groupId); } /** *

* Groups the resources in the import file together with a unique name. This ID can be as filter in * ListApplicationComponents and ListServers. *

*

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

* * @param groupId * Groups the resources in the import file together with a unique name. This ID can be as filter in * ListApplicationComponents and ListServers. * @return Returns a reference to this object so that method calls can be chained together. */ public StartImportFileTaskRequest withGroupId(Group... groupId) { if (this.groupId == null) { setGroupId(new java.util.ArrayList(groupId.length)); } for (Group ele : groupId) { this.groupId.add(ele); } return this; } /** *

* Groups the resources in the import file together with a unique name. This ID can be as filter in * ListApplicationComponents and ListServers. *

* * @param groupId * Groups the resources in the import file together with a unique name. This ID can be as filter in * ListApplicationComponents and ListServers. * @return Returns a reference to this object so that method calls can be chained together. */ public StartImportFileTaskRequest withGroupId(java.util.Collection groupId) { setGroupId(groupId); return this; } /** *

* A descriptive name for the request. *

* * @param name * A descriptive name for the request. */ public void setName(String name) { this.name = name; } /** *

* A descriptive name for the request. *

* * @return A descriptive name for the request. */ public String getName() { return this.name; } /** *

* A descriptive name for the request. *

* * @param name * A descriptive name for the request. * @return Returns a reference to this object so that method calls can be chained together. */ public StartImportFileTaskRequest withName(String name) { setName(name); return this; } /** *

* The S3 bucket where Strategy Recommendations uploads import results. The bucket name is required to begin with * migrationhub-strategy-. *

* * @param s3bucketForReportData * The S3 bucket where Strategy Recommendations uploads import results. The bucket name is required to begin * with migrationhub-strategy-. */ public void setS3bucketForReportData(String s3bucketForReportData) { this.s3bucketForReportData = s3bucketForReportData; } /** *

* The S3 bucket where Strategy Recommendations uploads import results. The bucket name is required to begin with * migrationhub-strategy-. *

* * @return The S3 bucket where Strategy Recommendations uploads import results. The bucket name is required to begin * with migrationhub-strategy-. */ public String getS3bucketForReportData() { return this.s3bucketForReportData; } /** *

* The S3 bucket where Strategy Recommendations uploads import results. The bucket name is required to begin with * migrationhub-strategy-. *

* * @param s3bucketForReportData * The S3 bucket where Strategy Recommendations uploads import results. The bucket name is required to begin * with migrationhub-strategy-. * @return Returns a reference to this object so that method calls can be chained together. */ public StartImportFileTaskRequest withS3bucketForReportData(String s3bucketForReportData) { setS3bucketForReportData(s3bucketForReportData); return this; } /** *

* The Amazon S3 key name of the import file. *

* * @param s3key * The Amazon S3 key name of the import file. */ public void setS3key(String s3key) { this.s3key = s3key; } /** *

* The Amazon S3 key name of the import file. *

* * @return The Amazon S3 key name of the import file. */ public String getS3key() { return this.s3key; } /** *

* The Amazon S3 key name of the import file. *

* * @param s3key * The Amazon S3 key name of the import file. * @return Returns a reference to this object so that method calls can be chained together. */ public StartImportFileTaskRequest withS3key(String s3key) { setS3key(s3key); 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 (getS3Bucket() != null) sb.append("S3Bucket: ").append(getS3Bucket()).append(","); if (getDataSourceType() != null) sb.append("DataSourceType: ").append(getDataSourceType()).append(","); if (getGroupId() != null) sb.append("GroupId: ").append(getGroupId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getS3bucketForReportData() != null) sb.append("S3bucketForReportData: ").append(getS3bucketForReportData()).append(","); if (getS3key() != null) sb.append("S3key: ").append(getS3key()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StartImportFileTaskRequest == false) return false; StartImportFileTaskRequest other = (StartImportFileTaskRequest) obj; if (other.getS3Bucket() == null ^ this.getS3Bucket() == null) return false; if (other.getS3Bucket() != null && other.getS3Bucket().equals(this.getS3Bucket()) == false) return false; if (other.getDataSourceType() == null ^ this.getDataSourceType() == null) return false; if (other.getDataSourceType() != null && other.getDataSourceType().equals(this.getDataSourceType()) == false) return false; if (other.getGroupId() == null ^ this.getGroupId() == null) return false; if (other.getGroupId() != null && other.getGroupId().equals(this.getGroupId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getS3bucketForReportData() == null ^ this.getS3bucketForReportData() == null) return false; if (other.getS3bucketForReportData() != null && other.getS3bucketForReportData().equals(this.getS3bucketForReportData()) == false) return false; if (other.getS3key() == null ^ this.getS3key() == null) return false; if (other.getS3key() != null && other.getS3key().equals(this.getS3key()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getS3Bucket() == null) ? 0 : getS3Bucket().hashCode()); hashCode = prime * hashCode + ((getDataSourceType() == null) ? 0 : getDataSourceType().hashCode()); hashCode = prime * hashCode + ((getGroupId() == null) ? 0 : getGroupId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getS3bucketForReportData() == null) ? 0 : getS3bucketForReportData().hashCode()); hashCode = prime * hashCode + ((getS3key() == null) ? 0 : getS3key().hashCode()); return hashCode; } @Override public StartImportFileTaskRequest clone() { return (StartImportFileTaskRequest) super.clone(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy