/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.iotsitewise.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains a dashboard summary. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DashboardSummary implements Serializable, Cloneable, StructuredPojo { /** ** The ID of the dashboard. *
*/ private String id; /** ** The name of the dashboard *
*/ private String name; /** ** The dashboard's description. *
*/ private String description; /** ** The date the dashboard was created, in Unix epoch time. *
*/ private java.util.Date creationDate; /** ** The date the dashboard was last updated, in Unix epoch time. *
*/ private java.util.Date lastUpdateDate; /** ** The ID of the dashboard. *
* * @param id * The ID of the dashboard. */ public void setId(String id) { this.id = id; } /** ** The ID of the dashboard. *
* * @return The ID of the dashboard. */ public String getId() { return this.id; } /** ** The ID of the dashboard. *
* * @param id * The ID of the dashboard. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardSummary withId(String id) { setId(id); return this; } /** ** The name of the dashboard *
* * @param name * The name of the dashboard */ public void setName(String name) { this.name = name; } /** ** The name of the dashboard *
* * @return The name of the dashboard */ public String getName() { return this.name; } /** ** The name of the dashboard *
* * @param name * The name of the dashboard * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardSummary withName(String name) { setName(name); return this; } /** ** The dashboard's description. *
* * @param description * The dashboard's description. */ public void setDescription(String description) { this.description = description; } /** ** The dashboard's description. *
* * @return The dashboard's description. */ public String getDescription() { return this.description; } /** ** The dashboard's description. *
* * @param description * The dashboard's description. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardSummary withDescription(String description) { setDescription(description); return this; } /** ** The date the dashboard was created, in Unix epoch time. *
* * @param creationDate * The date the dashboard was created, in Unix epoch time. */ public void setCreationDate(java.util.Date creationDate) { this.creationDate = creationDate; } /** ** The date the dashboard was created, in Unix epoch time. *
* * @return The date the dashboard was created, in Unix epoch time. */ public java.util.Date getCreationDate() { return this.creationDate; } /** ** The date the dashboard was created, in Unix epoch time. *
* * @param creationDate * The date the dashboard was created, in Unix epoch time. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardSummary withCreationDate(java.util.Date creationDate) { setCreationDate(creationDate); return this; } /** ** The date the dashboard was last updated, in Unix epoch time. *
* * @param lastUpdateDate * The date the dashboard was last updated, in Unix epoch time. */ public void setLastUpdateDate(java.util.Date lastUpdateDate) { this.lastUpdateDate = lastUpdateDate; } /** ** The date the dashboard was last updated, in Unix epoch time. *
* * @return The date the dashboard was last updated, in Unix epoch time. */ public java.util.Date getLastUpdateDate() { return this.lastUpdateDate; } /** ** The date the dashboard was last updated, in Unix epoch time. *
* * @param lastUpdateDate * The date the dashboard was last updated, in Unix epoch time. * @return Returns a reference to this object so that method calls can be chained together. */ public DashboardSummary withLastUpdateDate(java.util.Date lastUpdateDate) { setLastUpdateDate(lastUpdateDate); 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 (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getCreationDate() != null) sb.append("CreationDate: ").append(getCreationDate()).append(","); if (getLastUpdateDate() != null) sb.append("LastUpdateDate: ").append(getLastUpdateDate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DashboardSummary == false) return false; DashboardSummary other = (DashboardSummary) 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.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getCreationDate() == null ^ this.getCreationDate() == null) return false; if (other.getCreationDate() != null && other.getCreationDate().equals(this.getCreationDate()) == false) return false; if (other.getLastUpdateDate() == null ^ this.getLastUpdateDate() == null) return false; if (other.getLastUpdateDate() != null && other.getLastUpdateDate().equals(this.getLastUpdateDate()) == 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 + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getCreationDate() == null) ? 0 : getCreationDate().hashCode()); hashCode = prime * hashCode + ((getLastUpdateDate() == null) ? 0 : getLastUpdateDate().hashCode()); return hashCode; } @Override public DashboardSummary clone() { try { return (DashboardSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.iotsitewise.model.transform.DashboardSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }