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

com.amazonaws.services.iottwinmaker.model.GetSceneResult 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

The 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;

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

    /**
     * 

* The ID of the workspace that contains the scene. *

*/ private String workspaceId; /** *

* The ID of the scene. *

*/ private String sceneId; /** *

* The relative path that specifies the location of the content definition file. *

*/ private String contentLocation; /** *

* The ARN of the scene. *

*/ private String arn; /** *

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

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

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

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

* The description of the scene. *

*/ private String description; /** *

* A list of capabilities that the scene uses to render. *

*/ private java.util.List capabilities; /** *

* The response metadata. *

*/ private java.util.Map sceneMetadata; /** *

* The generated scene metadata. *

*/ private java.util.Map generatedSceneMetadata; /** *

* The SceneResponse error. *

*/ private SceneError error; /** *

* The ID of the workspace that contains the scene. *

* * @param workspaceId * The ID of the workspace that contains the scene. */ public void setWorkspaceId(String workspaceId) { this.workspaceId = workspaceId; } /** *

* The ID of the workspace that contains the scene. *

* * @return The ID of the workspace that contains the scene. */ public String getWorkspaceId() { return this.workspaceId; } /** *

* The ID of the workspace that contains the scene. *

* * @param workspaceId * The ID of the workspace that contains the scene. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSceneResult withWorkspaceId(String workspaceId) { setWorkspaceId(workspaceId); 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 GetSceneResult withSceneId(String sceneId) { setSceneId(sceneId); 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 GetSceneResult withContentLocation(String contentLocation) { setContentLocation(contentLocation); return this; } /** *

* 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 GetSceneResult withArn(String arn) { setArn(arn); 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 GetSceneResult withCreationDateTime(java.util.Date creationDateTime) { setCreationDateTime(creationDateTime); 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 GetSceneResult withUpdateDateTime(java.util.Date updateDateTime) { setUpdateDateTime(updateDateTime); return this; } /** *

* The description of the scene. *

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

* The description of the scene. *

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

* The description of the scene. *

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

* A list of capabilities that the scene uses to render. *

* * @return A list of capabilities that the scene uses to render. */ public java.util.List getCapabilities() { return capabilities; } /** *

* A list of capabilities that the scene uses to render. *

* * @param capabilities * A list of capabilities that the scene uses to render. */ public void setCapabilities(java.util.Collection capabilities) { if (capabilities == null) { this.capabilities = null; return; } this.capabilities = new java.util.ArrayList(capabilities); } /** *

* A list of capabilities that the scene uses to render. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setCapabilities(java.util.Collection)} or {@link #withCapabilities(java.util.Collection)} if you want to * override the existing values. *

* * @param capabilities * A list of capabilities that the scene uses to render. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSceneResult withCapabilities(String... capabilities) { if (this.capabilities == null) { setCapabilities(new java.util.ArrayList(capabilities.length)); } for (String ele : capabilities) { this.capabilities.add(ele); } return this; } /** *

* A list of capabilities that the scene uses to render. *

* * @param capabilities * A list of capabilities that the scene uses to render. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSceneResult withCapabilities(java.util.Collection capabilities) { setCapabilities(capabilities); return this; } /** *

* The response metadata. *

* * @return The response metadata. */ public java.util.Map getSceneMetadata() { return sceneMetadata; } /** *

* The response metadata. *

* * @param sceneMetadata * The response metadata. */ public void setSceneMetadata(java.util.Map sceneMetadata) { this.sceneMetadata = sceneMetadata; } /** *

* The response metadata. *

* * @param sceneMetadata * The response metadata. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSceneResult withSceneMetadata(java.util.Map sceneMetadata) { setSceneMetadata(sceneMetadata); return this; } /** * Add a single SceneMetadata entry * * @see GetSceneResult#withSceneMetadata * @returns a reference to this object so that method calls can be chained together. */ public GetSceneResult addSceneMetadataEntry(String key, String value) { if (null == this.sceneMetadata) { this.sceneMetadata = new java.util.HashMap(); } if (this.sceneMetadata.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.sceneMetadata.put(key, value); return this; } /** * Removes all the entries added into SceneMetadata. * * @return Returns a reference to this object so that method calls can be chained together. */ public GetSceneResult clearSceneMetadataEntries() { this.sceneMetadata = null; return this; } /** *

* The generated scene metadata. *

* * @return The generated scene metadata. */ public java.util.Map getGeneratedSceneMetadata() { return generatedSceneMetadata; } /** *

* The generated scene metadata. *

* * @param generatedSceneMetadata * The generated scene metadata. */ public void setGeneratedSceneMetadata(java.util.Map generatedSceneMetadata) { this.generatedSceneMetadata = generatedSceneMetadata; } /** *

* The generated scene metadata. *

* * @param generatedSceneMetadata * The generated scene metadata. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSceneResult withGeneratedSceneMetadata(java.util.Map generatedSceneMetadata) { setGeneratedSceneMetadata(generatedSceneMetadata); return this; } /** * Add a single GeneratedSceneMetadata entry * * @see GetSceneResult#withGeneratedSceneMetadata * @returns a reference to this object so that method calls can be chained together. */ public GetSceneResult addGeneratedSceneMetadataEntry(String key, String value) { if (null == this.generatedSceneMetadata) { this.generatedSceneMetadata = new java.util.HashMap(); } if (this.generatedSceneMetadata.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.generatedSceneMetadata.put(key, value); return this; } /** * Removes all the entries added into GeneratedSceneMetadata. * * @return Returns a reference to this object so that method calls can be chained together. */ public GetSceneResult clearGeneratedSceneMetadataEntries() { this.generatedSceneMetadata = null; return this; } /** *

* The SceneResponse error. *

* * @param error * The SceneResponse error. */ public void setError(SceneError error) { this.error = error; } /** *

* The SceneResponse error. *

* * @return The SceneResponse error. */ public SceneError getError() { return this.error; } /** *

* The SceneResponse error. *

* * @param error * The SceneResponse error. * @return Returns a reference to this object so that method calls can be chained together. */ public GetSceneResult withError(SceneError error) { setError(error); 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 (getWorkspaceId() != null) sb.append("WorkspaceId: ").append(getWorkspaceId()).append(","); if (getSceneId() != null) sb.append("SceneId: ").append(getSceneId()).append(","); if (getContentLocation() != null) sb.append("ContentLocation: ").append(getContentLocation()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getCreationDateTime() != null) sb.append("CreationDateTime: ").append(getCreationDateTime()).append(","); if (getUpdateDateTime() != null) sb.append("UpdateDateTime: ").append(getUpdateDateTime()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getCapabilities() != null) sb.append("Capabilities: ").append(getCapabilities()).append(","); if (getSceneMetadata() != null) sb.append("SceneMetadata: ").append(getSceneMetadata()).append(","); if (getGeneratedSceneMetadata() != null) sb.append("GeneratedSceneMetadata: ").append(getGeneratedSceneMetadata()).append(","); if (getError() != null) sb.append("Error: ").append(getError()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetSceneResult == false) return false; GetSceneResult other = (GetSceneResult) obj; if (other.getWorkspaceId() == null ^ this.getWorkspaceId() == null) return false; if (other.getWorkspaceId() != null && other.getWorkspaceId().equals(this.getWorkspaceId()) == 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.getContentLocation() == null ^ this.getContentLocation() == null) return false; if (other.getContentLocation() != null && other.getContentLocation().equals(this.getContentLocation()) == 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.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; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getCapabilities() == null ^ this.getCapabilities() == null) return false; if (other.getCapabilities() != null && other.getCapabilities().equals(this.getCapabilities()) == false) return false; if (other.getSceneMetadata() == null ^ this.getSceneMetadata() == null) return false; if (other.getSceneMetadata() != null && other.getSceneMetadata().equals(this.getSceneMetadata()) == false) return false; if (other.getGeneratedSceneMetadata() == null ^ this.getGeneratedSceneMetadata() == null) return false; if (other.getGeneratedSceneMetadata() != null && other.getGeneratedSceneMetadata().equals(this.getGeneratedSceneMetadata()) == false) return false; if (other.getError() == null ^ this.getError() == null) return false; if (other.getError() != null && other.getError().equals(this.getError()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getWorkspaceId() == null) ? 0 : getWorkspaceId().hashCode()); hashCode = prime * hashCode + ((getSceneId() == null) ? 0 : getSceneId().hashCode()); hashCode = prime * hashCode + ((getContentLocation() == null) ? 0 : getContentLocation().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getCreationDateTime() == null) ? 0 : getCreationDateTime().hashCode()); hashCode = prime * hashCode + ((getUpdateDateTime() == null) ? 0 : getUpdateDateTime().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getCapabilities() == null) ? 0 : getCapabilities().hashCode()); hashCode = prime * hashCode + ((getSceneMetadata() == null) ? 0 : getSceneMetadata().hashCode()); hashCode = prime * hashCode + ((getGeneratedSceneMetadata() == null) ? 0 : getGeneratedSceneMetadata().hashCode()); hashCode = prime * hashCode + ((getError() == null) ? 0 : getError().hashCode()); return hashCode; } @Override public GetSceneResult clone() { try { return (GetSceneResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy