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

com.aliyun.sdk.service.dts20200101.models.CreateMigrationJobRequest Maven / Gradle / Ivy

There is a newer version: 1.0.18
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dts20200101.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link CreateMigrationJobRequest} extends {@link RequestModel}
 *
 * 

CreateMigrationJobRequest

*/ public class CreateMigrationJobRequest extends Request { @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("AccountId") private String accountId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ClientToken") private String clientToken; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("MigrationJobClass") @com.aliyun.core.annotation.Validation(required = true) private String migrationJobClass; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("OwnerId") private String ownerId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("Region") @com.aliyun.core.annotation.Validation(required = true) private String region; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("RegionId") private String regionId; @com.aliyun.core.annotation.Query @com.aliyun.core.annotation.NameInMap("ResourceGroupId") private String resourceGroupId; private CreateMigrationJobRequest(Builder builder) { super(builder); this.accountId = builder.accountId; this.clientToken = builder.clientToken; this.migrationJobClass = builder.migrationJobClass; this.ownerId = builder.ownerId; this.region = builder.region; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; } public static Builder builder() { return new Builder(); } public static CreateMigrationJobRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return accountId */ public String getAccountId() { return this.accountId; } /** * @return clientToken */ public String getClientToken() { return this.clientToken; } /** * @return migrationJobClass */ public String getMigrationJobClass() { return this.migrationJobClass; } /** * @return ownerId */ public String getOwnerId() { return this.ownerId; } /** * @return region */ public String getRegion() { return this.region; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } public static final class Builder extends Request.Builder { private String accountId; private String clientToken; private String migrationJobClass; private String ownerId; private String region; private String regionId; private String resourceGroupId; private Builder() { super(); } private Builder(CreateMigrationJobRequest request) { super(request); this.accountId = request.accountId; this.clientToken = request.clientToken; this.migrationJobClass = request.migrationJobClass; this.ownerId = request.ownerId; this.region = request.region; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; } /** * The ID of the Alibaba Cloud account. You do not need to specify this parameter because this parameter will be removed in the future. */ public Builder accountId(String accountId) { this.putQueryParameter("AccountId", accountId); this.accountId = accountId; return this; } /** * The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must make sure that the value is unique among different requests. The **ClientToken** parameter can contain only ASCII characters and cannot exceed 64 characters in length. */ public Builder clientToken(String clientToken) { this.putQueryParameter("ClientToken", clientToken); this.clientToken = clientToken; return this; } /** * The specification of the data migration instance. Valid values: **small**, **medium**, **large**, **xlarge**, and **2xlarge**. *

* * > * * For more information about the test performance of each specification, see [Specifications of data migration instances](~~26606~~). * * For more information about the pricing of data migration instances, see [Pricing](~~117780~~). */ public Builder migrationJobClass(String migrationJobClass) { this.putQueryParameter("MigrationJobClass", migrationJobClass); this.migrationJobClass = migrationJobClass; return this; } /** * OwnerId. */ public Builder ownerId(String ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * The ID of the region where the data migration instance resides. The region ID of the data migration instance is the same as that of the destination database. For more information, see [List of supported regions](~~141033~~). */ public Builder region(String region) { this.putQueryParameter("Region", region); this.region = region; return this; } /** * The ID of the region where the data migration instance resides. You do not need to specify this parameter because this parameter will be removed in the future. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * ResourceGroupId. */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } @Override public CreateMigrationJobRequest build() { return new CreateMigrationJobRequest(this); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy