com.softlayer.api.service.dns.Message 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.dns;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.dns.Domain;
import com.softlayer.api.service.dns.Secondary;
import com.softlayer.api.service.dns.domain.ResourceRecord;
import java.util.GregorianCalendar;
/**
* The SoftLayer_Dns_Message data type contains information for a single message generated by the SoftLayer DNS system. SoftLayer_Dns_Messages are typically created during the secondary DNS transfer process.
*
* @see SoftLayer_Dns_Message
*/
@ApiType("SoftLayer_Dns_Message")
public class Message extends Entity {
/**
* The domain that is associated with a message.
*/
@ApiProperty
protected Domain domain;
public Domain getDomain() {
return domain;
}
public void setDomain(Domain domain) {
this.domain = domain;
}
/**
* The resource record that is associated with a message.
*/
@ApiProperty
protected ResourceRecord resourceRecord;
public ResourceRecord getResourceRecord() {
return resourceRecord;
}
public void setResourceRecord(ResourceRecord resourceRecord) {
this.resourceRecord = resourceRecord;
}
/**
* The secondary DNS record that a message belongs to.
*/
@ApiProperty
protected Secondary secondary;
public Secondary getSecondary() {
return secondary;
}
public void setSecondary(Secondary secondary) {
this.secondary = secondary;
}
/**
* The date the message 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 internal identifier for a DNS message.
*/
@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;
}
/**
* The message text.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String message;
public String getMessage() {
return message;
}
public void setMessage(String message) {
messageSpecified = true;
this.message = message;
}
protected boolean messageSpecified;
public boolean isMessageSpecified() {
return messageSpecified;
}
public void unsetMessage() {
message = null;
messageSpecified = false;
}
/**
* The priority level for a DNS message. The possible levels are 'notice' and 'error'.
*/
@ApiProperty(canBeNullOrNotSet = true)
protected String priority;
public String getPriority() {
return priority;
}
public void setPriority(String priority) {
prioritySpecified = true;
this.priority = priority;
}
protected boolean prioritySpecified;
public boolean isPrioritySpecified() {
return prioritySpecified;
}
public void unsetPriority() {
priority = null;
prioritySpecified = false;
}
public static class Mask extends com.softlayer.api.service.Entity.Mask {
public Domain.Mask domain() {
return withSubMask("domain", Domain.Mask.class);
}
public com.softlayer.api.service.dns.domain.ResourceRecord.Mask resourceRecord() {
return withSubMask("resourceRecord", com.softlayer.api.service.dns.domain.ResourceRecord.Mask.class);
}
public Secondary.Mask secondary() {
return withSubMask("secondary", Secondary.Mask.class);
}
public Mask createDate() {
withLocalProperty("createDate");
return this;
}
public Mask id() {
withLocalProperty("id");
return this;
}
public Mask message() {
withLocalProperty("message");
return this;
}
public Mask priority() {
withLocalProperty("priority");
return this;
}
}
}