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

com.softlayer.api.service.network.firewall.Interface Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.network.firewall;

import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiType;
import java.util.concurrent.Future;

/**
 * The SoftLayer_Network_Firewall_Interface data type contains general information relating to a single SoftLayer firewall interface. This is the object which ties the firewall context access control list to a firewall. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates. Use the [[SoftLayer Network Firewall Update Request]] service to submit a firewall update request. 
 *
 * @see SoftLayer_Network_Firewall_Interface
 */
@ApiType("SoftLayer_Network_Firewall_Interface")
public class Interface extends com.softlayer.api.service.network.firewall.module.context.Interface {

    public Service asService(ApiClient client) {
        return service(client, id);
    }

    public static Service service(ApiClient client) {
        return client.createService(Service.class, null);
    }

    public static Service service(ApiClient client, Long id) {
        return client.createService(Service.class, id == null ? null : id.toString());
    }

    /**
     * The SoftLayer_Network_Firewall_Interface service accesses general information relating to a single SoftLayer firewall interface.  This is the object which ties the firewall context access control list to a firewall. The current running rule set can be pulled from this service. Use the [[SoftLayer Network Firewall Template]] service to pull SoftLayer recommended rule set templates. Use the [[SoftLayer Network Firewall Update Request]] service to submit a firewall update request. 
     *
     * @see SoftLayer_Network_Firewall_Interface
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Network_Firewall_Interface")
    public static interface Service extends com.softlayer.api.service.network.firewall.module.context.Interface.Service {

        public ServiceAsync asAsync();
        public Mask withNewMask();
        public Mask withMask();
        public void setMask(Mask mask);

        /**
         * getObject returns a SoftLayer_Network_Firewall_Interface object. You can only get objects for servers attached to your account that have a network firewall enabled. 
         *
         * @see SoftLayer_Network_Firewall_Interface::getObject
         */
        @ApiMethod(value = "getObject", instanceRequired = true)
        public Interface getObjectForInterface();

    }

    public static interface ServiceAsync extends com.softlayer.api.service.network.firewall.module.context.Interface.ServiceAsync {

        public Mask withNewMask();
        public Mask withMask();
        public void setMask(Mask mask);

        /**
         * Async version of {@link Service#getObjectForInterface}
         */
        public Future getObjectForInterface();

        public Future getObjectForInterface(ResponseHandler callback);

    }

    public static class Mask extends com.softlayer.api.service.network.firewall.module.context.Interface.Mask {

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy