com.softlayer.api.service.service.external.Resource 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.service.external;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Account;
import com.softlayer.api.service.Entity;
/**
* The SoftLayer_Service_External_Resource is a placeholder that references a service being provided outside of the standard SoftLayer system.
*
* @see SoftLayer_Service_External_Resource
*/
@ApiType("SoftLayer_Service_External_Resource")
public class Resource extends Entity {
/**
* The customer account that is consuming the service.
*/
@ApiProperty
protected Account account;
public Account getAccount() {
return account;
}
public void setAccount(Account account) {
this.account = account;
}
/**
* The customer account that is consuming the related service.
*/
@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;
}
/**
* The unique identifier in the service provider's system.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String externalIdentifier;
public String getExternalIdentifier() {
return externalIdentifier;
}
public void setExternalIdentifier(String externalIdentifier) {
externalIdentifierSpecified = true;
this.externalIdentifier = externalIdentifier;
}
protected boolean externalIdentifierSpecified;
public boolean isExternalIdentifierSpecified() {
return externalIdentifierSpecified;
}
public void unsetExternalIdentifier() {
externalIdentifier = null;
externalIdentifierSpecified = false;
}
/**
* An external resource's unique identifier in the SoftLayer system.
*/
@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;
}
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 Mask accountId() {
withLocalProperty("accountId");
return this;
}
public Mask externalIdentifier() {
withLocalProperty("externalIdentifier");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
}
}