com.aliyun.sdk.service.milvus20231012.models.UpdateInstanceNameRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-milvus20231012 Show documentation
Show all versions of alibabacloud-milvus20231012 Show documentation
Alibaba Cloud milvus (20231012) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.milvus20231012.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link UpdateInstanceNameRequest} extends {@link RequestModel}
*
* UpdateInstanceNameRequest
*/
public class UpdateInstanceNameRequest 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("ClusterName")
@com.aliyun.core.annotation.Validation(required = true)
private String clusterName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
@com.aliyun.core.annotation.Validation(required = true)
private String instanceId;
private UpdateInstanceNameRequest(Builder builder) {
super(builder);
this.regionId = builder.regionId;
this.clusterName = builder.clusterName;
this.instanceId = builder.instanceId;
}
public static Builder builder() {
return new Builder();
}
public static UpdateInstanceNameRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return regionId
*/
public String getRegionId() {
return this.regionId;
}
/**
* @return clusterName
*/
public String getClusterName() {
return this.clusterName;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
public static final class Builder extends Request.Builder {
private String regionId;
private String clusterName;
private String instanceId;
private Builder() {
super();
}
private Builder(UpdateInstanceNameRequest request) {
super(request);
this.regionId = request.regionId;
this.clusterName = request.clusterName;
this.instanceId = request.instanceId;
}
/**
* RegionId.
*/
public Builder regionId(String regionId) {
this.putHostParameter("RegionId", regionId);
this.regionId = regionId;
return this;
}
/**
* ClusterName.
*/
public Builder clusterName(String clusterName) {
this.putQueryParameter("ClusterName", clusterName);
this.clusterName = clusterName;
return this;
}
/**
* InstanceId.
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
@Override
public UpdateInstanceNameRequest build() {
return new UpdateInstanceNameRequest(this);
}
}
}