* The ID of the firewall domain list that DNS Firewall just updated. *
*/ private String id; /** ** The name of the domain list. *
*/ private String name; /** *
* Status of the UpdateFirewallDomains
request.
*
* Additional information about the status of the list, if available. *
*/ private String statusMessage; /** ** The ID of the firewall domain list that DNS Firewall just updated. *
* * @param id * The ID of the firewall domain list that DNS Firewall just updated. */ public void setId(String id) { this.id = id; } /** ** The ID of the firewall domain list that DNS Firewall just updated. *
* * @return The ID of the firewall domain list that DNS Firewall just updated. */ public String getId() { return this.id; } /** ** The ID of the firewall domain list that DNS Firewall just updated. *
* * @param id * The ID of the firewall domain list that DNS Firewall just updated. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFirewallDomainsResult withId(String id) { setId(id); return this; } /** ** The name of the domain list. *
* * @param name * The name of the domain list. */ public void setName(String name) { this.name = name; } /** ** The name of the domain list. *
* * @return The name of the domain list. */ public String getName() { return this.name; } /** ** The name of the domain list. *
* * @param name * The name of the domain list. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFirewallDomainsResult withName(String name) { setName(name); return this; } /** *
* Status of the UpdateFirewallDomains
request.
*
UpdateFirewallDomains
request.
* @see FirewallDomainListStatus
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* Status of the UpdateFirewallDomains
request.
*
UpdateFirewallDomains
request.
* @see FirewallDomainListStatus
*/
public String getStatus() {
return this.status;
}
/**
*
* Status of the UpdateFirewallDomains
request.
*
UpdateFirewallDomains
request.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FirewallDomainListStatus
*/
public UpdateFirewallDomainsResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* Status of the UpdateFirewallDomains
request.
*
UpdateFirewallDomains
request.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FirewallDomainListStatus
*/
public UpdateFirewallDomainsResult withStatus(FirewallDomainListStatus status) {
this.status = status.toString();
return this;
}
/**
* * Additional information about the status of the list, if available. *
* * @param statusMessage * Additional information about the status of the list, if available. */ public void setStatusMessage(String statusMessage) { this.statusMessage = statusMessage; } /** ** Additional information about the status of the list, if available. *
* * @return Additional information about the status of the list, if available. */ public String getStatusMessage() { return this.statusMessage; } /** ** Additional information about the status of the list, if available. *
* * @param statusMessage * Additional information about the status of the list, if available. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdateFirewallDomainsResult withStatusMessage(String statusMessage) { setStatusMessage(statusMessage); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getId() != null) sb.append("Id: ").append(getId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getStatusMessage() != null) sb.append("StatusMessage: ").append(getStatusMessage()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdateFirewallDomainsResult == false) return false; UpdateFirewallDomainsResult other = (UpdateFirewallDomainsResult) obj; if (other.getId() == null ^ this.getId() == null) return false; if (other.getId() != null && other.getId().equals(this.getId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getStatusMessage() == null ^ this.getStatusMessage() == null) return false; if (other.getStatusMessage() != null && other.getStatusMessage().equals(this.getStatusMessage()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getStatusMessage() == null) ? 0 : getStatusMessage().hashCode()); return hashCode; } @Override public UpdateFirewallDomainsResult clone() { try { return (UpdateFirewallDomainsResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }