com.softlayer.api.service.software.component.HostIps 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.software.component;
import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.container.software.component.hostips.Policy;
import com.softlayer.api.service.software.Component;
import java.util.List;
import java.util.concurrent.Future;
/**
* This object specifies a specific type of Software Component: A Host Intrusion Protection System instance.
*
* @see SoftLayer_Software_Component_HostIps
*/
@ApiType("SoftLayer_Software_Component_HostIps")
public class HostIps extends Component {
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());
}
/**
* This service specifies a specific type of Software Component: A Host Intrusion Protection System instance.
*
* @see SoftLayer_Software_Component_HostIps
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Software_Component_HostIps")
public static interface Service extends Component.Service {
public ServiceAsync asAsync();
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Get the current Host IPS policies.
*
* @see SoftLayer_Software_Component_HostIps::getCurrentHostIpsPolicies
*/
@ApiMethod(instanceRequired = true)
public List getCurrentHostIpsPolicies();
/**
* @see SoftLayer_Software_Component_HostIps::getObject
*/
@ApiMethod(value = "getObject", instanceRequired = true)
public HostIps getObjectForHostIps();
/**
* Update the Host IPS policies. To retrieve valid policy options you must use the provided relationships.
*
* @see SoftLayer_Software_Component_HostIps::updateHipsPolicies
*/
@ApiMethod(instanceRequired = true)
public Boolean updateHipsPolicies(String newIpsMode, String newIpsProtection, String newFirewallMode, String newFirewallRuleset, String newApplicationMode, String newApplicationRuleset, String newEnforcementPolicy);
}
public static interface ServiceAsync extends Component.ServiceAsync {
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Async version of {@link Service#getCurrentHostIpsPolicies}
*/
public Future> getCurrentHostIpsPolicies();
public Future> getCurrentHostIpsPolicies(ResponseHandler> callback);
/**
* Async version of {@link Service#getObjectForHostIps}
*/
public Future getObjectForHostIps();
public Future> getObjectForHostIps(ResponseHandler callback);
/**
* Async version of {@link Service#updateHipsPolicies}
*/
public Future updateHipsPolicies(String newIpsMode, String newIpsProtection, String newFirewallMode, String newFirewallRuleset, String newApplicationMode, String newApplicationRuleset, String newEnforcementPolicy);
public Future> updateHipsPolicies(String newIpsMode, String newIpsProtection, String newFirewallMode, String newFirewallRuleset, String newApplicationMode, String newApplicationRuleset, String newEnforcementPolicy, ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.software.Component.Mask {
}
}