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

com.amazonaws.services.resourcegroups.model.UngroupResourcesResult Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Resource Groups module holds the client classes that are used for communicating with AWS Resource Groups Service

There is a newer version: 1.12.780
Show 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.resourcegroups.model;

import java.io.Serializable;
import javax.annotation.Generated;

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

    /**
     * 

* A list of resources that were successfully removed from the group by this operation. *

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

* A list of any resources that failed to be removed from the group by this operation. *

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

* A list of any resources that are still in the process of being removed from the group by this operation. These * pending removals continue asynchronously. You can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully removed, it no longer * appears in the response. *

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

* A list of resources that were successfully removed from the group by this operation. *

* * @return A list of resources that were successfully removed from the group by this operation. */ public java.util.List getSucceeded() { return succeeded; } /** *

* A list of resources that were successfully removed from the group by this operation. *

* * @param succeeded * A list of resources that were successfully removed from the group by this operation. */ public void setSucceeded(java.util.Collection succeeded) { if (succeeded == null) { this.succeeded = null; return; } this.succeeded = new java.util.ArrayList(succeeded); } /** *

* A list of resources that were successfully removed from the group by this operation. *

*

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

* * @param succeeded * A list of resources that were successfully removed from the group by this operation. * @return Returns a reference to this object so that method calls can be chained together. */ public UngroupResourcesResult withSucceeded(String... succeeded) { if (this.succeeded == null) { setSucceeded(new java.util.ArrayList(succeeded.length)); } for (String ele : succeeded) { this.succeeded.add(ele); } return this; } /** *

* A list of resources that were successfully removed from the group by this operation. *

* * @param succeeded * A list of resources that were successfully removed from the group by this operation. * @return Returns a reference to this object so that method calls can be chained together. */ public UngroupResourcesResult withSucceeded(java.util.Collection succeeded) { setSucceeded(succeeded); return this; } /** *

* A list of any resources that failed to be removed from the group by this operation. *

* * @return A list of any resources that failed to be removed from the group by this operation. */ public java.util.List getFailed() { return failed; } /** *

* A list of any resources that failed to be removed from the group by this operation. *

* * @param failed * A list of any resources that failed to be removed from the group by this operation. */ public void setFailed(java.util.Collection failed) { if (failed == null) { this.failed = null; return; } this.failed = new java.util.ArrayList(failed); } /** *

* A list of any resources that failed to be removed from the group by this operation. *

*

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

* * @param failed * A list of any resources that failed to be removed from the group by this operation. * @return Returns a reference to this object so that method calls can be chained together. */ public UngroupResourcesResult withFailed(FailedResource... failed) { if (this.failed == null) { setFailed(new java.util.ArrayList(failed.length)); } for (FailedResource ele : failed) { this.failed.add(ele); } return this; } /** *

* A list of any resources that failed to be removed from the group by this operation. *

* * @param failed * A list of any resources that failed to be removed from the group by this operation. * @return Returns a reference to this object so that method calls can be chained together. */ public UngroupResourcesResult withFailed(java.util.Collection failed) { setFailed(failed); return this; } /** *

* A list of any resources that are still in the process of being removed from the group by this operation. These * pending removals continue asynchronously. You can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully removed, it no longer * appears in the response. *

* * @return A list of any resources that are still in the process of being removed from the group by this operation. * These pending removals continue asynchronously. You can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully removed, it no * longer appears in the response. */ public java.util.List getPending() { return pending; } /** *

* A list of any resources that are still in the process of being removed from the group by this operation. These * pending removals continue asynchronously. You can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully removed, it no longer * appears in the response. *

* * @param pending * A list of any resources that are still in the process of being removed from the group by this operation. * These pending removals continue asynchronously. You can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully removed, it no * longer appears in the response. */ public void setPending(java.util.Collection pending) { if (pending == null) { this.pending = null; return; } this.pending = new java.util.ArrayList(pending); } /** *

* A list of any resources that are still in the process of being removed from the group by this operation. These * pending removals continue asynchronously. You can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully removed, it no longer * appears in the response. *

*

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

* * @param pending * A list of any resources that are still in the process of being removed from the group by this operation. * These pending removals continue asynchronously. You can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully removed, it no * longer appears in the response. * @return Returns a reference to this object so that method calls can be chained together. */ public UngroupResourcesResult withPending(PendingResource... pending) { if (this.pending == null) { setPending(new java.util.ArrayList(pending.length)); } for (PendingResource ele : pending) { this.pending.add(ele); } return this; } /** *

* A list of any resources that are still in the process of being removed from the group by this operation. These * pending removals continue asynchronously. You can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully removed, it no longer * appears in the response. *

* * @param pending * A list of any resources that are still in the process of being removed from the group by this operation. * These pending removals continue asynchronously. You can check the status of pending removals by using the * ListGroupResources operation. After the resource is successfully removed, it no * longer appears in the response. * @return Returns a reference to this object so that method calls can be chained together. */ public UngroupResourcesResult withPending(java.util.Collection pending) { setPending(pending); 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 (getSucceeded() != null) sb.append("Succeeded: ").append(getSucceeded()).append(","); if (getFailed() != null) sb.append("Failed: ").append(getFailed()).append(","); if (getPending() != null) sb.append("Pending: ").append(getPending()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UngroupResourcesResult == false) return false; UngroupResourcesResult other = (UngroupResourcesResult) obj; if (other.getSucceeded() == null ^ this.getSucceeded() == null) return false; if (other.getSucceeded() != null && other.getSucceeded().equals(this.getSucceeded()) == false) return false; if (other.getFailed() == null ^ this.getFailed() == null) return false; if (other.getFailed() != null && other.getFailed().equals(this.getFailed()) == false) return false; if (other.getPending() == null ^ this.getPending() == null) return false; if (other.getPending() != null && other.getPending().equals(this.getPending()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getSucceeded() == null) ? 0 : getSucceeded().hashCode()); hashCode = prime * hashCode + ((getFailed() == null) ? 0 : getFailed().hashCode()); hashCode = prime * hashCode + ((getPending() == null) ? 0 : getPending().hashCode()); return hashCode; } @Override public UngroupResourcesResult clone() { try { return (UngroupResourcesResult) 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