com.amazonaws.services.cognitoidentity.model.DeleteIdentitiesResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-cognitoidentity Show documentation
/*
* 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.cognitoidentity.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* Returned in response to a successful DeleteIdentities
operation.
*
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DeleteIdentitiesResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.
*
*/
private java.util.List unprocessedIdentityIds;
/**
*
* An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.
*
*
* @return An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.
*/
public java.util.List getUnprocessedIdentityIds() {
return unprocessedIdentityIds;
}
/**
*
* An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.
*
*
* @param unprocessedIdentityIds
* An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.
*/
public void setUnprocessedIdentityIds(java.util.Collection unprocessedIdentityIds) {
if (unprocessedIdentityIds == null) {
this.unprocessedIdentityIds = null;
return;
}
this.unprocessedIdentityIds = new java.util.ArrayList(unprocessedIdentityIds);
}
/**
*
* An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setUnprocessedIdentityIds(java.util.Collection)} or
* {@link #withUnprocessedIdentityIds(java.util.Collection)} if you want to override the existing values.
*
*
* @param unprocessedIdentityIds
* An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteIdentitiesResult withUnprocessedIdentityIds(UnprocessedIdentityId... unprocessedIdentityIds) {
if (this.unprocessedIdentityIds == null) {
setUnprocessedIdentityIds(new java.util.ArrayList(unprocessedIdentityIds.length));
}
for (UnprocessedIdentityId ele : unprocessedIdentityIds) {
this.unprocessedIdentityIds.add(ele);
}
return this;
}
/**
*
* An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.
*
*
* @param unprocessedIdentityIds
* An array of UnprocessedIdentityId objects, each of which contains an ErrorCode and IdentityId.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DeleteIdentitiesResult withUnprocessedIdentityIds(java.util.Collection unprocessedIdentityIds) {
setUnprocessedIdentityIds(unprocessedIdentityIds);
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 (getUnprocessedIdentityIds() != null)
sb.append("UnprocessedIdentityIds: ").append(getUnprocessedIdentityIds());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DeleteIdentitiesResult == false)
return false;
DeleteIdentitiesResult other = (DeleteIdentitiesResult) obj;
if (other.getUnprocessedIdentityIds() == null ^ this.getUnprocessedIdentityIds() == null)
return false;
if (other.getUnprocessedIdentityIds() != null && other.getUnprocessedIdentityIds().equals(this.getUnprocessedIdentityIds()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getUnprocessedIdentityIds() == null) ? 0 : getUnprocessedIdentityIds().hashCode());
return hashCode;
}
@Override
public DeleteIdentitiesResult clone() {
try {
return (DeleteIdentitiesResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}