com.softlayer.api.service.network.securitygroup.RequestRules 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.securitygroup;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.network.securitygroup.Request;
import com.softlayer.api.service.network.securitygroup.Rule;
import java.util.ArrayList;
import java.util.List;
/**
* The SoftLayer_Network_SecurityGroup_RequestRules data type contains the ID of a specific request sent to the API, as well as an associative array of the rules that were created, edited, or removed by the request.
*
* @see SoftLayer_Network_SecurityGroup_RequestRules
*/
@ApiType("SoftLayer_Network_SecurityGroup_RequestRules")
public class RequestRules extends Request {
/**
* Whether the API call was valid or not.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected List rules;
public List getRules() {
if (rules == null) {
rules = new ArrayList();
}
return rules;
}
protected boolean rulesSpecified;
public boolean isRulesSpecified() {
return rulesSpecified;
}
public void unsetRules() {
rules = null;
rulesSpecified = false;
}
public static class Mask extends Request.Mask {
public Rule.Mask rules() {
return withSubMask("rules", Rule.Mask.class);
}
}
}