com.aliyun.sdk.service.dataphin_public20230630.models.OperateInstanceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-dataphin_public20230630 Show documentation
Show all versions of alibabacloud-dataphin_public20230630 Show documentation
Alibaba Cloud dataphin-public (20230630) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.dataphin_public20230630.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link OperateInstanceRequest} extends {@link RequestModel}
*
* OperateInstanceRequest
*/
public class OperateInstanceRequest extends Request {
@com.aliyun.core.annotation.Host
@com.aliyun.core.annotation.NameInMap("RegionId")
private String regionId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Env")
private String env;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("OpTenantId")
@com.aliyun.core.annotation.Validation(required = true)
private Long opTenantId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("OperateCommand")
@com.aliyun.core.annotation.Validation(required = true)
private OperateCommand operateCommand;
private OperateInstanceRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.env = builder.env;
this.opTenantId = builder.opTenantId;
this.operateCommand = builder.operateCommand;
}
public static Builder builder() {
return new Builder();
}
public static OperateInstanceRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return env
*/
public String getEnv() {
return this.env;
}
/**
* @return opTenantId
*/
public Long getOpTenantId() {
return this.opTenantId;
}
/**
* @return operateCommand
*/
public OperateCommand getOperateCommand() {
return this.operateCommand;
}
public static final class Builder extends Request.Builder {
private String regionId;
private String env;
private Long opTenantId;
private OperateCommand operateCommand;
private Builder() {
super();
}
private Builder(OperateInstanceRequest request) {
super(request);
this.regionId = request.regionId;
this.env = request.env;
this.opTenantId = request.opTenantId;
this.operateCommand = request.operateCommand;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* Env.
*/
public Builder env(String env) {
this.putQueryParameter("Env", env);
this.env = env;
return this;
}
/**
* This parameter is required.
*
* example:
* 30001011
*/
public Builder opTenantId(Long opTenantId) {
this.putQueryParameter("OpTenantId", opTenantId);
this.opTenantId = opTenantId;
return this;
}
/**
* This parameter is required.
*/
public Builder operateCommand(OperateCommand operateCommand) {
String operateCommandShrink = shrink(operateCommand, "OperateCommand", "json");
this.putBodyParameter("OperateCommand", operateCommandShrink);
this.operateCommand = operateCommand;
return this;
}
@Override
public OperateInstanceRequest build() {
return new OperateInstanceRequest(this);
}
}
/**
*
* {@link OperateInstanceRequest} extends {@link TeaModel}
*
* OperateInstanceRequest
*/
public static class InstanceIdList extends TeaModel {
@com.aliyun.core.annotation.NameInMap("FieldInstanceIdList")
private java.util.List fieldInstanceIdList;
@com.aliyun.core.annotation.NameInMap("Id")
@com.aliyun.core.annotation.Validation(required = true)
private String id;
private InstanceIdList(Builder builder) {
this.fieldInstanceIdList = builder.fieldInstanceIdList;
this.id = builder.id;
}
public static Builder builder() {
return new Builder();
}
public static InstanceIdList create() {
return builder().build();
}
/**
* @return fieldInstanceIdList
*/
public java.util.List getFieldInstanceIdList() {
return this.fieldInstanceIdList;
}
/**
* @return id
*/
public String getId() {
return this.id;
}
public static final class Builder {
private java.util.List fieldInstanceIdList;
private String id;
/**
* FieldInstanceIdList.
*/
public Builder fieldInstanceIdList(java.util.List fieldInstanceIdList) {
this.fieldInstanceIdList = fieldInstanceIdList;
return this;
}
/**
* This parameter is required.
*
* example:
* t_32111312
*/
public Builder id(String id) {
this.id = id;
return this;
}
public InstanceIdList build() {
return new InstanceIdList(this);
}
}
}
/**
*
* {@link OperateInstanceRequest} extends {@link TeaModel}
*
* OperateInstanceRequest
*/
public static class OperateCommand extends TeaModel {
@com.aliyun.core.annotation.NameInMap("InstanceIdList")
@com.aliyun.core.annotation.Validation(required = true)
private java.util.List instanceIdList;
@com.aliyun.core.annotation.NameInMap("Operation")
@com.aliyun.core.annotation.Validation(required = true)
private String operation;
@com.aliyun.core.annotation.NameInMap("ProjectId")
@com.aliyun.core.annotation.Validation(required = true, maximum = 132324)
private Long projectId;
private OperateCommand(Builder builder) {
this.instanceIdList = builder.instanceIdList;
this.operation = builder.operation;
this.projectId = builder.projectId;
}
public static Builder builder() {
return new Builder();
}
public static OperateCommand create() {
return builder().build();
}
/**
* @return instanceIdList
*/
public java.util.List getInstanceIdList() {
return this.instanceIdList;
}
/**
* @return operation
*/
public String getOperation() {
return this.operation;
}
/**
* @return projectId
*/
public Long getProjectId() {
return this.projectId;
}
public static final class Builder {
private java.util.List instanceIdList;
private String operation;
private Long projectId;
/**
* This parameter is required.
*/
public Builder instanceIdList(java.util.List instanceIdList) {
this.instanceIdList = instanceIdList;
return this;
}
/**
* This parameter is required.
*
* example:
* RERUN
*/
public Builder operation(String operation) {
this.operation = operation;
return this;
}
/**
* This parameter is required.
*
* example:
* 132311
*/
public Builder projectId(Long projectId) {
this.projectId = projectId;
return this;
}
public OperateCommand build() {
return new OperateCommand(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy