com.ksc.network.slb.model.DescribeLoadBalancersRequest Maven / Gradle / Ivy
package com.ksc.network.slb.model;
import java.io.Serializable;
import com.ksc.KscWebServiceRequest;
import com.ksc.Request;
import com.ksc.model.DryRunSupportedRequest;
import com.ksc.model.Filter;
import com.ksc.network.slb.model.transform.DescribeLoadBalancersRequestMarshaller;
public class DescribeLoadBalancersRequest extends KscWebServiceRequest
implements Serializable, Cloneable, DryRunSupportedRequest {
/**
*
*/
private static final long serialVersionUID = 2681670918913999259L;
/**
*
* One or more filters. Filter names and values are case-sensitive.
*
*
* -
*
* vpc-id
- VPC的ID.
*
*
*
*/
private com.ksc.internal.SdkInternalList filters;
/**
*
* 负载均衡的ID
*
*
* Default: 描述region下所有的负载均衡信息
*
*/
private com.ksc.internal.SdkInternalList loadBalancerIds;
/**
* 负载均衡的状态,已绑定,未绑定
*/
private String state;
public com.ksc.internal.SdkInternalList getFilters() {
if (filters == null) {
filters = new com.ksc.internal.SdkInternalList();
}
return filters;
}
public void setFilters(com.ksc.internal.SdkInternalList filters) {
this.filters = filters;
}
public com.ksc.internal.SdkInternalList getLoadBalancerIds() {
if (loadBalancerIds == null) {
loadBalancerIds = new com.ksc.internal.SdkInternalList();
}
return loadBalancerIds;
}
public void setLoadBalancerIds(com.ksc.internal.SdkInternalList loadBalancerIds) {
this.loadBalancerIds = loadBalancerIds;
}
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
public void addFilters(Filter... filters) {
if (this.filters == null) {
this.filters = new com.ksc.internal.SdkInternalList();
}
for (Filter filter : filters) {
this.filters.add(filter);
}
}
public void addLoadBalancerIds(String... loadBalancerIds) {
if (this.loadBalancerIds == null) {
this.loadBalancerIds = new com.ksc.internal.SdkInternalList();
}
for (String loadBalancerId : loadBalancerIds) {
this.loadBalancerIds.add(loadBalancerId);
}
}
@Override
public Request getDryRunRequest() {
Request request = new DescribeLoadBalancersRequestMarshaller()
.marshall(this);
request.addParameter("DryRun", Boolean.toString(true));
return request;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy