* The Amazon Resource Name (ARN) of the dashboard. *
*/ private String dashboardArn; /** *
* The detailed information about the dashboard, including what widgets are included and their location on the
* dashboard. For more information about the DashboardBody
syntax, see Dashboard Body Structure and Syntax.
*
* The name of the dashboard. *
*/ private String dashboardName; /** ** The Amazon Resource Name (ARN) of the dashboard. *
* * @param dashboardArn * The Amazon Resource Name (ARN) of the dashboard. */ public void setDashboardArn(String dashboardArn) { this.dashboardArn = dashboardArn; } /** ** The Amazon Resource Name (ARN) of the dashboard. *
* * @return The Amazon Resource Name (ARN) of the dashboard. */ public String getDashboardArn() { return this.dashboardArn; } /** ** The Amazon Resource Name (ARN) of the dashboard. *
* * @param dashboardArn * The Amazon Resource Name (ARN) of the dashboard. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDashboardResult withDashboardArn(String dashboardArn) { setDashboardArn(dashboardArn); return this; } /** *
* The detailed information about the dashboard, including what widgets are included and their location on the
* dashboard. For more information about the DashboardBody
syntax, see Dashboard Body Structure and Syntax.
*
DashboardBody
syntax, see Dashboard Body Structure and Syntax.
*/
public void setDashboardBody(String dashboardBody) {
this.dashboardBody = dashboardBody;
}
/**
*
* The detailed information about the dashboard, including what widgets are included and their location on the
* dashboard. For more information about the DashboardBody
syntax, see Dashboard Body Structure and Syntax.
*
DashboardBody
syntax, see Dashboard Body Structure and Syntax.
*/
public String getDashboardBody() {
return this.dashboardBody;
}
/**
*
* The detailed information about the dashboard, including what widgets are included and their location on the
* dashboard. For more information about the DashboardBody
syntax, see Dashboard Body Structure and Syntax.
*
DashboardBody
syntax, see Dashboard Body Structure and Syntax.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public GetDashboardResult withDashboardBody(String dashboardBody) {
setDashboardBody(dashboardBody);
return this;
}
/**
* * The name of the dashboard. *
* * @param dashboardName * The name of the dashboard. */ public void setDashboardName(String dashboardName) { this.dashboardName = dashboardName; } /** ** The name of the dashboard. *
* * @return The name of the dashboard. */ public String getDashboardName() { return this.dashboardName; } /** ** The name of the dashboard. *
* * @param dashboardName * The name of the dashboard. * @return Returns a reference to this object so that method calls can be chained together. */ public GetDashboardResult withDashboardName(String dashboardName) { setDashboardName(dashboardName); 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 (getDashboardArn() != null) sb.append("DashboardArn: ").append(getDashboardArn()).append(","); if (getDashboardBody() != null) sb.append("DashboardBody: ").append(getDashboardBody()).append(","); if (getDashboardName() != null) sb.append("DashboardName: ").append(getDashboardName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetDashboardResult == false) return false; GetDashboardResult other = (GetDashboardResult) obj; if (other.getDashboardArn() == null ^ this.getDashboardArn() == null) return false; if (other.getDashboardArn() != null && other.getDashboardArn().equals(this.getDashboardArn()) == false) return false; if (other.getDashboardBody() == null ^ this.getDashboardBody() == null) return false; if (other.getDashboardBody() != null && other.getDashboardBody().equals(this.getDashboardBody()) == false) return false; if (other.getDashboardName() == null ^ this.getDashboardName() == null) return false; if (other.getDashboardName() != null && other.getDashboardName().equals(this.getDashboardName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDashboardArn() == null) ? 0 : getDashboardArn().hashCode()); hashCode = prime * hashCode + ((getDashboardBody() == null) ? 0 : getDashboardBody().hashCode()); hashCode = prime * hashCode + ((getDashboardName() == null) ? 0 : getDashboardName().hashCode()); return hashCode; } @Override public GetDashboardResult clone() { try { return (GetDashboardResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }