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

com.softlayer.api.service.account.reports.Request Maven / Gradle / Ivy

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

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.Account;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.Ticket;
import com.softlayer.api.service.account.Contact;
import com.softlayer.api.service.compliance.report.Type;
import com.softlayer.api.service.user.Customer;
import java.util.GregorianCalendar;
import java.util.concurrent.Future;

/**
 * @see SoftLayer_Account_Reports_Request
 */
@ApiType("SoftLayer_Account_Reports_Request")
public class Request extends Entity {

    @ApiProperty
    protected Account account;

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    /**
     * A request's corresponding external contact, if one exists.
     */
    @ApiProperty
    protected Contact accountContact;

    public Contact getAccountContact() {
        return accountContact;
    }

    public void setAccountContact(Contact accountContact) {
        this.accountContact = accountContact;
    }

    /**
     * Type of the report customer is requesting for.
     */
    @ApiProperty
    protected Type reportType;

    public Type getReportType() {
        return reportType;
    }

    public void setReportType(Type reportType) {
        this.reportType = reportType;
    }

    /**
     * A request's corresponding requestor contact, if one exists.
     */
    @ApiProperty
    protected Contact requestorContact;

    public Contact getRequestorContact() {
        return requestorContact;
    }

    public void setRequestorContact(Contact requestorContact) {
        this.requestorContact = requestorContact;
    }

    @ApiProperty
    protected Ticket ticket;

    public Ticket getTicket() {
        return ticket;
    }

    public void setTicket(Ticket ticket) {
        this.ticket = ticket;
    }

    /**
     * The customer user that initiated a report request.
     */
    @ApiProperty
    protected Customer user;

    public Customer getUser() {
        return user;
    }

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

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long accountContactId;

    public Long getAccountContactId() {
        return accountContactId;
    }

    public void setAccountContactId(Long accountContactId) {
        accountContactIdSpecified = true;
        this.accountContactId = accountContactId;
    }

    protected boolean accountContactIdSpecified;

    public boolean isAccountContactIdSpecified() {
        return accountContactIdSpecified;
    }

    public void unsetAccountContactId() {
        accountContactId = null;
        accountContactIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long accountId;

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        accountIdSpecified = true;
        this.accountId = accountId;
    }

    protected boolean accountIdSpecified;

    public boolean isAccountIdSpecified() {
        return accountIdSpecified;
    }

