com.softlayer.api.service.network.lbaas.PolicyRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of softlayer-api-client Show documentation
Show all versions of softlayer-api-client Show documentation
API client for accessing the SoftLayer API
package com.softlayer.api.service.network.lbaas;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.network.lbaas.L7Policy;
import com.softlayer.api.service.network.lbaas.L7Rule;
import java.util.ArrayList;
import java.util.List;
/**
* SoftLayer_Network_LBaaS_PolicyRule
*
* This class contains layer 7 policy specifications and an array of associated rules An array of objects of this class must be passed to the API in order to create a policy and its associated rules. - The layer 7 policy object
- An array of layer 7 rules
*
* @see SoftLayer_Network_LBaaS_PolicyRule
*/
@ApiType("SoftLayer_Network_LBaaS_PolicyRule")
public class PolicyRule extends Entity {
/**
* L7 Policy
*/
@ApiProperty(canBeNullOrNotSet = true)
protected L7Policy l7Policy;
public L7Policy getL7Policy() {
return l7Policy;
}
public void setL7Policy(L7Policy l7Policy) {
l7PolicySpecified = true;
this.l7Policy = l7Policy;
}
protected boolean l7PolicySpecified;
public boolean isL7PolicySpecified() {
return l7PolicySpecified;
}
public void unsetL7Policy() {
l7Policy = null;
l7PolicySpecified = false;
}
/**
* L7 Rules
*/
@ApiProperty(canBeNullOrNotSet = true)
protected List l7Rules;
public List getL7Rules() {
if (l7Rules == null) {
l7Rules = new ArrayList();
}
return l7Rules;
}
protected boolean l7RulesSpecified;
public boolean isL7RulesSpecified() {
return l7RulesSpecified;
}
public void unsetL7Rules() {
l7Rules = null;
l7RulesSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public L7Policy.Mask l7Policy() {
return withSubMask("l7Policy", L7Policy.Mask.class);
}
public L7Rule.Mask l7Rules() {
return withSubMask("l7Rules", L7Rule.Mask.class);
}
}
}