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

com.softlayer.api.service.account.proofofconcept.Approver Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.account.proofofconcept;

import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.account.proofofconcept.approver.Role;
import com.softlayer.api.service.account.proofofconcept.approver.Type;
import java.util.List;
import java.util.concurrent.Future;

/**
 * This class represents a Proof of Concept account approver. 
 *
 * @see SoftLayer_Account_ProofOfConcept_Approver
 */
@ApiType("SoftLayer_Account_ProofOfConcept_Approver")
public class Approver extends Entity {

    @ApiProperty
    protected Role role;

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    @ApiProperty
    protected Type type;

    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    /**
     * Approval slot of the approver.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long approvalOrder;

    public Long getApprovalOrder() {
        return approvalOrder;
    }

    public void setApprovalOrder(Long approvalOrder) {
        approvalOrderSpecified = true;
        this.approvalOrder = approvalOrder;
    }

    protected boolean approvalOrderSpecified;

    public boolean isApprovalOrderSpecified() {
        return approvalOrderSpecified;
    }

    public void unsetApprovalOrder() {
        approvalOrder = null;
        approvalOrderSpecified = false;
    }

    /**
     * Internal identifier.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String bluepagesUid;

    public String getBluepagesUid() {
        return bluepagesUid;
    }

    public void setBluepagesUid(String bluepagesUid) {
        bluepagesUidSpecified = true;
        this.bluepagesUid = bluepagesUid;
    }

    protected boolean bluepagesUidSpecified;

    public boolean isBluepagesUidSpecified() {
        return bluepagesUidSpecified;
    }

    public void unsetBluepagesUid() {
        bluepagesUid = null;
        bluepagesUidSpecified = false;
    }

    /**
     * Email of the approver.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String email;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        emailSpecified = true;
        this.email = email;
    }

    protected boolean emailSpecified;

    public boolean isEmailSpecified() {
        return emailSpecified;
    }

    public void unsetEmail() {
        email = null;
        emailSpecified = false;
    }

    /**
     * First name of the approver.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String firstName;

    public String getFirstName() {
        return firstName;
    }

    public void setFirstName(String firstName) {
        firstNameSpecified = true;
        this.firstName = firstName;
    }

    protected boolean firstNameSpecified;

    public boolean isFirstNameSpecified() {
        return firstNameSpecified;
    }

    public void unsetFirstName() {
        firstName = null;
        firstNameSpecified = false;
    }

    /**
     * Internal identifier of a Proof of Concept account approver.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        idSpecified = true;
        this.id = id;
    }

    protected boolean idSpecified;

    public boolean isIdSpecified() {
        return idSpecified;
    }

    public void unsetId() {
        id = null;
        idSpecified = false;
    }

    /**
     * Last name of the approver.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String lastName;

    public String getLastName() {
        return lastName;
    }

    public void setLastName(String lastName) {
        lastNameSpecified = true;
        this.lastName = lastName;
    }

    protected boolean lastNameSpecified;

    public boolean isLastNameSpecified() {
        return lastNameSpecified;
    }

    public void unsetLastName() {
        lastName = null;
        lastNameSpecified = false;
    }

    /**
     * SoftLayer_Account_ProofOfConcept_Approver_Region identifier of the approver.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String regionKeyName;

    public String getRegionKeyName() {
        return regionKeyName;
    }

    public void setRegionKeyName(String regionKeyName) {
        regionKeyNameSpecified = true;
        this.regionKeyName = regionKeyName;
    }

    protected boolean regionKeyNameSpecified;

    public boolean isRegionKeyNameSpecified() {
        return regionKeyNameSpecified;
    }

    public void unsetRegionKeyName() {
        regionKeyName = null;
        regionKeyNameSpecified = false;
    }

    /**
     * SoftLayer_Account_ProofOfConcept_Approver_Role identifier of the approver.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long roleId;

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        roleIdSpecified = true;
        this.roleId = roleId;
    }

    protected boolean roleIdSpecified;

    public boolean isRoleIdSpecified() {
        return roleIdSpecified;
    }

    public void unsetRoleId() {
        roleId = null;
        roleIdSpecified = false;
    }

    /**
     * SoftLayer_Account_ProofOfConcept_Approver_Type identifier of the approver.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long typeId;

    public Long getTypeId() {
        return typeId;
    }

    public void setTypeId(Long typeId) {
        typeIdSpecified = true;
        this.typeId = typeId;
    }

    protected boolean typeIdSpecified;

    public boolean isTypeIdSpecified() {
        return typeIdSpecified;
    }

    public void unsetTypeId() {
        typeId = null;
        typeIdSpecified = false;
    }

    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 class represents a Proof of Concept account approver. 
     *
     * @see SoftLayer_Account_ProofOfConcept_Approver
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Account_ProofOfConcept_Approver")
    public static interface Service extends com.softlayer.api.Service {

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

        /**
         * Retrieves a list of reviewers 
         *
         * @see SoftLayer_Account_ProofOfConcept_Approver::getAllObjects
         */
        @ApiMethod
        public List getAllObjects();

        /**
         * @see SoftLayer_Account_ProofOfConcept_Approver::getObject
         */
        @ApiMethod(instanceRequired = true)
        public Approver getObject();

        /**
         * @see SoftLayer_Account_ProofOfConcept_Approver::getRole
         */
        @ApiMethod(instanceRequired = true)
        public Role getRole();

        /**
         * @see SoftLayer_Account_ProofOfConcept_Approver::getType
         */
        @ApiMethod(instanceRequired = true)
        public Type getType();

    }

    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#getAllObjects}
         */
        public Future> getAllObjects();

        public Future getAllObjects(ResponseHandler> callback);

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

        public Future getObject(ResponseHandler callback);

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

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

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

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

    }

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

        public com.softlayer.api.service.account.proofofconcept.approver.Role.Mask role() {
            return withSubMask("role", com.softlayer.api.service.account.proofofconcept.approver.Role.Mask.class);
        }

        public com.softlayer.api.service.account.proofofconcept.approver.Type.Mask type() {
            return withSubMask("type", com.softlayer.api.service.account.proofofconcept.approver.Type.Mask.class);
        }

        public Mask approvalOrder() {
            withLocalProperty("approvalOrder");
            return this;
        }

        public Mask bluepagesUid() {
            withLocalProperty("bluepagesUid");
            return this;
        }

        public Mask email() {
            withLocalProperty("email");
            return this;
        }

        public Mask firstName() {
            withLocalProperty("firstName");
            return this;
        }

        public Mask id() {
            withLocalProperty("id");
            return this;
        }

        public Mask lastName() {
            withLocalProperty("lastName");
            return this;
        }

        public Mask regionKeyName() {
            withLocalProperty("regionKeyName");
            return this;
        }

        public Mask roleId() {
            withLocalProperty("roleId");
            return this;
        }

        public Mask typeId() {
            withLocalProperty("typeId");
            return this;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy