com.softlayer.api.service.catalyst.Enrollment 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.catalyst;
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.catalyst.Affiliate;
import com.softlayer.api.service.catalyst.company.Type;
import com.softlayer.api.service.catalyst.enrollment.Request;
import com.softlayer.api.service.catalyst.enrollment.request.container.AnswerOption;
import com.softlayer.api.service.container.catalyst.ManualEnrollmentRequest;
import com.softlayer.api.service.user.Employee;
import java.math.BigDecimal;
import java.util.GregorianCalendar;
import java.util.List;
import java.util.concurrent.Future;
/**
* @see SoftLayer_Catalyst_Enrollment
*/
@ApiType("SoftLayer_Catalyst_Enrollment")
public class Enrollment extends Entity {
@ApiProperty
protected Account account;
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
@ApiProperty
protected Affiliate affiliate;
public Affiliate getAffiliate() {
return affiliate;
}
public void setAffiliate(Affiliate affiliate) {
this.affiliate = affiliate;
}
@ApiProperty
protected Type companyType;
public Type getCompanyType() {
return companyType;
}
public void setCompanyType(Type companyType) {
this.companyType = companyType;
}
@ApiProperty
protected Boolean isActiveFlag;
public Boolean getIsActiveFlag() {
return isActiveFlag;
}
public void setIsActiveFlag(Boolean isActiveFlag) {
this.isActiveFlag = isActiveFlag;
}
@ApiProperty
protected Employee representative;
public Employee getRepresentative() {
return representative;
}
public void setRepresentative(Employee representative) {
this.representative = representative;
}
@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 Long affiliateId;
public Long getAffiliateId() {
return affiliateId;
}
public void setAffiliateId(Long affiliateId) {
affiliateIdSpecified = true;
this.affiliateId = affiliateId;
}
protected boolean affiliateIdSpecified;
public boolean isAffiliateIdSpecified() {
return affiliateIdSpecified;
}
public void unsetAffiliateId() {
affiliateId = null;
affiliateIdSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long agreementCompleteFlag;
public Long getAgreementCompleteFlag() {
return agreementCompleteFlag;
}
public void setAgreementCompleteFlag(Long agreementCompleteFlag) {
agreementCompleteFlagSpecified = true;
this.agreementCompleteFlag = agreementCompleteFlag;
}
protected boolean agreementCompleteFlagSpecified;
public boolean isAgreementCompleteFlagSpecified() {
return agreementCompleteFlagSpecified;
}
public void unsetAgreementCompleteFlag() {
agreementCompleteFlag = null;
agreementCompleteFlagSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String companyDescription;
public String getCompanyDescription() {
return companyDescription;
}
public void setCompanyDescription(String companyDescription) {
companyDescriptionSpecified = true;
this.companyDescription = companyDescription;
}
protected boolean companyDescriptionSpecified;
public boolean isCompanyDescriptionSpecified() {
return companyDescriptionSpecified;
}
public void unsetCompanyDescription() {
companyDescription = null;
companyDescriptionSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long companyTypeId;
public Long getCompanyTypeId() {
return companyTypeId;
}
public void setCompanyTypeId(Long companyTypeId) {
companyTypeIdSpecified = true;
this.companyTypeId = companyTypeId;
}
protected boolean companyTypeIdSpecified;
public boolean isCompanyTypeIdSpecified() {
return companyTypeIdSpecified;
}
public void unsetCompanyTypeId() {
companyTypeId = null;
companyTypeIdSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar enrollmentDate;
public GregorianCalendar getEnrollmentDate() {
return enrollmentDate;
}
public void setEnrollmentDate(GregorianCalendar enrollmentDate) {
enrollmentDateSpecified = true;
this.enrollmentDate = enrollmentDate;
}
protected boolean enrollmentDateSpecified;
public boolean isEnrollmentDateSpecified() {
return enrollmentDateSpecified;
}
public void unsetEnrollmentDate() {
enrollmentDate = null;
enrollmentDateSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected GregorianCalendar graduationDate;
public GregorianCalendar getGraduationDate() {
return graduationDate;
}
public void setGraduationDate(GregorianCalendar graduationDate) {
graduationDateSpecified = true;
this.graduationDate = graduationDate;
}
protected boolean graduationDateSpecified;
public boolean isGraduationDateSpecified() {
return graduationDateSpecified;
}
public void unsetGraduationDate() {
graduationDate = null;
graduationDateSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected BigDecimal monthlyCreditAmount;
public BigDecimal getMonthlyCreditAmount() {
return monthlyCreditAmount;
}
public void setMonthlyCreditAmount(BigDecimal monthlyCreditAmount) {
monthlyCreditAmountSpecified = true;
this.monthlyCreditAmount = monthlyCreditAmount;
}
protected boolean monthlyCreditAmountSpecified;
public boolean isMonthlyCreditAmountSpecified() {
return monthlyCreditAmountSpecified;
}
public void unsetMonthlyCreditAmount() {
monthlyCreditAmount = null;
monthlyCreditAmountSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long representativeEmployeeId;
public Long getRepresentativeEmployeeId() {
return representativeEmployeeId;
}
public void setRepresentativeEmployeeId(Long representativeEmployeeId) {
representativeEmployeeIdSpecified = true;
this.representativeEmployeeId = representativeEmployeeId;
}
protected boolean representativeEmployeeIdSpecified;
public boolean isRepresentativeEmployeeIdSpecified() {
return representativeEmployeeIdSpecified;
}
public void unsetRepresentativeEmployeeId() {
representativeEmployeeId = null;
representativeEmployeeIdSpecified = false;
}
public static Service service(ApiClient client) {
return client.createService(Service.class, null);
}
/**
* @see SoftLayer_Catalyst_Enrollment
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Catalyst_Enrollment")
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_Catalyst_Enrollment::getAffiliates
*/
@ApiMethod
public List getAffiliates();
/**
* @see SoftLayer_Catalyst_Enrollment::getCompanyTypes
*/
@ApiMethod
public List getCompanyTypes();
/**
* @see SoftLayer_Catalyst_Enrollment::getEnrollmentRequestAnnualRevenueOptions
*/
@ApiMethod
public List getEnrollmentRequestAnnualRevenueOptions();
/**
* @see SoftLayer_Catalyst_Enrollment::getEnrollmentRequestUserCountOptions
*/
@ApiMethod
public List getEnrollmentRequestUserCountOptions();
/**
* @see SoftLayer_Catalyst_Enrollment::getEnrollmentRequestYearsInOperationOptions
*/
@ApiMethod
public List getEnrollmentRequestYearsInOperationOptions();
/**
* @see SoftLayer_Catalyst_Enrollment::getObject
*/
@ApiMethod(instanceRequired = true)
public Enrollment getObject();
/**
* @see SoftLayer_Catalyst_Enrollment::requestManualEnrollment
*/
@ApiMethod
public Void requestManualEnrollment(ManualEnrollmentRequest request);
/**
* @see SoftLayer_Catalyst_Enrollment::requestSelfEnrollment
*/
@ApiMethod
public Account requestSelfEnrollment(Request enrollmentRequest);
/**
* @see SoftLayer_Catalyst_Enrollment::getAccount
*/
@ApiMethod(instanceRequired = true)
public Account getAccount();
/**
* @see SoftLayer_Catalyst_Enrollment::getAffiliate
*/
@ApiMethod(instanceRequired = true)
public Affiliate getAffiliate();
/**
* @see SoftLayer_Catalyst_Enrollment::getCompanyType
*/
@ApiMethod(instanceRequired = true)
public Type getCompanyType();
/**
* @see SoftLayer_Catalyst_Enrollment::getIsActiveFlag
*/
@ApiMethod(instanceRequired = true)
public Boolean getIsActiveFlag();
/**
* @see SoftLayer_Catalyst_Enrollment::getRepresentative
*/
@ApiMethod(instanceRequired = true)
public Employee getRepresentative();
}
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#getAffiliates}
*/
public Future> getAffiliates();
public Future> getAffiliates(ResponseHandler> callback);
/**
* Async version of {@link Service#getCompanyTypes}
*/
public Future> getCompanyTypes();
public Future> getCompanyTypes(ResponseHandler> callback);
/**
* Async version of {@link Service#getEnrollmentRequestAnnualRevenueOptions}
*/
public Future> getEnrollmentRequestAnnualRevenueOptions();
public Future> getEnrollmentRequestAnnualRevenueOptions(ResponseHandler> callback);
/**
* Async version of {@link Service#getEnrollmentRequestUserCountOptions}
*/
public Future> getEnrollmentRequestUserCountOptions();
public Future> getEnrollmentRequestUserCountOptions(ResponseHandler> callback);
/**
* Async version of {@link Service#getEnrollmentRequestYearsInOperationOptions}
*/
public Future> getEnrollmentRequestYearsInOperationOptions();
public Future> getEnrollmentRequestYearsInOperationOptions(ResponseHandler> callback);
/**
* Async version of {@link Service#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
/**
* Async version of {@link Service#requestManualEnrollment}
*/
public Future requestManualEnrollment(ManualEnrollmentRequest request);
public Future> requestManualEnrollment(ManualEnrollmentRequest request, ResponseHandler callback);
/**
* Async version of {@link Service#requestSelfEnrollment}
*/
public Future requestSelfEnrollment(Request enrollmentRequest);
public Future> requestSelfEnrollment(Request enrollmentRequest, 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#getAffiliate}
*/
public Future getAffiliate();
/**
* Async callback version of {@link Service#getAffiliate}
*/
public Future> getAffiliate(ResponseHandler callback);
/**
* Async version of {@link Service#getCompanyType}
*/
public Future getCompanyType();
/**
* Async callback version of {@link Service#getCompanyType}
*/
public Future> getCompanyType(ResponseHandler callback);
/**
* Async version of {@link Service#getIsActiveFlag}
*/
public Future getIsActiveFlag();
/**
* Async callback version of {@link Service#getIsActiveFlag}
*/
public Future> getIsActiveFlag(ResponseHandler callback);
/**
* Async version of {@link Service#getRepresentative}
*/
public Future getRepresentative();
/**
* Async callback version of {@link Service#getRepresentative}
*/
public Future> getRepresentative(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 Affiliate.Mask affiliate() {
return withSubMask("affiliate", Affiliate.Mask.class);
}
public com.softlayer.api.service.catalyst.company.Type.Mask companyType() {
return withSubMask("companyType", com.softlayer.api.service.catalyst.company.Type.Mask.class);
}
public Mask isActiveFlag() {
withLocalProperty("isActiveFlag");
return this;
}
public com.softlayer.api.service.user.Employee.Mask representative() {
return withSubMask("representative", com.softlayer.api.service.user.Employee.Mask.class);
}
public Mask accountId() {
withLocalProperty("accountId");
return this;
}
public Mask affiliateId() {
withLocalProperty("affiliateId");
return this;
}
public Mask agreementCompleteFlag() {
withLocalProperty("agreementCompleteFlag");
return this;
}
public Mask companyDescription() {
withLocalProperty("companyDescription");
return this;
}
public Mask companyTypeId() {
withLocalProperty("companyTypeId");
return this;
}
public Mask enrollmentDate() {
withLocalProperty("enrollmentDate");
return this;
}
public Mask graduationDate() {
withLocalProperty("graduationDate");
return this;
}
public Mask monthlyCreditAmount() {
withLocalProperty("monthlyCreditAmount");
return this;
}
public Mask representativeEmployeeId() {
withLocalProperty("representativeEmployeeId");
return this;
}
}
}