/* * 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.migrationhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Represents a migration task in a migration tool. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class MigrationTask implements Serializable, Cloneable, StructuredPojo { /** ** A name that identifies the vendor of the migration tool being used. *
*/ private String progressUpdateStream; /** ** Unique identifier that references the migration task. Do not store personal data in this field. *
*/ private String migrationTaskName; /** ** Task object encapsulating task information. *
*/ private Task task; /** ** The timestamp when the task was gathered. *
*/ private java.util.Date updateDateTime; /** ** Information about the resource that is being migrated. This data will be used to map the task to a resource in * the Application Discovery Service repository. *
*/ private java.util.List* A name that identifies the vendor of the migration tool being used. *
* * @param progressUpdateStream * A name that identifies the vendor of the migration tool being used. */ public void setProgressUpdateStream(String progressUpdateStream) { this.progressUpdateStream = progressUpdateStream; } /** ** A name that identifies the vendor of the migration tool being used. *
* * @return A name that identifies the vendor of the migration tool being used. */ public String getProgressUpdateStream() { return this.progressUpdateStream; } /** ** A name that identifies the vendor of the migration tool being used. *
* * @param progressUpdateStream * A name that identifies the vendor of the migration tool being used. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationTask withProgressUpdateStream(String progressUpdateStream) { setProgressUpdateStream(progressUpdateStream); return this; } /** ** Unique identifier that references the migration task. Do not store personal data in this field. *
* * @param migrationTaskName * Unique identifier that references the migration task. Do not store personal data in this field. */ public void setMigrationTaskName(String migrationTaskName) { this.migrationTaskName = migrationTaskName; } /** ** Unique identifier that references the migration task. Do not store personal data in this field. *
* * @return Unique identifier that references the migration task. Do not store personal data in this field. */ public String getMigrationTaskName() { return this.migrationTaskName; } /** ** Unique identifier that references the migration task. Do not store personal data in this field. *
* * @param migrationTaskName * Unique identifier that references the migration task. Do not store personal data in this field. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationTask withMigrationTaskName(String migrationTaskName) { setMigrationTaskName(migrationTaskName); return this; } /** ** Task object encapsulating task information. *
* * @param task * Task object encapsulating task information. */ public void setTask(Task task) { this.task = task; } /** ** Task object encapsulating task information. *
* * @return Task object encapsulating task information. */ public Task getTask() { return this.task; } /** ** Task object encapsulating task information. *
* * @param task * Task object encapsulating task information. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationTask withTask(Task task) { setTask(task); return this; } /** ** The timestamp when the task was gathered. *
* * @param updateDateTime * The timestamp when the task was gathered. */ public void setUpdateDateTime(java.util.Date updateDateTime) { this.updateDateTime = updateDateTime; } /** ** The timestamp when the task was gathered. *
* * @return The timestamp when the task was gathered. */ public java.util.Date getUpdateDateTime() { return this.updateDateTime; } /** ** The timestamp when the task was gathered. *
* * @param updateDateTime * The timestamp when the task was gathered. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationTask withUpdateDateTime(java.util.Date updateDateTime) { setUpdateDateTime(updateDateTime); return this; } /** ** Information about the resource that is being migrated. This data will be used to map the task to a resource in * the Application Discovery Service repository. *
* * @return Information about the resource that is being migrated. This data will be used to map the task to a * resource in the Application Discovery Service repository. */ public java.util.List* Information about the resource that is being migrated. This data will be used to map the task to a resource in * the Application Discovery Service repository. *
* * @param resourceAttributeList * Information about the resource that is being migrated. This data will be used to map the task to a * resource in the Application Discovery Service repository. */ public void setResourceAttributeList(java.util.Collection* Information about the resource that is being migrated. This data will be used to map the task to a resource in * the Application Discovery Service repository. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setResourceAttributeList(java.util.Collection)} or * {@link #withResourceAttributeList(java.util.Collection)} if you want to override the existing values. *
* * @param resourceAttributeList * Information about the resource that is being migrated. This data will be used to map the task to a * resource in the Application Discovery Service repository. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationTask withResourceAttributeList(ResourceAttribute... resourceAttributeList) { if (this.resourceAttributeList == null) { setResourceAttributeList(new java.util.ArrayList* Information about the resource that is being migrated. This data will be used to map the task to a resource in * the Application Discovery Service repository. *
* * @param resourceAttributeList * Information about the resource that is being migrated. This data will be used to map the task to a * resource in the Application Discovery Service repository. * @return Returns a reference to this object so that method calls can be chained together. */ public MigrationTask withResourceAttributeList(java.util.Collection