/* * 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.iottwinmaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateEntityRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the workspace that contains the entity. *
*/ private String workspaceId; /** ** The ID of the entity. *
*/ private String entityId; /** ** The name of the entity. *
*/ private String entityName; /** ** The description of the entity. *
*/ private String description; /** ** An object that maps strings to the components in the entity. Each string in the mapping must be unique to this * object. *
*/ private java.util.Map* The ID of the entity's parent entity. *
*/ private String parentEntityId; /** ** Metadata that you can use to manage the entity. *
*/ private java.util.Map* The ID of the workspace that contains the entity. *
* * @param workspaceId * The ID of the workspace that contains the entity. */ public void setWorkspaceId(String workspaceId) { this.workspaceId = workspaceId; } /** ** The ID of the workspace that contains the entity. *
* * @return The ID of the workspace that contains the entity. */ public String getWorkspaceId() { return this.workspaceId; } /** ** The ID of the workspace that contains the entity. *
* * @param workspaceId * The ID of the workspace that contains the entity. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEntityRequest withWorkspaceId(String workspaceId) { setWorkspaceId(workspaceId); return this; } /** ** 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 CreateEntityRequest 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 CreateEntityRequest withEntityName(String entityName) { setEntityName(entityName); 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 CreateEntityRequest withDescription(String description) { setDescription(description); return this; } /** ** An object that maps strings to the components in the entity. Each string in the mapping must be unique to this * object. *
* * @return An object that maps strings to the components in the entity. Each string in the mapping must be unique to * this object. */ public java.util.Map* An object that maps strings to the components in the entity. Each string in the mapping must be unique to this * object. *
* * @param components * An object that maps strings to the components in the entity. Each string in the mapping must be unique to * this object. */ public void setComponents(java.util.Map* An object that maps strings to the components in the entity. Each string in the mapping must be unique to this * object. *
* * @param components * An object that maps strings to the components in the entity. Each string in the mapping must be unique to * this object. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEntityRequest withComponents(java.util.Map* The ID of the entity's parent entity. *
* * @param parentEntityId * The ID of the entity's parent entity. */ public void setParentEntityId(String parentEntityId) { this.parentEntityId = parentEntityId; } /** ** The ID of the entity's parent entity. *
* * @return The ID of the entity's parent entity. */ public String getParentEntityId() { return this.parentEntityId; } /** ** The ID of the entity's parent entity. *
* * @param parentEntityId * The ID of the entity's parent entity. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEntityRequest withParentEntityId(String parentEntityId) { setParentEntityId(parentEntityId); return this; } /** ** Metadata that you can use to manage the entity. *
* * @return Metadata that you can use to manage the entity. */ public java.util.Map* Metadata that you can use to manage the entity. *
* * @param tags * Metadata that you can use to manage the entity. */ public void setTags(java.util.Map* Metadata that you can use to manage the entity. *
* * @param tags * Metadata that you can use to manage the entity. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEntityRequest withTags(java.util.Map