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

com.softlayer.api.service.resource.Configuration Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.resource;

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.Entity;
import java.util.concurrent.Future;

/**
 * The Resource Configuration service enables the user to update data regarding a resource from which the request originates. It is a requirement that the request must have an authentication token as well as originate from the backend network of the resource. 
 *
 * @see SoftLayer_Resource_Configuration
 */
@ApiType("SoftLayer_Resource_Configuration")
public class Configuration extends Entity {

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

    /**
     * The Resource Configuration service enables the user to update data regarding a resource from which the request originates. It is a requirement that the request must have an authentication token as well as originate from the backend network of the resource. 
     *
     * @see SoftLayer_Resource_Configuration
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Resource_Configuration")
    public static interface Service extends com.softlayer.api.Service {

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

        /**
         * The setOsPasswordFromEncrypted method is used to set the operating system password from a key/pair encrypted password signed by SoftLayer. 
         *
         * @see SoftLayer_Resource_Configuration::setOsPasswordFromEncrypted
         */
        @ApiMethod(instanceRequired = true)
        public Boolean setOsPasswordFromEncrypted(String encryptedPassword);

    }

    public static interface ServiceAsync extends com.softlayer.api.ServiceAsync {

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

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

        public Future setOsPasswordFromEncrypted(String encryptedPassword, ResponseHandler callback);

    }

    public static class Mask extends com.softlayer.api.service.Entity.Mask {

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy