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

com.amazonaws.services.databasemigrationservice.model.CreateMigrationProjectRequest Maven / Gradle / Ivy

/*
 * 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.databasemigrationservice.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 CreateMigrationProjectRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* A user-friendly name for the migration project. *

*/ private String migrationProjectName; /** *

* Information about the source data provider, including the name, ARN, and Secrets Manager parameters. *

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

* Information about the target data provider, including the name, ARN, and Amazon Web Services Secrets Manager * parameters. *

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

* The identifier of the associated instance profile. Identifiers must begin with a letter and must contain only * ASCII letters, digits, and hyphens. They can't end with a hyphen, or contain two consecutive hyphens. *

*/ private String instanceProfileIdentifier; /** *

* The settings in JSON format for migration rules. Migration rules make it possible for you to change the object * names according to the rules that you specify. For example, you can change an object name to lowercase or * uppercase, add or remove a prefix or suffix, or rename objects. *

*/ private String transformationRules; /** *

* A user-friendly description of the migration project. *

*/ private String description; /** *

* One or more tags to be assigned to the migration project. *

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

* The schema conversion application attributes, including the Amazon S3 bucket name and Amazon S3 role ARN. *

*/ private SCApplicationAttributes schemaConversionApplicationAttributes; /** *

* A user-friendly name for the migration project. *

* * @param migrationProjectName * A user-friendly name for the migration project. */ public void setMigrationProjectName(String migrationProjectName) { this.migrationProjectName = migrationProjectName; } /** *

* A user-friendly name for the migration project. *

* * @return A user-friendly name for the migration project. */ public String getMigrationProjectName() { return this.migrationProjectName; } /** *

* A user-friendly name for the migration project. *

* * @param migrationProjectName * A user-friendly name for the migration project. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMigrationProjectRequest withMigrationProjectName(String migrationProjectName) { setMigrationProjectName(migrationProjectName); return this; } /** *

* Information about the source data provider, including the name, ARN, and Secrets Manager parameters. *

* * @return Information about the source data provider, including the name, ARN, and Secrets Manager parameters. */ public java.util.List getSourceDataProviderDescriptors() { return sourceDataProviderDescriptors; } /** *

* Information about the source data provider, including the name, ARN, and Secrets Manager parameters. *

* * @param sourceDataProviderDescriptors * Information about the source data provider, including the name, ARN, and Secrets Manager parameters. */ public void setSourceDataProviderDescriptors(java.util.Collection sourceDataProviderDescriptors) { if (sourceDataProviderDescriptors == null) { this.sourceDataProviderDescriptors = null; return; } this.sourceDataProviderDescriptors = new java.util.ArrayList(sourceDataProviderDescriptors); } /** *

* Information about the source data provider, including the name, ARN, and Secrets Manager parameters. *

*

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

* * @param sourceDataProviderDescriptors * Information about the source data provider, including the name, ARN, and Secrets Manager parameters. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMigrationProjectRequest withSourceDataProviderDescriptors(DataProviderDescriptorDefinition... sourceDataProviderDescriptors) { if (this.sourceDataProviderDescriptors == null) { setSourceDataProviderDescriptors(new java.util.ArrayList(sourceDataProviderDescriptors.length)); } for (DataProviderDescriptorDefinition ele : sourceDataProviderDescriptors) { this.sourceDataProviderDescriptors.add(ele); } return this; } /** *

* Information about the source data provider, including the name, ARN, and Secrets Manager parameters. *

* * @param sourceDataProviderDescriptors * Information about the source data provider, including the name, ARN, and Secrets Manager parameters. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMigrationProjectRequest withSourceDataProviderDescriptors(java.util.Collection sourceDataProviderDescriptors) { setSourceDataProviderDescriptors(sourceDataProviderDescriptors); return this; } /** *

* Information about the target data provider, including the name, ARN, and Amazon Web Services Secrets Manager * parameters. *

* * @return Information about the target data provider, including the name, ARN, and Amazon Web Services Secrets * Manager parameters. */ public java.util.List getTargetDataProviderDescriptors() { return targetDataProviderDescriptors; } /** *

* Information about the target data provider, including the name, ARN, and Amazon Web Services Secrets Manager * parameters. *

* * @param targetDataProviderDescriptors * Information about the target data provider, including the name, ARN, and Amazon Web Services Secrets * Manager parameters. */ public void setTargetDataProviderDescriptors(java.util.Collection targetDataProviderDescriptors) { if (targetDataProviderDescriptors == null) { this.targetDataProviderDescriptors = null; return; } this.targetDataProviderDescriptors = new java.util.ArrayList(targetDataProviderDescriptors); } /** *

* Information about the target data provider, including the name, ARN, and Amazon Web Services Secrets Manager * parameters. *

*

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

* * @param targetDataProviderDescriptors * Information about the target data provider, including the name, ARN, and Amazon Web Services Secrets * Manager parameters. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMigrationProjectRequest withTargetDataProviderDescriptors(DataProviderDescriptorDefinition... targetDataProviderDescriptors) { if (this.targetDataProviderDescriptors == null) { setTargetDataProviderDescriptors(new java.util.ArrayList(targetDataProviderDescriptors.length)); } for (DataProviderDescriptorDefinition ele : targetDataProviderDescriptors) { this.targetDataProviderDescriptors.add(ele); } return this; } /** *

* Information about the target data provider, including the name, ARN, and Amazon Web Services Secrets Manager * parameters. *

* * @param targetDataProviderDescriptors * Information about the target data provider, including the name, ARN, and Amazon Web Services Secrets * Manager parameters. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMigrationProjectRequest withTargetDataProviderDescriptors(java.util.Collection targetDataProviderDescriptors) { setTargetDataProviderDescriptors(targetDataProviderDescriptors); return this; } /** *

* The identifier of the associated instance profile. Identifiers must begin with a letter and must contain only * ASCII letters, digits, and hyphens. They can't end with a hyphen, or contain two consecutive hyphens. *

* * @param instanceProfileIdentifier * The identifier of the associated instance profile. Identifiers must begin with a letter and must contain * only ASCII letters, digits, and hyphens. They can't end with a hyphen, or contain two consecutive hyphens. */ public void setInstanceProfileIdentifier(String instanceProfileIdentifier) { this.instanceProfileIdentifier = instanceProfileIdentifier; } /** *

* The identifier of the associated instance profile. Identifiers must begin with a letter and must contain only * ASCII letters, digits, and hyphens. They can't end with a hyphen, or contain two consecutive hyphens. *

* * @return The identifier of the associated instance profile. Identifiers must begin with a letter and must contain * only ASCII letters, digits, and hyphens. They can't end with a hyphen, or contain two consecutive * hyphens. */ public String getInstanceProfileIdentifier() { return this.instanceProfileIdentifier; } /** *

* The identifier of the associated instance profile. Identifiers must begin with a letter and must contain only * ASCII letters, digits, and hyphens. They can't end with a hyphen, or contain two consecutive hyphens. *

* * @param instanceProfileIdentifier * The identifier of the associated instance profile. Identifiers must begin with a letter and must contain * only ASCII letters, digits, and hyphens. They can't end with a hyphen, or contain two consecutive hyphens. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMigrationProjectRequest withInstanceProfileIdentifier(String instanceProfileIdentifier) { setInstanceProfileIdentifier(instanceProfileIdentifier); return this; } /** *

* The settings in JSON format for migration rules. Migration rules make it possible for you to change the object * names according to the rules that you specify. For example, you can change an object name to lowercase or * uppercase, add or remove a prefix or suffix, or rename objects. *

* * @param transformationRules * The settings in JSON format for migration rules. Migration rules make it possible for you to change the * object names according to the rules that you specify. For example, you can change an object name to * lowercase or uppercase, add or remove a prefix or suffix, or rename objects. */ public void setTransformationRules(String transformationRules) { this.transformationRules = transformationRules; } /** *

* The settings in JSON format for migration rules. Migration rules make it possible for you to change the object * names according to the rules that you specify. For example, you can change an object name to lowercase or * uppercase, add or remove a prefix or suffix, or rename objects. *

* * @return The settings in JSON format for migration rules. Migration rules make it possible for you to change the * object names according to the rules that you specify. For example, you can change an object name to * lowercase or uppercase, add or remove a prefix or suffix, or rename objects. */ public String getTransformationRules() { return this.transformationRules; } /** *

* The settings in JSON format for migration rules. Migration rules make it possible for you to change the object * names according to the rules that you specify. For example, you can change an object name to lowercase or * uppercase, add or remove a prefix or suffix, or rename objects. *

* * @param transformationRules * The settings in JSON format for migration rules. Migration rules make it possible for you to change the * object names according to the rules that you specify. For example, you can change an object name to * lowercase or uppercase, add or remove a prefix or suffix, or rename objects. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMigrationProjectRequest withTransformationRules(String transformationRules) { setTransformationRules(transformationRules); return this; } /** *

* A user-friendly description of the migration project. *

* * @param description * A user-friendly description of the migration project. */ public void setDescription(String description) { this.description = description; } /** *

* A user-friendly description of the migration project. *

* * @return A user-friendly description of the migration project. */ public String getDescription() { return this.description; } /** *

* A user-friendly description of the migration project. *

* * @param description * A user-friendly description of the migration project. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMigrationProjectRequest withDescription(String description) { setDescription(description); return this; } /** *

* One or more tags to be assigned to the migration project. *

* * @return One or more tags to be assigned to the migration project. */ public java.util.List getTags() { return tags; } /** *

* One or more tags to be assigned to the migration project. *

* * @param tags * One or more tags to be assigned to the migration project. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* One or more tags to be assigned to the migration project. *

*

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

* * @param tags * One or more tags to be assigned to the migration project. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMigrationProjectRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* One or more tags to be assigned to the migration project. *

* * @param tags * One or more tags to be assigned to the migration project. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMigrationProjectRequest withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

* The schema conversion application attributes, including the Amazon S3 bucket name and Amazon S3 role ARN. *

* * @param schemaConversionApplicationAttributes * The schema conversion application attributes, including the Amazon S3 bucket name and Amazon S3 role ARN. */ public void setSchemaConversionApplicationAttributes(SCApplicationAttributes schemaConversionApplicationAttributes) { this.schemaConversionApplicationAttributes = schemaConversionApplicationAttributes; } /** *

* The schema conversion application attributes, including the Amazon S3 bucket name and Amazon S3 role ARN. *

* * @return The schema conversion application attributes, including the Amazon S3 bucket name and Amazon S3 role ARN. */ public SCApplicationAttributes getSchemaConversionApplicationAttributes() { return this.schemaConversionApplicationAttributes; } /** *

* The schema conversion application attributes, including the Amazon S3 bucket name and Amazon S3 role ARN. *

* * @param schemaConversionApplicationAttributes * The schema conversion application attributes, including the Amazon S3 bucket name and Amazon S3 role ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateMigrationProjectRequest withSchemaConversionApplicationAttributes(SCApplicationAttributes schemaConversionApplicationAttributes) { setSchemaConversionApplicationAttributes(schemaConversionApplicationAttributes); 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 (getMigrationProjectName() != null) sb.append("MigrationProjectName: ").append(getMigrationProjectName()).append(","); if (getSourceDataProviderDescriptors() != null) sb.append("SourceDataProviderDescriptors: ").append(getSourceDataProviderDescriptors()).append(","); if (getTargetDataProviderDescriptors() != null) sb.append("TargetDataProviderDescriptors: ").append(getTargetDataProviderDescriptors()).append(","); if (getInstanceProfileIdentifier() != null) sb.append("InstanceProfileIdentifier: ").append(getInstanceProfileIdentifier()).append(","); if (getTransformationRules() != null) sb.append("TransformationRules: ").append(getTransformationRules()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getSchemaConversionApplicationAttributes() != null) sb.append("SchemaConversionApplicationAttributes: ").append(getSchemaConversionApplicationAttributes()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateMigrationProjectRequest == false) return false; CreateMigrationProjectRequest other = (CreateMigrationProjectRequest) obj; if (other.getMigrationProjectName() == null ^ this.getMigrationProjectName() == null) return false; if (other.getMigrationProjectName() != null && other.getMigrationProjectName().equals(this.getMigrationProjectName()) == false) return false; if (other.getSourceDataProviderDescriptors() == null ^ this.getSourceDataProviderDescriptors() == null) return false; if (other.getSourceDataProviderDescriptors() != null && other.getSourceDataProviderDescriptors().equals(this.getSourceDataProviderDescriptors()) == false) return false; if (other.getTargetDataProviderDescriptors() == null ^ this.getTargetDataProviderDescriptors() == null) return false; if (other.getTargetDataProviderDescriptors() != null && other.getTargetDataProviderDescriptors().equals(this.getTargetDataProviderDescriptors()) == false) return false; if (other.getInstanceProfileIdentifier() == null ^ this.getInstanceProfileIdentifier() == null) return false; if (other.getInstanceProfileIdentifier() != null && other.getInstanceProfileIdentifier().equals(this.getInstanceProfileIdentifier()) == false) return false; if (other.getTransformationRules() == null ^ this.getTransformationRules() == null) return false; if (other.getTransformationRules() != null && other.getTransformationRules().equals(this.getTransformationRules()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getSchemaConversionApplicationAttributes() == null ^ this.getSchemaConversionApplicationAttributes() == null) return false; if (other.getSchemaConversionApplicationAttributes() != null && other.getSchemaConversionApplicationAttributes().equals(this.getSchemaConversionApplicationAttributes()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getMigrationProjectName() == null) ? 0 : getMigrationProjectName().hashCode()); hashCode = prime * hashCode + ((getSourceDataProviderDescriptors() == null) ? 0 : getSourceDataProviderDescriptors().hashCode()); hashCode = prime * hashCode + ((getTargetDataProviderDescriptors() == null) ? 0 : getTargetDataProviderDescriptors().hashCode()); hashCode = prime * hashCode + ((getInstanceProfileIdentifier() == null) ? 0 : getInstanceProfileIdentifier().hashCode()); hashCode = prime * hashCode + ((getTransformationRules() == null) ? 0 : getTransformationRules().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getSchemaConversionApplicationAttributes() == null) ? 0 : getSchemaConversionApplicationAttributes().hashCode()); return hashCode; } @Override public CreateMigrationProjectRequest clone() { return (CreateMigrationProjectRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy