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

com.softlayer.api.service.user.customer.Invitation Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.user.customer;

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.user.Customer;
import java.util.GregorianCalendar;
import java.util.concurrent.Future;

/**
 * @see SoftLayer_User_Customer_Invitation
 */
@ApiType("SoftLayer_User_Customer_Invitation")
public class Invitation extends Entity {

    @ApiProperty
    protected Customer user;

    public Customer getUser() {
        return user;
    }

    public void setUser(Customer user) {
        this.user = user;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String code;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        codeSpecified = true;
        this.code = code;
    }

    protected boolean codeSpecified;

    public boolean isCodeSpecified() {
        return codeSpecified;
    }

    public void unsetCode() {
        code = null;
        codeSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar createDate;

    public GregorianCalendar getCreateDate() {
        return createDate;
    }

    public void setCreateDate(GregorianCalendar createDate) {
        createDateSpecified = true;
        this.createDate = createDate;
    }

    protected boolean createDateSpecified;

    public boolean isCreateDateSpecified() {
        return createDateSpecified;
    }

    public void unsetCreateDate() {
        createDate = null;
        createDateSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long creatorId;

    public Long getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(Long creatorId) {
        creatorIdSpecified = true;
        this.creatorId = creatorId;
    }

    protected boolean creatorIdSpecified;

    public boolean isCreatorIdSpecified() {
        return creatorIdSpecified;
    }

    public void unsetCreatorId() {
        creatorId = null;
        creatorIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String creatorType;

    public String getCreatorType() {
        return creatorType;
    }

    public void setCreatorType(String creatorType) {
        creatorTypeSpecified = true;
        this.creatorType = creatorType;
    }

    protected boolean creatorTypeSpecified;

    public boolean isCreatorTypeSpecified() {
        return creatorTypeSpecified;
    }

    public void unsetCreatorType() {
        creatorType = null;
        creatorTypeSpecified = false;
    }

    @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;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long existingBlueIdFlag;

    public Long getExistingBlueIdFlag() {
        return existingBlueIdFlag;
    }

    public void setExistingBlueIdFlag(Long existingBlueIdFlag) {
        existingBlueIdFlagSpecified = true;
        this.existingBlueIdFlag = existingBlueIdFlag;
    }

    protected boolean existingBlueIdFlagSpecified;

    public boolean isExistingBlueIdFlagSpecified() {
        return existingBlueIdFlagSpecified;
    }

    public void unsetExistingBlueIdFlag() {
        existingBlueIdFlag = null;
        existingBlueIdFlagSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar expirationDate;

    public GregorianCalendar getExpirationDate() {
        return expirationDate;
    }

    public void setExpirationDate(GregorianCalendar expirationDate) {
        expirationDateSpecified = true;
        this.expirationDate = expirationDate;
    }

    protected boolean expirationDateSpecified;

    public boolean isExpirationDateSpecified() {
        return expirationDateSpecified;
    }

    public void unsetExpirationDate() {
        expirationDate = null;
        expirationDateSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String ibmIdUsername;

    public String getIbmIdUsername() {
        return ibmIdUsername;
    }

    public void setIbmIdUsername(String ibmIdUsername) {
        ibmIdUsernameSpecified = true;
        this.ibmIdUsername = ibmIdUsername;
    }

    protected boolean ibmIdUsernameSpecified;

    public boolean isIbmIdUsernameSpecified() {
        return ibmIdUsernameSpecified;
    }

    public void unsetIbmIdUsername() {
        ibmIdUsername = null;
        ibmIdUsernameSpecified = false;
    }

    @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;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long isFederatedEmailDomainFlag;

    public Long getIsFederatedEmailDomainFlag() {
        return isFederatedEmailDomainFlag;
    }

    public void setIsFederatedEmailDomainFlag(Long isFederatedEmailDomainFlag) {
        isFederatedEmailDomainFlagSpecified = true;
        this.isFederatedEmailDomainFlag = isFederatedEmailDomainFlag;
    }

    protected boolean isFederatedEmailDomainFlagSpecified;

    public boolean isIsFederatedEmailDomainFlagSpecified() {
        return isFederatedEmailDomainFlagSpecified;
    }

    public void unsetIsFederatedEmailDomainFlag() {
        isFederatedEmailDomainFlag = null;
        isFederatedEmailDomainFlagSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar modifyDate;

    public GregorianCalendar getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(GregorianCalendar modifyDate) {
        modifyDateSpecified = true;
        this.modifyDate = modifyDate;
    }

    protected boolean modifyDateSpecified;

    public boolean isModifyDateSpecified() {
        return modifyDateSpecified;
    }

    public void unsetModifyDate() {
        modifyDate = null;
        modifyDateSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected GregorianCalendar responseDate;

    public GregorianCalendar getResponseDate() {
        return responseDate;
    }

    public void setResponseDate(GregorianCalendar responseDate) {
        responseDateSpecified = true;
        this.responseDate = responseDate;
    }

    protected boolean responseDateSpecified;

    public boolean isResponseDateSpecified() {
        return responseDateSpecified;
    }

    public void unsetResponseDate() {
        responseDate = null;
        responseDateSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long statusId;

    public Long getStatusId() {
        return statusId;
    }

    public void setStatusId(Long statusId) {
        statusIdSpecified = true;
        this.statusId = statusId;
    }

    protected boolean statusIdSpecified;

    public boolean isStatusIdSpecified() {
        return statusIdSpecified;
    }

    public void unsetStatusId() {
        statusId = null;
        statusIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long userId;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        userIdSpecified = true;
        this.userId = userId;
    }

    protected boolean userIdSpecified;

    public boolean isUserIdSpecified() {
        return userIdSpecified;
    }

    public void unsetUserId() {
        userId = null;
        userIdSpecified = 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());
    }

    /**
     * @see SoftLayer_User_Customer_Invitation
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_User_Customer_Invitation")
    public static interface Service extends com.softlayer.api.Service {

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

        /**
         * @see SoftLayer_User_Customer_Invitation::getObject
         */
        @ApiMethod(instanceRequired = true)
        public Invitation getObject();

        /**
         * @see SoftLayer_User_Customer_Invitation::getUser
         */
        @ApiMethod(instanceRequired = true)
        public Customer getUser();

    }

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

        public Future getObject(ResponseHandler callback);

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

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

    }

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

        public com.softlayer.api.service.user.Customer.Mask user() {
            return withSubMask("user", com.softlayer.api.service.user.Customer.Mask.class);
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy