com.amazonaws.services.iottwinmaker.model.SceneSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-iottwinmaker Show documentation
/*
* Copyright 2017-2022 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 a scene.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class SceneSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* The ARN of the scene.
*
*/
private String arn;
/**
*
* The relative path that specifies the location of the content definition file.
*
*/
private String contentLocation;
/**
*
* The date and time when the scene was created.
*
*/
private java.util.Date creationDateTime;
/**
*
* The scene description.
*
*/
private String description;
/**
*
* The ID of the scene.
*
*/
private String sceneId;
/**
*
* The date and time when the scene was last updated.
*
*/
private java.util.Date updateDateTime;
/**
*
* The ARN of the scene.
*
*
* @param arn
* The ARN of the scene.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The ARN of the scene.
*
*
* @return The ARN of the scene.
*/
public String getArn() {
return this.arn;
}
/**
*
* The ARN of the scene.
*
*
* @param arn
* The ARN of the scene.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SceneSummary withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The relative path that specifies the location of the content definition file.
*
*
* @param contentLocation
* The relative path that specifies the location of the content definition file.
*/
public void setContentLocation(String contentLocation) {
this.contentLocation = contentLocation;
}
/**
*
* The relative path that specifies the location of the content definition file.
*
*
* @return The relative path that specifies the location of the content definition file.
*/
public String getContentLocation() {
return this.contentLocation;
}
/**
*
* The relative path that specifies the location of the content definition file.
*
*
* @param contentLocation
* The relative path that specifies the location of the content definition file.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SceneSummary withContentLocation(String contentLocation) {
setContentLocation(contentLocation);
return this;
}
/**
*
* The date and time when the scene was created.
*
*
* @param creationDateTime
* The date and time when the scene was created.
*/
public void setCreationDateTime(java.util.Date creationDateTime) {
this.creationDateTime = creationDateTime;
}
/**
*
* The date and time when the scene was created.
*
*
* @return The date and time when the scene was created.
*/
public java.util.Date getCreationDateTime() {
return this.creationDateTime;
}
/**
*
* The date and time when the scene was created.
*
*
* @param creationDateTime
* The date and time when the scene was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SceneSummary withCreationDateTime(java.util.Date creationDateTime) {
setCreationDateTime(creationDateTime);
return this;
}
/**
*
* The scene description.
*
*
* @param description
* The scene description.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The scene description.
*
*
* @return The scene description.
*/
public String getDescription() {
return this.description;
}
/**
*
* The scene description.
*
*
* @param description
* The scene description.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SceneSummary withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The ID of the scene.
*
*
* @param sceneId
* The ID of the scene.
*/
public void setSceneId(String sceneId) {
this.sceneId = sceneId;
}
/**
*
* The ID of the scene.
*
*
* @return The ID of the scene.
*/
public String getSceneId() {
return this.sceneId;
}
/**
*
* The ID of the scene.
*
*
* @param sceneId
* The ID of the scene.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SceneSummary withSceneId(String sceneId) {
setSceneId(sceneId);
return this;
}
/**
*
* The date and time when the scene was last updated.
*
*
* @param updateDateTime
* The date and time when the scene was last updated.
*/
public void setUpdateDateTime(java.util.Date updateDateTime) {
this.updateDateTime = updateDateTime;
}
/**
*
* The date and time when the scene was last updated.
*
*
* @return The date and time when the scene was last updated.
*/
public java.util.Date getUpdateDateTime() {
return this.updateDateTime;
}
/**
*
* The date and time when the scene was last updated.
*
*
* @param updateDateTime
* The date and time when the scene was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public SceneSummary 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 (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getContentLocation() != null)
sb.append("ContentLocation: ").append(getContentLocation()).append(",");
if (getCreationDateTime() != null)
sb.append("CreationDateTime: ").append(getCreationDateTime()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getSceneId() != null)
sb.append("SceneId: ").append(getSceneId()).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 SceneSummary == false)
return false;
SceneSummary other = (SceneSummary) obj;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getContentLocation() == null ^ this.getContentLocation() == null)
return false;
if (other.getContentLocation() != null && other.getContentLocation().equals(this.getContentLocation()) == 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.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getSceneId() == null ^ this.getSceneId() == null)
return false;
if (other.getSceneId() != null && other.getSceneId().equals(this.getSceneId()) == 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 + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getContentLocation() == null) ? 0 : getContentLocation().hashCode());
hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getSceneId() == null) ? 0 : getSceneId().hashCode());
hashCode = prime * hashCode + ((getUpdateDateTime() == null) ? 0 : getUpdateDateTime().hashCode());
return hashCode;
}
@Override
public SceneSummary clone() {
try {
return (SceneSummary) 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.SceneSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}