com.amazonaws.services.robomaker.model.BatchDeleteWorldsRequest Maven / Gradle / Ivy
/*
* 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 BatchDeleteWorldsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* A list of Amazon Resource Names (arns) that correspond to worlds to delete.
*
*/
private java.util.List worlds;
/**
*
* A list of Amazon Resource Names (arns) that correspond to worlds to delete.
*
*
* @return A list of Amazon Resource Names (arns) that correspond to worlds to delete.
*/
public java.util.List getWorlds() {
return worlds;
}
/**
*
* A list of Amazon Resource Names (arns) that correspond to worlds to delete.
*
*
* @param worlds
* A list of Amazon Resource Names (arns) that correspond to worlds to delete.
*/
public void setWorlds(java.util.Collection worlds) {
if (worlds == null) {
this.worlds = null;
return;
}
this.worlds = new java.util.ArrayList(worlds);
}
/**
*
* A list of Amazon Resource Names (arns) that correspond to worlds to delete.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setWorlds(java.util.Collection)} or {@link #withWorlds(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param worlds
* A list of Amazon Resource Names (arns) that correspond to worlds to delete.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchDeleteWorldsRequest withWorlds(String... worlds) {
if (this.worlds == null) {
setWorlds(new java.util.ArrayList(worlds.length));
}
for (String ele : worlds) {
this.worlds.add(ele);
}
return this;
}
/**
*
* A list of Amazon Resource Names (arns) that correspond to worlds to delete.
*
*
* @param worlds
* A list of Amazon Resource Names (arns) that correspond to worlds to delete.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public BatchDeleteWorldsRequest withWorlds(java.util.Collection worlds) {
setWorlds(worlds);
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 (getWorlds() != null)
sb.append("Worlds: ").append(getWorlds());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof BatchDeleteWorldsRequest == false)
return false;
BatchDeleteWorldsRequest other = (BatchDeleteWorldsRequest) obj;
if (other.getWorlds() == null ^ this.getWorlds() == null)
return false;
if (other.getWorlds() != null && other.getWorlds().equals(this.getWorlds()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getWorlds() == null) ? 0 : getWorlds().hashCode());
return hashCode;
}
@Override
public BatchDeleteWorldsRequest clone() {
return (BatchDeleteWorldsRequest) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy