All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softlayer.api.service.network.securitygroup.RequestRules Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show 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);
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy