
com.aliyun.sdk.service.cbn20170912.models.DescribeCenVbrHealthCheckResponseBody Maven / Gradle / Ivy
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cbn20170912.models;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
* {@link DescribeCenVbrHealthCheckResponseBody} extends {@link TeaModel}
*
* DescribeCenVbrHealthCheckResponseBody
*/
public class DescribeCenVbrHealthCheckResponseBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("PageNumber")
private Integer pageNumber;
@com.aliyun.core.annotation.NameInMap("PageSize")
private Integer pageSize;
@com.aliyun.core.annotation.NameInMap("RequestId")
private String requestId;
@com.aliyun.core.annotation.NameInMap("TotalCount")
private Integer totalCount;
@com.aliyun.core.annotation.NameInMap("VbrHealthChecks")
private VbrHealthChecks vbrHealthChecks;
private DescribeCenVbrHealthCheckResponseBody(Builder builder) {
this.pageNumber = builder.pageNumber;
this.pageSize = builder.pageSize;
this.requestId = builder.requestId;
this.totalCount = builder.totalCount;
this.vbrHealthChecks = builder.vbrHealthChecks;
}
public static Builder builder() {
return new Builder();
}
public static DescribeCenVbrHealthCheckResponseBody create() {
return builder().build();
}
/**
* @return pageNumber
*/
public Integer getPageNumber() {
return this.pageNumber;
}
/**
* @return pageSize
*/
public Integer getPageSize() {
return this.pageSize;
}
/**
* @return requestId
*/
public String getRequestId() {
return this.requestId;
}
/**
* @return totalCount
*/
public Integer getTotalCount() {
return this.totalCount;
}
/**
* @return vbrHealthChecks
*/
public VbrHealthChecks getVbrHealthChecks() {
return this.vbrHealthChecks;
}
public static final class Builder {
private Integer pageNumber;
private Integer pageSize;
private String requestId;
private Integer totalCount;
private VbrHealthChecks vbrHealthChecks;
/**
* The page number of the returned page.
*/
public Builder pageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
return this;
}
/**
* The number of entries returned per page.
*/
public Builder pageSize(Integer pageSize) {
this.pageSize = pageSize;
return this;
}
/**
* The request ID.
*/
public Builder requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* The total number of entries returned.
*/
public Builder totalCount(Integer totalCount) {
this.totalCount = totalCount;
return this;
}
/**
* The health check configuration of the VBR.
*/
public Builder vbrHealthChecks(VbrHealthChecks vbrHealthChecks) {
this.vbrHealthChecks = vbrHealthChecks;
return this;
}
public DescribeCenVbrHealthCheckResponseBody build() {
return new DescribeCenVbrHealthCheckResponseBody(this);
}
}
public static class VbrHealthCheck extends TeaModel {
@com.aliyun.core.annotation.NameInMap("CenId")
private String cenId;
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.NameInMap("HealthCheckInterval")
private Integer healthCheckInterval;
@com.aliyun.core.annotation.NameInMap("HealthCheckOnly")
private Boolean healthCheckOnly;
@com.aliyun.core.annotation.NameInMap("HealthCheckSourceIp")
private String healthCheckSourceIp;
@com.aliyun.core.annotation.NameInMap("HealthCheckTargetIp")
private String healthCheckTargetIp;
@com.aliyun.core.annotation.NameInMap("HealthyThreshold")
private Integer healthyThreshold;
@com.aliyun.core.annotation.NameInMap("VbrInstanceId")
private String vbrInstanceId;
@com.aliyun.core.annotation.NameInMap("VbrInstanceRegionId")
private String vbrInstanceRegionId;
private VbrHealthCheck(Builder builder) {
this.cenId = builder.cenId;
this.description = builder.description;
this.healthCheckInterval = builder.healthCheckInterval;
this.healthCheckOnly = builder.healthCheckOnly;
this.healthCheckSourceIp = builder.healthCheckSourceIp;
this.healthCheckTargetIp = builder.healthCheckTargetIp;
this.healthyThreshold = builder.healthyThreshold;
this.vbrInstanceId = builder.vbrInstanceId;
this.vbrInstanceRegionId = builder.vbrInstanceRegionId;
}
public static Builder builder() {
return new Builder();
}
public static VbrHealthCheck create() {
return builder().build();
}
/**
* @return cenId
*/
public String getCenId() {
return this.cenId;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return healthCheckInterval
*/
public Integer getHealthCheckInterval() {
return this.healthCheckInterval;
}
/**
* @return healthCheckOnly
*/
public Boolean getHealthCheckOnly() {
return this.healthCheckOnly;
}
/**
* @return healthCheckSourceIp
*/
public String getHealthCheckSourceIp() {
return this.healthCheckSourceIp;
}
/**
* @return healthCheckTargetIp
*/
public String getHealthCheckTargetIp() {
return this.healthCheckTargetIp;
}
/**
* @return healthyThreshold
*/
public Integer getHealthyThreshold() {
return this.healthyThreshold;
}
/**
* @return vbrInstanceId
*/
public String getVbrInstanceId() {
return this.vbrInstanceId;
}
/**
* @return vbrInstanceRegionId
*/
public String getVbrInstanceRegionId() {
return this.vbrInstanceRegionId;
}
public static final class Builder {
private String cenId;
private String description;
private Integer healthCheckInterval;
private Boolean healthCheckOnly;
private String healthCheckSourceIp;
private String healthCheckTargetIp;
private Integer healthyThreshold;
private String vbrInstanceId;
private String vbrInstanceRegionId;
/**
* The ID of the CEN instance.
*/
public Builder cenId(String cenId) {
this.cenId = cenId;
return this;
}
/**
* The description.
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* The time interval at which probe packets are sent during the health check. Unit: seconds.
*/
public Builder healthCheckInterval(Integer healthCheckInterval) {
this.healthCheckInterval = healthCheckInterval;
return this;
}
/**
* Indicates whether probing is enabled. Valid values:
*
*
* * **true**: Probing is enabled.
*
* If you enable probing, the system does not switch to another route if the detected route is not reachable.
*
* * **false**: Probing is disabled.
*
* If probing is disabled and a redundant route is specified, the system switches to the redundant route when the detected route is not reachable.
*/
public Builder healthCheckOnly(Boolean healthCheckOnly) {
this.healthCheckOnly = healthCheckOnly;
return this;
}
/**
* The source IP address of the health check.
*/
public Builder healthCheckSourceIp(String healthCheckSourceIp) {
this.healthCheckSourceIp = healthCheckSourceIp;
return this;
}
/**
* The destination IP address of the health check.
*/
public Builder healthCheckTargetIp(String healthCheckTargetIp) {
this.healthCheckTargetIp = healthCheckTargetIp;
return this;
}
/**
* The number of probe packets that are sent during the health check.
*/
public Builder healthyThreshold(Integer healthyThreshold) {
this.healthyThreshold = healthyThreshold;
return this;
}
/**
* The VBR ID.
*/
public Builder vbrInstanceId(String vbrInstanceId) {
this.vbrInstanceId = vbrInstanceId;
return this;
}
/**
* The ID of the region where the VBR is deployed.
*/
public Builder vbrInstanceRegionId(String vbrInstanceRegionId) {
this.vbrInstanceRegionId = vbrInstanceRegionId;
return this;
}
public VbrHealthCheck build() {
return new VbrHealthCheck(this);
}
}
}
public static class VbrHealthChecks extends TeaModel {
@com.aliyun.core.annotation.NameInMap("VbrHealthCheck")
private java.util.List < VbrHealthCheck> vbrHealthCheck;
private VbrHealthChecks(Builder builder) {
this.vbrHealthCheck = builder.vbrHealthCheck;
}
public static Builder builder() {
return new Builder();
}
public static VbrHealthChecks create() {
return builder().build();
}
/**
* @return vbrHealthCheck
*/
public java.util.List < VbrHealthCheck> getVbrHealthCheck() {
return this.vbrHealthCheck;
}
public static final class Builder {
private java.util.List < VbrHealthCheck> vbrHealthCheck;
/**
* VbrHealthCheck.
*/
public Builder vbrHealthCheck(java.util.List < VbrHealthCheck> vbrHealthCheck) {
this.vbrHealthCheck = vbrHealthCheck;
return this;
}
public VbrHealthChecks build() {
return new VbrHealthChecks(this);
}
}
}
}