com.softlayer.api.service.marketplace.Partner 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
package com.softlayer.api.service.marketplace;
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.marketplace.partner.Attachment;
import com.softlayer.api.service.marketplace.partner.File;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.Future;
/**
* @see SoftLayer_Marketplace_Partner
*/
@ApiType("SoftLayer_Marketplace_Partner")
public class Partner extends Entity {
@ApiProperty
protected List attachments;
public List getAttachments() {
if (attachments == null) {
attachments = new ArrayList();
}
return attachments;
}
@ApiProperty
protected Attachment logoMedium;
public Attachment getLogoMedium() {
return logoMedium;
}
public void setLogoMedium(Attachment logoMedium) {
this.logoMedium = logoMedium;
}
@ApiProperty
protected Attachment logoMediumTemp;
public Attachment getLogoMediumTemp() {
return logoMediumTemp;
}
public void setLogoMediumTemp(Attachment logoMediumTemp) {
this.logoMediumTemp = logoMediumTemp;
}
@ApiProperty
protected Attachment logoSmall;
public Attachment getLogoSmall() {
return logoSmall;
}
public void setLogoSmall(Attachment logoSmall) {
this.logoSmall = logoSmall;
}
@ApiProperty
protected Attachment logoSmallTemp;
public Attachment getLogoSmallTemp() {
return logoSmallTemp;
}
public void setLogoSmallTemp(Attachment logoSmallTemp) {
this.logoSmallTemp = logoSmallTemp;
}
@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 List attachedFiles;
public List getAttachedFiles() {
if (attachedFiles == null) {
attachedFiles = new ArrayList();
}
return attachedFiles;
}
protected boolean attachedFilesSpecified;
public boolean isAttachedFilesSpecified() {
return attachedFilesSpecified;
}
public void unsetAttachedFiles() {
attachedFiles = null;
attachedFilesSpecified = 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 String companyName;
public String getCompanyName() {
return companyName;
}
public void setCompanyName(String companyName) {
companyNameSpecified = true;
this.companyName = companyName;
}
protected boolean companyNameSpecified;
public boolean isCompanyNameSpecified() {
return companyNameSpecified;
}
public void unsetCompanyName() {
companyName = null;
companyNameSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String headlineDescription;
public String getHeadlineDescription() {
return headlineDescription;
}
public void setHeadlineDescription(String headlineDescription) {
headlineDescriptionSpecified = true;
this.headlineDescription = headlineDescription;
}
protected boolean headlineDescriptionSpecified;
public boolean isHeadlineDescriptionSpecified() {
return headlineDescriptionSpecified;
}
public void unsetHeadlineDescription() {
headlineDescription = null;
headlineDescriptionSpecified = 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 String linkFreeTrial;
public String getLinkFreeTrial() {
return linkFreeTrial;
}
public void setLinkFreeTrial(String linkFreeTrial) {
linkFreeTrialSpecified = true;
this.linkFreeTrial = linkFreeTrial;
}
protected boolean linkFreeTrialSpecified;
public boolean isLinkFreeTrialSpecified() {
return linkFreeTrialSpecified;
}
public void unsetLinkFreeTrial() {
linkFreeTrial = null;
linkFreeTrialSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String linkOrderPage;
public String getLinkOrderPage() {
return linkOrderPage;
}
public void setLinkOrderPage(String linkOrderPage) {
linkOrderPageSpecified = true;
this.linkOrderPage = linkOrderPage;
}
protected boolean linkOrderPageSpecified;
public boolean isLinkOrderPageSpecified() {
return linkOrderPageSpecified;
}
public void unsetLinkOrderPage() {
linkOrderPage = null;
linkOrderPageSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String linkWebsite;
public String getLinkWebsite() {
return linkWebsite;
}
public void setLinkWebsite(String linkWebsite) {
linkWebsiteSpecified = true;
this.linkWebsite = linkWebsite;
}
protected boolean linkWebsiteSpecified;
public boolean isLinkWebsiteSpecified() {
return linkWebsiteSpecified;
}
public void unsetLinkWebsite() {
linkWebsite = null;
linkWebsiteSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String metaDescription;
public String getMetaDescription() {
return metaDescription;
}
public void setMetaDescription(String metaDescription) {
metaDescriptionSpecified = true;
this.metaDescription = metaDescription;
}
protected boolean metaDescriptionSpecified;
public boolean isMetaDescriptionSpecified() {
return metaDescriptionSpecified;
}
public void unsetMetaDescription() {
metaDescription = null;
metaDescriptionSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String metaKeywords;
public String getMetaKeywords() {
return metaKeywords;
}
public void setMetaKeywords(String metaKeywords) {
metaKeywordsSpecified = true;
this.metaKeywords = metaKeywords;
}
protected boolean metaKeywordsSpecified;
public boolean isMetaKeywordsSpecified() {
return metaKeywordsSpecified;
}
public void unsetMetaKeywords() {
metaKeywords = null;
metaKeywordsSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String productBenefits;
public String getProductBenefits() {
return productBenefits;
}
public void setProductBenefits(String productBenefits) {
productBenefitsSpecified = true;
this.productBenefits = productBenefits;
}
protected boolean productBenefitsSpecified;
public boolean isProductBenefitsSpecified() {
return productBenefitsSpecified;
}
public void unsetProductBenefits() {
productBenefits = null;
productBenefitsSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected Long productCategoryId;
public Long getProductCategoryId() {
return productCategoryId;
}
public void setProductCategoryId(Long productCategoryId) {
productCategoryIdSpecified = true;
this.productCategoryId = productCategoryId;
}
protected boolean productCategoryIdSpecified;
public boolean isProductCategoryIdSpecified() {
return productCategoryIdSpecified;
}
public void unsetProductCategoryId() {
productCategoryId = null;
productCategoryIdSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String productDescriptionLong;
public String getProductDescriptionLong() {
return productDescriptionLong;
}
public void setProductDescriptionLong(String productDescriptionLong) {
productDescriptionLongSpecified = true;
this.productDescriptionLong = productDescriptionLong;
}
protected boolean productDescriptionLongSpecified;
public boolean isProductDescriptionLongSpecified() {
return productDescriptionLongSpecified;
}
public void unsetProductDescriptionLong() {
productDescriptionLong = null;
productDescriptionLongSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String productDescriptionShort;
public String getProductDescriptionShort() {
return productDescriptionShort;
}
public void setProductDescriptionShort(String productDescriptionShort) {
productDescriptionShortSpecified = true;
this.productDescriptionShort = productDescriptionShort;
}
protected boolean productDescriptionShortSpecified;
public boolean isProductDescriptionShortSpecified() {
return productDescriptionShortSpecified;
}
public void unsetProductDescriptionShort() {
productDescriptionShort = null;
productDescriptionShortSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String productFeatures;
public String getProductFeatures() {
return productFeatures;
}
public void setProductFeatures(String productFeatures) {
productFeaturesSpecified = true;
this.productFeatures = productFeatures;
}
protected boolean productFeaturesSpecified;
public boolean isProductFeaturesSpecified() {
return productFeaturesSpecified;
}
public void unsetProductFeatures() {
productFeatures = null;
productFeaturesSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String productName;
public String getProductName() {
return productName;
}
public void setProductName(String productName) {
productNameSpecified = true;
this.productName = productName;
}
protected boolean productNameSpecified;
public boolean isProductNameSpecified() {
return productNameSpecified;
}
public void unsetProductName() {
productName = null;
productNameSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String productTitle;
public String getProductTitle() {
return productTitle;
}
public void setProductTitle(String productTitle) {
productTitleSpecified = true;
this.productTitle = productTitle;
}
protected boolean productTitleSpecified;
public boolean isProductTitleSpecified() {
return productTitleSpecified;
}
public void unsetProductTitle() {
productTitle = null;
productTitleSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String urlIdentifier;
public String getUrlIdentifier() {
return urlIdentifier;
}
public void setUrlIdentifier(String urlIdentifier) {
urlIdentifierSpecified = true;
this.urlIdentifier = urlIdentifier;
}
protected boolean urlIdentifierSpecified;
public boolean isUrlIdentifierSpecified() {
return urlIdentifierSpecified;
}
public void unsetUrlIdentifier() {
urlIdentifier = null;
urlIdentifierSpecified = false;
}
/**
* A count of
*/
@ApiProperty
protected Long attachmentCount;
public Long getAttachmentCount() {
return attachmentCount;
}
public void setAttachmentCount(Long attachmentCount) {
this.attachmentCount = attachmentCount;
}
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_Marketplace_Partner
*/
@com.softlayer.api.annotation.ApiService("SoftLayer_Marketplace_Partner")
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_Marketplace_Partner::getAllObjects
*/
@ApiMethod
public List getAllObjects();
/**
* @see SoftLayer_Marketplace_Partner::getAllPublishedPartners
*/
@ApiMethod
public List getAllPublishedPartners(String searchTerm);
/**
* @see SoftLayer_Marketplace_Partner::getFeaturedPartners
*/
@ApiMethod
public List getFeaturedPartners(Boolean non);
/**
* @see SoftLayer_Marketplace_Partner::getFile
*/
@ApiMethod(instanceRequired = true)
public File getFile(String name);
/**
* @see SoftLayer_Marketplace_Partner::getObject
*/
@ApiMethod(instanceRequired = true)
public Partner getObject();
/**
* @see SoftLayer_Marketplace_Partner::getPartnerByUrlIdentifier
*/
@ApiMethod
public Partner getPartnerByUrlIdentifier(String urlIdentifier);
/**
* @see SoftLayer_Marketplace_Partner::getAttachments
*/
@ApiMethod(instanceRequired = true)
public List getAttachments();
/**
* @see SoftLayer_Marketplace_Partner::getLogoMedium
*/
@ApiMethod(instanceRequired = true)
public Attachment getLogoMedium();
/**
* @see SoftLayer_Marketplace_Partner::getLogoMediumTemp
*/
@ApiMethod(instanceRequired = true)
public Attachment getLogoMediumTemp();
/**
* @see SoftLayer_Marketplace_Partner::getLogoSmall
*/
@ApiMethod(instanceRequired = true)
public Attachment getLogoSmall();
/**
* @see SoftLayer_Marketplace_Partner::getLogoSmallTemp
*/
@ApiMethod(instanceRequired = true)
public Attachment getLogoSmallTemp();
}
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#getAllPublishedPartners}
*/
public Future> getAllPublishedPartners(String searchTerm);
public Future> getAllPublishedPartners(String searchTerm, ResponseHandler> callback);
/**
* Async version of {@link Service#getFeaturedPartners}
*/
public Future> getFeaturedPartners(Boolean non);
public Future> getFeaturedPartners(Boolean non, ResponseHandler> callback);
/**
* Async version of {@link Service#getFile}
*/
public Future getFile(String name);
public Future> getFile(String name, ResponseHandler callback);
/**
* Async version of {@link Service#getObject}
*/
public Future getObject();
public Future> getObject(ResponseHandler callback);
/**
* Async version of {@link Service#getPartnerByUrlIdentifier}
*/
public Future getPartnerByUrlIdentifier(String urlIdentifier);
public Future> getPartnerByUrlIdentifier(String urlIdentifier, ResponseHandler callback);
/**
* Async version of {@link Service#getAttachments}
*/
public Future> getAttachments();
/**
* Async callback version of {@link Service#getAttachments}
*/
public Future> getAttachments(ResponseHandler> callback);
/**
* Async version of {@link Service#getLogoMedium}
*/
public Future getLogoMedium();
/**
* Async callback version of {@link Service#getLogoMedium}
*/
public Future> getLogoMedium(ResponseHandler callback);
/**
* Async version of {@link Service#getLogoMediumTemp}
*/
public Future getLogoMediumTemp();
/**
* Async callback version of {@link Service#getLogoMediumTemp}
*/
public Future> getLogoMediumTemp(ResponseHandler callback);
/**
* Async version of {@link Service#getLogoSmall}
*/
public Future getLogoSmall();
/**
* Async callback version of {@link Service#getLogoSmall}
*/
public Future> getLogoSmall(ResponseHandler callback);
/**
* Async version of {@link Service#getLogoSmallTemp}
*/
public Future getLogoSmallTemp();
/**
* Async callback version of {@link Service#getLogoSmallTemp}
*/
public Future> getLogoSmallTemp(ResponseHandler callback);
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.marketplace.partner.Attachment.Mask attachments() {
return withSubMask("attachments", com.softlayer.api.service.marketplace.partner.Attachment.Mask.class);
}
public com.softlayer.api.service.marketplace.partner.Attachment.Mask logoMedium() {
return withSubMask("logoMedium", com.softlayer.api.service.marketplace.partner.Attachment.Mask.class);
}
public com.softlayer.api.service.marketplace.partner.Attachment.Mask logoMediumTemp() {
return withSubMask("logoMediumTemp", com.softlayer.api.service.marketplace.partner.Attachment.Mask.class);
}
public com.softlayer.api.service.marketplace.partner.Attachment.Mask logoSmall() {
return withSubMask("logoSmall", com.softlayer.api.service.marketplace.partner.Attachment.Mask.class);
}
public com.softlayer.api.service.marketplace.partner.Attachment.Mask logoSmallTemp() {
return withSubMask("logoSmallTemp", com.softlayer.api.service.marketplace.partner.Attachment.Mask.class);
}
public Mask accountId() {
withLocalProperty("accountId");
return this;
}
public com.softlayer.api.service.marketplace.partner.Attachment.Mask attachedFiles() {
return withSubMask("attachedFiles", com.softlayer.api.service.marketplace.partner.Attachment.Mask.class);
}
public Mask companyDescription() {
withLocalProperty("companyDescription");
return this;
}
public Mask companyName() {
withLocalProperty("companyName");
return this;
}
public Mask headlineDescription() {
withLocalProperty("headlineDescription");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask linkFreeTrial() {
withLocalProperty("linkFreeTrial");
return this;
}
public Mask linkOrderPage() {
withLocalProperty("linkOrderPage");
return this;
}
public Mask linkWebsite() {
withLocalProperty("linkWebsite");
return this;
}
public Mask metaDescription() {
withLocalProperty("metaDescription");
return this;
}
public Mask metaKeywords() {
withLocalProperty("metaKeywords");
return this;
}
public Mask productBenefits() {
withLocalProperty("productBenefits");
return this;
}
public Mask productCategoryId() {
withLocalProperty("productCategoryId");
return this;
}
public Mask productDescriptionLong() {
withLocalProperty("productDescriptionLong");
return this;
}
public Mask productDescriptionShort() {
withLocalProperty("productDescriptionShort");
return this;
}
public Mask productFeatures() {
withLocalProperty("productFeatures");
return this;
}
public Mask productName() {
withLocalProperty("productName");
return this;
}
public Mask productTitle() {
withLocalProperty("productTitle");
return this;
}
public Mask urlIdentifier() {
withLocalProperty("urlIdentifier");
return this;
}
public Mask attachmentCount() {
withLocalProperty("attachmentCount");
return this;
}
}
}