com.softlayer.api.service.software.component.AntivirusSpyware 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.software.Component;
import java.util.concurrent.Future;
/**
* This object specifies a specific type of Software Component: An Anti-virus/spyware instance. Anti-virus/spyware installations have specific properties and methods such as SoftLayer_Software_Component_AntivirusSpyware::updateAntivirusSpywarePolicy. Defaults are initiated by this object.
*
* @see SoftLayer_Software_Component_AntivirusSpyware
*/
@ApiType("SoftLayer_Software_Component_AntivirusSpyware")
public class AntivirusSpyware 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 object specifies a specific type of Software Component: An Anti-virus/spyware instance.
*
* @see SoftLayer_Software_Component_AntivirusSpyware
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Software_Component_AntivirusSpyware")
public static interface Service extends Component.Service {
public ServiceAsync asAsync();
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* @see SoftLayer_Software_Component_AntivirusSpyware::getObject
*/
@ApiMethod(value = "getObject", instanceRequired = true)
public AntivirusSpyware getObjectForAntivirusSpyware();
/**
* Update an anti-virus/spyware policy. The policy options that it accepts are the following:
* *1 - Minimal
* *2 - Relaxed
* *3 - Default
* *4 - High
* *5 - Ultimate
*
* @see SoftLayer_Software_Component_AntivirusSpyware::updateAntivirusSpywarePolicy
*/
@ApiMethod(instanceRequired = true)
public Boolean updateAntivirusSpywarePolicy(String newPolicy, Boolean enforce);
}
public static interface ServiceAsync extends Component.ServiceAsync {
public Mask withNewMask();
public Mask withMask();
public void setMask(Mask mask);
/**
* Async version of {@link Service#getObjectForAntivirusSpyware}
*/
public Future getObjectForAntivirusSpyware();
public Future> getObjectForAntivirusSpyware(ResponseHandler callback);
/**
* Async version of {@link Service#updateAntivirusSpywarePolicy}
*/
public Future updateAntivirusSpywarePolicy(String newPolicy, Boolean enforce);
public Future> updateAntivirusSpywarePolicy(String newPolicy, Boolean enforce, ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.software.Component.Mask {
}
}