com.softlayer.api.service.network.storage.Partnership 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.network.storage;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.network.Storage;
import com.softlayer.api.service.network.storage.partnership.Type;
import java.util.GregorianCalendar;
/**
* A network storage partnership is used to link multiple volumes to each other. These partnerships describe replication hierarchies or link volume snapshots to their associated storage volume.
*
* @see SoftLayer_Network_Storage_Partnership
*/
@ApiType("SoftLayer_Network_Storage_Partnership")
public class Partnership extends Entity {
/**
* The associated child volume for a partnership.
*/
@ApiProperty
protected Storage partnerVolume;
public Storage getPartnerVolume() {
return partnerVolume;
}
public void setPartnerVolume(Storage partnerVolume) {
this.partnerVolume = partnerVolume;
}
/**
* The type provides a standardized definition for a partnership.
*/
@ApiProperty
protected Type type;
public Type getType() {
return type;
}
public void setType(Type type) {
this.type = type;
}
/**
* The associated parent volume for a partnership.
*/
@ApiProperty
protected Storage volume;
public Storage getVolume() {
return volume;
}
public void setVolume(Storage volume) {
this.volume = volume;
}
/**
* The date a partnership was created.
*/
@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;
}
/**
* The date a partnership was last modified.
*/
@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;
}
/**
* The child volume id which a partnership is associated with.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long partnerVolumeId;
public Long getPartnerVolumeId() {
return partnerVolumeId;
}
public void setPartnerVolumeId(Long partnerVolumeId) {
partnerVolumeIdSpecified = true;
this.partnerVolumeId = partnerVolumeId;
}
protected boolean partnerVolumeIdSpecified;
public boolean isPartnerVolumeIdSpecified() {
return partnerVolumeIdSpecified;
}
public void unsetPartnerVolumeId() {
partnerVolumeId = null;
partnerVolumeIdSpecified = false;
}
/**
* The volume id which a partnership is associated with.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected Long volumeId;
public Long getVolumeId() {
return volumeId;
}
public void setVolumeId(Long volumeId) {
volumeIdSpecified = true;
this.volumeId = volumeId;
}
protected boolean volumeIdSpecified;
public boolean isVolumeIdSpecified() {
return volumeIdSpecified;
}
public void unsetVolumeId() {
volumeId = null;
volumeIdSpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public com.softlayer.api.service.network.Storage.Mask partnerVolume() {
return withSubMask("partnerVolume", com.softlayer.api.service.network.Storage.Mask.class);
}
public com.softlayer.api.service.network.storage.partnership.Type.Mask type() {
return withSubMask("type", com.softlayer.api.service.network.storage.partnership.Type.Mask.class);
}
public com.softlayer.api.service.network.Storage.Mask volume() {
return withSubMask("volume", com.softlayer.api.service.network.Storage.Mask.class);
}
public Mask createDate() {
withLocalProperty("createDate");
return this;
}
public Mask modifyDate() {
withLocalProperty("modifyDate");
return this;
}
public Mask partnerVolumeId() {
withLocalProperty("partnerVolumeId");
return this;
}
public Mask volumeId() {
withLocalProperty("volumeId");
return this;
}
}
}