com.softlayer.api.service.network.component.firewall.Subnets 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
The newest version!
package com.softlayer.api.service.network.component.firewall;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.network.Subnet;
import com.softlayer.api.service.network.component.Firewall;
/**
* A SoftLayer_Network_Component_Firewall_Subnets object type represents the current linked subnets and contains relative information. Use the [[SoftLayer Network Firewall Update Request]] service to submit a firewall update request. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates.
*
* @see SoftLayer_Network_Component_Firewall_Subnets
*/
@ApiType("SoftLayer_Network_Component_Firewall_Subnets")
public class Subnets extends Entity {
/**
* The network component firewall that write rules for this subnet.
*/
@ApiProperty
protected Firewall networkComponentFirewall;
public Firewall getNetworkComponentFirewall() {
return networkComponentFirewall;
}
public void setNetworkComponentFirewall(Firewall networkComponentFirewall) {
this.networkComponentFirewall = networkComponentFirewall;
}
/**
* The subnet that this link binds to the network component firewall.
*/
@ApiProperty
protected Subnet subnet;
public Subnet getSubnet() {
return subnet;
}
public void setSubnet(Subnet subnet) {
this.subnet = subnet;
}
/**
* A boolean flag that indicates whether the subnet should receive all the rules intended for the host on this context slot.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Boolean applyServerRulesFlag;
public Boolean getApplyServerRulesFlag() {
return applyServerRulesFlag;
}
public void setApplyServerRulesFlag(Boolean applyServerRulesFlag) {
applyServerRulesFlagSpecified = true;
this.applyServerRulesFlag = applyServerRulesFlag;
}
protected boolean applyServerRulesFlagSpecified;
public boolean isApplyServerRulesFlagSpecified() {
return applyServerRulesFlagSpecified;
}
public void unsetApplyServerRulesFlag() {
applyServerRulesFlag = null;
applyServerRulesFlagSpecified = false;
}
/**
* The unique identifier of the subnet being linked to the network component firewall.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long subnetId;
public Long getSubnetId() {
return subnetId;
}
public void setSubnetId(Long subnetId) {
subnetIdSpecified = true;
this.subnetId = subnetId;
}
protected boolean subnetIdSpecified;
public boolean isSubnetIdSpecified() {
return subnetIdSpecified;
}
public void unsetSubnetId() {
subnetId = null;
subnetIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.network.component.Firewall.Mask networkComponentFirewall() {
return withSubMask("networkComponentFirewall", com.softlayer.api.service.network.component.Firewall.Mask.class);
}
public com.softlayer.api.service.network.Subnet.Mask subnet() {
return withSubMask("subnet", com.softlayer.api.service.network.Subnet.Mask.class);
}
public Mask applyServerRulesFlag() {
withLocalProperty("applyServerRulesFlag");
return this;
}
public Mask subnetId() {
withLocalProperty("subnetId");
return this;
}
}
}