com.softlayer.api.service.notification.occurrence.resource.Hardware 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.notification.occurrence.resource;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.notification.occurrence.Resource;
/**
* This type contains general information related to a [[SoftLayer_Hardware]] resource that is impacted by a [[SoftLayer_Notification_Occurrence_Event]].
*
* @see SoftLayer_Notification_Occurrence_Resource_Hardware
*/
@ApiType("SoftLayer_Notification_Occurrence_Resource_Hardware")
public class Hardware extends Resource {
@ApiProperty(canBeNullOrNotSet = true)
protected String hostname;
public String getHostname() {
return hostname;
}
public void setHostname(String hostname) {
hostnameSpecified = true;
this.hostname = hostname;
}
protected boolean hostnameSpecified;
public boolean isHostnameSpecified() {
return hostnameSpecified;
}
public void unsetHostname() {
hostname = null;
hostnameSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String privateIp;
public String getPrivateIp() {
return privateIp;
}
public void setPrivateIp(String privateIp) {
privateIpSpecified = true;
this.privateIp = privateIp;
}
protected boolean privateIpSpecified;
public boolean isPrivateIpSpecified() {
return privateIpSpecified;
}
public void unsetPrivateIp() {
privateIp = null;
privateIpSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String publicIp;
public String getPublicIp() {
return publicIp;
}
public void setPublicIp(String publicIp) {
publicIpSpecified = true;
this.publicIp = publicIp;
}
protected boolean publicIpSpecified;
public boolean isPublicIpSpecified() {
return publicIpSpecified;
}
public void unsetPublicIp() {
publicIp = null;
publicIpSpecified = false;
}
@ApiProperty(canBeNullOrNotSet = true)
protected String resourceType;
public String getResourceType() {
return resourceType;
}
public void setResourceType(String resourceType) {
resourceTypeSpecified = true;
this.resourceType = resourceType;
}
protected boolean resourceTypeSpecified;
public boolean isResourceTypeSpecified() {
return resourceTypeSpecified;
}
public void unsetResourceType() {
resourceType = null;
resourceTypeSpecified = false;
}
public static class Mask extends com.softlayer.api.service.notification.occurrence.Resource.Mask {
public Mask hostname() {
withLocalProperty("hostname");
return this;
}
public Mask privateIp() {
withLocalProperty("privateIp");
return this;
}
public Mask publicIp() {
withLocalProperty("publicIp");
return this;
}
public Mask resourceType() {
withLocalProperty("resourceType");
return this;
}
}
}