All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.iottwinmaker.model.EntitySummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS IoT TwinMaker module holds the client classes that are used for communicating with AWS IoT TwinMaker Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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.iottwinmaker.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* An object that contains information about an entity. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class EntitySummary implements Serializable, Cloneable, StructuredPojo { /** *

* The ID of the entity. *

*/ private String entityId; /** *

* The name of the entity. *

*/ private String entityName; /** *

* The ARN of the entity. *

*/ private String arn; /** *

* The ID of the parent entity. *

*/ private String parentEntityId; /** *

* The current status of the entity. *

*/ private Status status; /** *

* The description of the entity. *

*/ private String description; /** *

* An eventual Boolean value that specifies whether the entity has child entities or not. *

*/ private Boolean hasChildEntities; /** *

* The date and time when the entity was created. *

*/ private java.util.Date creationDateTime; /** *

* The last date and time when the entity was updated. *

*/ private java.util.Date updateDateTime; /** *

* The ID of the entity. *

* * @param entityId * The ID of the entity. */ public void setEntityId(String entityId) { this.entityId = entityId; } /** *

* The ID of the entity. *

* * @return The ID of the entity. */ public String getEntityId() { return this.entityId; } /** *

* The ID of the entity. *

* * @param entityId * The ID of the entity. * @return Returns a reference to this object so that method calls can be chained together. */ public EntitySummary withEntityId(String entityId) { setEntityId(entityId); return this; } /** *

* The name of the entity. *

* * @param entityName * The name of the entity. */ public void setEntityName(String entityName) { this.entityName = entityName; } /** *

* The name of the entity. *

* * @return The name of the entity. */ public String getEntityName() { return this.entityName; } /** *

* The name of the entity. *

* * @param entityName * The name of the entity. * @return Returns a reference to this object so that method calls can be chained together. */ public EntitySummary withEntityName(String entityName) { setEntityName(entityName); return this; } /** *

* The ARN of the entity. *

* * @param arn * The ARN of the entity. */ public void setArn(String arn) { this.arn = arn; } /** *

* The ARN of the entity. *

* * @return The ARN of the entity. */ public String getArn() { return this.arn; } /** *

* The ARN of the entity. *

* * @param arn * The ARN of the entity. * @return Returns a reference to this object so that method calls can be chained together. */ public EntitySummary withArn(String arn) { setArn(arn); return this; } /** *

* The ID of the parent entity. *

* * @param parentEntityId * The ID of the parent entity. */ public void setParentEntityId(String parentEntityId) { this.parentEntityId = parentEntityId; } /** *

* The ID of the parent entity. *

* * @return The ID of the parent entity. */ public String getParentEntityId() { return this.parentEntityId; } /** *

* The ID of the parent entity. *

* * @param parentEntityId * The ID of the parent entity. * @return Returns a reference to this object so that method calls can be chained together. */ public EntitySummary withParentEntityId(String parentEntityId) { setParentEntityId(parentEntityId); return this; } /** *

* The current status of the entity. *

* * @param status * The current status of the entity. */ public void setStatus(Status status) { this.status = status; } /** *

* The current status of the entity. *

* * @return The current status of the entity. */ public Status getStatus() { return this.status; } /** *

* The current status of the entity. *

* * @param status * The current status of the entity. * @return Returns a reference to this object so that method calls can be chained together. */ public EntitySummary withStatus(Status status) { setStatus(status); return this; } /** *

* The description of the entity. *

* * @param description * The description of the entity. */ public void setDescription(String description) { this.description = description; } /** *

* The description of the entity. *

* * @return The description of the entity. */ public String getDescription() { return this.description; } /** *

* The description of the entity. *

* * @param description * The description of the entity. * @return Returns a reference to this object so that method calls can be chained together. */ public EntitySummary withDescription(String description) { setDescription(description); return this; } /** *

* An eventual Boolean value that specifies whether the entity has child entities or not. *

* * @param hasChildEntities * An eventual Boolean value that specifies whether the entity has child entities or not. */ public void setHasChildEntities(Boolean hasChildEntities) { this.hasChildEntities = hasChildEntities; } /** *

* An eventual Boolean value that specifies whether the entity has child entities or not. *

* * @return An eventual Boolean value that specifies whether the entity has child entities or not. */ public Boolean getHasChildEntities() { return this.hasChildEntities; } /** *

* An eventual Boolean value that specifies whether the entity has child entities or not. *

* * @param hasChildEntities * An eventual Boolean value that specifies whether the entity has child entities or not. * @return Returns a reference to this object so that method calls can be chained together. */ public EntitySummary withHasChildEntities(Boolean hasChildEntities) { setHasChildEntities(hasChildEntities); return this; } /** *

* An eventual Boolean value that specifies whether the entity has child entities or not. *

* * @return An eventual Boolean value that specifies whether the entity has child entities or not. */ public Boolean isHasChildEntities() { return this.hasChildEntities; } /** *

* The date and time when the entity was created. *

* * @param creationDateTime * The date and time when the entity was created. */ public void setCreationDateTime(java.util.Date creationDateTime) { this.creationDateTime = creationDateTime; } /** *

* The date and time when the entity was created. *

* * @return The date and time when the entity was created. */ public java.util.Date getCreationDateTime() { return this.creationDateTime; } /** *

* The date and time when the entity was created. *

* * @param creationDateTime * The date and time when the entity was created. * @return Returns a reference to this object so that method calls can be chained together. */ public EntitySummary withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); return this; } /** *

* The last date and time when the entity was updated. *

* * @param updateDateTime * The last date and time when the entity was updated. */ public void setUpdateDateTime(java.util.Date updateDateTime) { this.updateDateTime = updateDateTime; } /** *

* The last date and time when the entity was updated. *

* * @return The last date and time when the entity was updated. */ public java.util.Date getUpdateDateTime() { return this.updateDateTime; } /** *

* The last date and time when the entity was updated. *

* * @param updateDateTime * The last date and time when the entity was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public EntitySummary withUpdateDateTime(java.util.Date updateDateTime) { setUpdateDateTime(updateDateTime); 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 (getEntityId() != null) sb.append("EntityId: ").append(getEntityId()).append(","); if (getEntityName() != null) sb.append("EntityName: ").append(getEntityName()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getParentEntityId() != null) sb.append("ParentEntityId: ").append(getParentEntityId()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getHasChildEntities() != null) sb.append("HasChildEntities: ").append(getHasChildEntities()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getUpdateDateTime() != null) sb.append("UpdateDateTime: ").append(getUpdateDateTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof EntitySummary == false) return false; EntitySummary other = (EntitySummary) obj; if (other.getEntityId() == null ^ this.getEntityId() == null) return false; if (other.getEntityId() != null && other.getEntityId().equals(this.getEntityId()) == false) return false; if (other.getEntityName() == null ^ this.getEntityName() == null) return false; if (other.getEntityName() != null && other.getEntityName().equals(this.getEntityName()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getParentEntityId() == null ^ this.getParentEntityId() == null) return false; if (other.getParentEntityId() != null && other.getParentEntityId().equals(this.getParentEntityId()) == 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.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getHasChildEntities() == null ^ this.getHasChildEntities() == null) return false; if (other.getHasChildEntities() != null && other.getHasChildEntities().equals(this.getHasChildEntities()) == false) return false; if (other.getCreationDateTime() == null ^ this.getCreationDateTime() == null) return false; if (other.getCreationDateTime() != null && other.getCreationDateTime().equals(this.getCreationDateTime()) == false) return false; if (other.getUpdateDateTime() == null ^ this.getUpdateDateTime() == null) return false; if (other.getUpdateDateTime() != null && other.getUpdateDateTime().equals(this.getUpdateDateTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getEntityId() == null) ? 0 : getEntityId().hashCode()); hashCode = prime * hashCode + ((getEntityName() == null) ? 0 : getEntityName().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getParentEntityId() == null) ? 0 : getParentEntityId().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getHasChildEntities() == null) ? 0 : getHasChildEntities().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getUpdateDateTime() == null) ? 0 : getUpdateDateTime().hashCode()); return hashCode; } @Override public EntitySummary clone() { try { return (EntitySummary) 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.iottwinmaker.model.transform.EntitySummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy