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

com.amazonaws.services.robomaker.model.CreateWorldTemplateRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS RoboMaker module holds the client classes that are used for communicating with AWS RoboMaker 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.robomaker.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 CreateWorldTemplateRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *

*/ private String clientRequestToken; /** *

* The name of the world template. *

*/ private String name; /** *

* The world template body. *

*/ private String templateBody; /** *

* The location of the world template. *

*/ private TemplateLocation templateLocation; /** *

* A map that contains tag keys and tag values that are attached to the world template. *

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

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *

* * @param clientRequestToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. */ public void setClientRequestToken(String clientRequestToken) { this.clientRequestToken = clientRequestToken; } /** *

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *

* * @return Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. */ public String getClientRequestToken() { return this.clientRequestToken; } /** *

* Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. *

* * @param clientRequestToken * Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateWorldTemplateRequest withClientRequestToken(String clientRequestToken) { setClientRequestToken(clientRequestToken); return this; } /** *

* The name of the world template. *

* * @param name * The name of the world template. */ public void setName(String name) { this.name = name; } /** *

* The name of the world template. *

* * @return The name of the world template. */ public String getName() { return this.name; } /** *

* The name of the world template. *

* * @param name * The name of the world template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateWorldTemplateRequest withName(String name) { setName(name); return this; } /** *

* The world template body. *

* * @param templateBody * The world template body. */ public void setTemplateBody(String templateBody) { this.templateBody = templateBody; } /** *

* The world template body. *

* * @return The world template body. */ public String getTemplateBody() { return this.templateBody; } /** *

* The world template body. *

* * @param templateBody * The world template body. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateWorldTemplateRequest withTemplateBody(String templateBody) { setTemplateBody(templateBody); return this; } /** *

* The location of the world template. *

* * @param templateLocation * The location of the world template. */ public void setTemplateLocation(TemplateLocation templateLocation) { this.templateLocation = templateLocation; } /** *

* The location of the world template. *

* * @return The location of the world template. */ public TemplateLocation getTemplateLocation() { return this.templateLocation; } /** *

* The location of the world template. *

* * @param templateLocation * The location of the world template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateWorldTemplateRequest withTemplateLocation(TemplateLocation templateLocation) { setTemplateLocation(templateLocation); return this; } /** *

* A map that contains tag keys and tag values that are attached to the world template. *

* * @return A map that contains tag keys and tag values that are attached to the world template. */ public java.util.Map getTags() { return tags; } /** *

* A map that contains tag keys and tag values that are attached to the world template. *

* * @param tags * A map that contains tag keys and tag values that are attached to the world template. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* A map that contains tag keys and tag values that are attached to the world template. *

* * @param tags * A map that contains tag keys and tag values that are attached to the world template. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateWorldTemplateRequest withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see CreateWorldTemplateRequest#withTags * @returns a reference to this object so that method calls can be chained together. */ public CreateWorldTemplateRequest addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public CreateWorldTemplateRequest clearTagsEntries() { this.tags = null; 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 (getClientRequestToken() != null) sb.append("ClientRequestToken: ").append(getClientRequestToken()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getTemplateBody() != null) sb.append("TemplateBody: ").append(getTemplateBody()).append(","); if (getTemplateLocation() != null) sb.append("TemplateLocation: ").append(getTemplateLocation()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateWorldTemplateRequest == false) return false; CreateWorldTemplateRequest other = (CreateWorldTemplateRequest) obj; if (other.getClientRequestToken() == null ^ this.getClientRequestToken() == null) return false; if (other.getClientRequestToken() != null && other.getClientRequestToken().equals(this.getClientRequestToken()) == 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.getTemplateBody() == null ^ this.getTemplateBody() == null) return false; if (other.getTemplateBody() != null && other.getTemplateBody().equals(this.getTemplateBody()) == false) return false; if (other.getTemplateLocation() == null ^ this.getTemplateLocation() == null) return false; if (other.getTemplateLocation() != null && other.getTemplateLocation().equals(this.getTemplateLocation()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClientRequestToken() == null) ? 0 : getClientRequestToken().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getTemplateBody() == null) ? 0 : getTemplateBody().hashCode()); hashCode = prime * hashCode + ((getTemplateLocation() == null) ? 0 : getTemplateLocation().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateWorldTemplateRequest clone() { return (CreateWorldTemplateRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy