com.aliyun.sdk.service.bpstudio20210931.models.AppFailOverRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-bpstudio20210931 Show documentation
Show all versions of alibabacloud-bpstudio20210931 Show documentation
Alibaba Cloud BPStudio (20210931) Async SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.bpstudio20210931.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link AppFailOverRequest} extends {@link RequestModel}
*
* AppFailOverRequest
*/
public class AppFailOverRequest extends Request {
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("ApplicationId")
private String applicationId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("FailZone")
private String failZone;
private AppFailOverRequest(Builder builder) {
super(builder);
this.applicationId = builder.applicationId;
this.failZone = builder.failZone;
}
public static Builder builder() {
return new Builder();
}
public static AppFailOverRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return applicationId
*/
public String getApplicationId() {
return this.applicationId;
}
/**
* @return failZone
*/
public String getFailZone() {
return this.failZone;
}
public static final class Builder extends Request.Builder {
private String applicationId;
private String failZone;
private Builder() {
super();
}
private Builder(AppFailOverRequest request) {
super(request);
this.applicationId = request.applicationId;
this.failZone = request.failZone;
}
/**
* The application ID.
*/
public Builder applicationId(String applicationId) {
this.putBodyParameter("ApplicationId", applicationId);
this.applicationId = applicationId;
return this;
}
/**
* The destination zone to which you want to switch the disaster recovery application.
*/
public Builder failZone(String failZone) {
this.putBodyParameter("FailZone", failZone);
this.failZone = failZone;
return this;
}
@Override
public AppFailOverRequest build() {
return new AppFailOverRequest(this);
}
}
}