    public void unsetAccountId() {
        accountId = null;
        accountIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String complianceReportTypeId;

    public String getComplianceReportTypeId() {
        return complianceReportTypeId;
    }

    public void setComplianceReportTypeId(String complianceReportTypeId) {
        complianceReportTypeIdSpecified = true;
        this.complianceReportTypeId = complianceReportTypeId;
    }

    protected boolean complianceReportTypeIdSpecified;

    public boolean isComplianceReportTypeIdSpecified() {
        return complianceReportTypeIdSpecified;
    }

    public void unsetComplianceReportTypeId() {
        complianceReportTypeId = null;
        complianceReportTypeIdSpecified = 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 employeeRecordId;

    public Long getEmployeeRecordId() {
        return employeeRecordId;
    }

    public void setEmployeeRecordId(Long employeeRecordId) {
        employeeRecordIdSpecified = true;
        this.employeeRecordId = employeeRecordId;
    }

    protected boolean employeeRecordIdSpecified;

    public boolean isEmployeeRecordIdSpecified() {
        return employeeRecordIdSpecified;
    }

    public void unsetEmployeeRecordId() {
        employeeRecordId = null;
        employeeRecordIdSpecified = 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 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 String nda;

    public String getNda() {
        return nda;
    }

    public void setNda(String nda) {
        ndaSpecified = true;
        this.nda = nda;
    }

    protected boolean ndaSpecified;

    public boolean isNdaSpecified() {
        return ndaSpecified;
    }

    public void unsetNda() {
        nda = null;
        ndaSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String notes;

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        notesSpecified = true;
        this.notes = notes;
    }

    protected boolean notesSpecified;

    public boolean isNotesSpecified() {
        return notesSpecified;
    }

    public void unsetNotes() {
        notes = null;
        notesSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String report;

    public String getReport() {
        return report;
    }

    public void setReport(String report) {
        reportSpecified = true;
        this.report = report;
    }

    protected boolean reportSpecified;

    public boolean isReportSpecified() {
        return reportSpecified;
    }

    public void unsetReport() {
        report = null;
        reportSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String requestKey;

    public String getRequestKey() {
        return requestKey;
    }

    public void setRequestKey(String requestKey) {
        requestKeySpecified = true;
        this.requestKey = requestKey;
    }

    protected boolean requestKeySpecified;

    public boolean isRequestKeySpecified() {
        return requestKeySpecified;
    }

    public void unsetRequestKey() {
        requestKey = null;
        requestKeySpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long requestorContactId;

    public Long getRequestorContactId() {
        return requestorContactId;
    }

    public void setRequestorContactId(Long requestorContactId) {
        requestorContactIdSpecified = true;
        this.requestorContactId = requestorContactId;
    }

    protected boolean requestorContactIdSpecified;

    public boolean isRequestorContactIdSpecified() {
        return requestorContactIdSpecified;
    }

    public void unsetRequestorContactId() {
        requestorContactId = null;
        requestorContactIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        statusSpecified = true;
        this.status = status;
    }

    protected boolean statusSpecified;

    public boolean isStatusSpecified() {
        return statusSpecified;
    }

    public void unsetStatus() {
        status = null;
        statusSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long ticketId;

    public Long getTicketId() {
        return ticketId;
    }

    public void setTicketId(Long ticketId) {
        ticketIdSpecified = true;
        this.ticketId = ticketId;
    }

    protected boolean ticketIdSpecified;

    public boolean isTicketIdSpecified() {
        return ticketIdSpecified;
    }

    public void unsetTicketId() {
        ticketId = null;
        ticketIdSpecified = false;
    }

    @ApiProperty(canBeNullOrNotSet = true)
    protected Long usrRecordId;

    public Long getUsrRecordId() {
        return usrRecordId;
    }

    public void setUsrRecordId(Long usrRecordId) {
        usrRecordIdSpecified = true;
        this.usrRecordId = usrRecordId;
    }

    protected boolean usrRecordIdSpecified;

    public boolean isUsrRecordIdSpecified() {
        return usrRecordIdSpecified;
    }

    public void unsetUsrRecordId() {
        usrRecordId = null;
        usrRecordIdSpecified = 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_Account_Reports_Request
     */
    @com.softlayer.api.annotation.ApiService("SoftLayer_Account_Reports_Request")
    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_Account_Reports_Request::createRequest
         */
        @ApiMethod
        public Request createRequest(Contact recipientContact, String reason, String reportType, Contact requestorContact);

        /**
         * @see SoftLayer_Account_Reports_Request::getAllObjects
         */
        @ApiMethod
        public Request getAllObjects();

        /**
         * @see SoftLayer_Account_Reports_Request::getObject
         */
        @ApiMethod(instanceRequired = true)
        public Request getObject();

        /**
         * @see SoftLayer_Account_Reports_Request::getRequestByRequestKey
         */
        @ApiMethod
        public Request getRequestByRequestKey(String requestKey);

        /**
         * @see SoftLayer_Account_Reports_Request::sendReportEmail
         */
        @ApiMethod
        public Boolean sendReportEmail(Request request);

        /**
         * @see SoftLayer_Account_Reports_Request::updateTicketOnDecline
         */
        @ApiMethod
        public Boolean updateTicketOnDecline(Request request);

        /**
         * @see SoftLayer_Account_Reports_Request::getAccount
         */
        @ApiMethod(instanceRequired = true)
        public Account getAccount();

        /**
         * A request's corresponding external contact, if one exists.
         *
         * @see SoftLayer_Account_Reports_Request::getAccountContact
         */
        @ApiMethod(instanceRequired = true)
        public Contact getAccountContact();

        /**
         * Type of the report customer is requesting for.
         *
         * @see SoftLayer_Account_Reports_Request::getReportType
         */
        @ApiMethod(instanceRequired = true)
        public Type getReportType();

        /**
         * A request's corresponding requestor contact, if one exists.
         *
         * @see SoftLayer_Account_Reports_Request::getRequestorContact
         */
        @ApiMethod(instanceRequired = true)
        public Contact getRequestorContact();

        /**
         * @see SoftLayer_Account_Reports_Request::getTicket
         */
        @ApiMethod(instanceRequired = true)
        public Ticket getTicket();

        /**
         * The customer user that initiated a report request.
         *
         * @see SoftLayer_Account_Reports_Request::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#createRequest}
         */
        public Future createRequest(Contact recipientContact, String reason, String reportType, Contact requestorContact);

        public Future createRequest(Contact recipientContact, String reason, String reportType, Contact requestorContact, ResponseHandler callback);

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

        public Future getRequestByRequestKey(String requestKey, ResponseHandler callback);

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

        public Future sendReportEmail(Request request, ResponseHandler callback);

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

        public Future updateTicketOnDecline(Request request, ResponseHandler callback);

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

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

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

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

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

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

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

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

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

        /**
         * Async callback version of {@link Service#getTicket}
         */
        public Future getTicket(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.Account.Mask account() {
            return withSubMask("account", com.softlayer.api.service.Account.Mask.class);
        }

        public com.softlayer.api.service.account.Contact.Mask accountContact() {
            return withSubMask("accountContact", com.softlayer.api.service.account.Contact.Mask.class);
        }

        public com.softlayer.api.service.compliance.report.Type.Mask reportType() {
            return withSubMask("reportType", com.softlayer.api.service.compliance.report.Type.Mask.class);
        }

        public com.softlayer.api.service.account.Contact.Mask requestorContact() {
            return withSubMask("requestorContact", com.softlayer.api.service.account.Contact.Mask.class);
        }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy