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

com.amazonaws.services.resourcegroups.model.GroupResourcesResult 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 GroupResourcesResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {

    /**
     * 

* A list of ARNs of the resources that this operation successfully added to the group. *

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

* A list of ARNs of any resources that this operation failed to add to the group. *

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

* A list of ARNs of any resources that this operation is still in the process adding to the group. These pending * additions continue asynchronously. You can check the status of pending additions by using the * ListGroupResources operation, and checking the Resources array in the response * and the Status field of each object in that array. *

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

* A list of ARNs of the resources that this operation successfully added to the group. *

* * @return A list of ARNs of the resources that this operation successfully added to the group. */ public java.util.List getSucceeded() { return succeeded; } /** *

* A list of ARNs of the resources that this operation successfully added to the group. *

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

* A list of ARNs of the resources that this operation successfully added to the group. *

*

* 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 ARNs of the resources that this operation successfully added to the group. * @return Returns a reference to this object so that method calls can be chained together. */ public GroupResourcesResult 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 ARNs of the resources that this operation successfully added to the group. *

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

* A list of ARNs of any resources that this operation failed to add to the group. *

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

* A list of ARNs of any resources that this operation failed to add to the group. *

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

* A list of ARNs of any resources that this operation failed to add to the group. *

*

* 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 ARNs of any resources that this operation failed to add to the group. * @return Returns a reference to this object so that method calls can be chained together. */ public GroupResourcesResult 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 ARNs of any resources that this operation failed to add to the group. *

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

* A list of ARNs of any resources that this operation is still in the process adding to the group. These pending * additions continue asynchronously. You can check the status of pending additions by using the * ListGroupResources operation, and checking the Resources array in the response * and the Status field of each object in that array. *

* * @return A list of ARNs of any resources that this operation is still in the process adding to the group. These * pending additions continue asynchronously. You can check the status of pending additions by using the * ListGroupResources operation, and checking the Resources array in the * response and the Status field of each object in that array. */ public java.util.List getPending() { return pending; } /** *

* A list of ARNs of any resources that this operation is still in the process adding to the group. These pending * additions continue asynchronously. You can check the status of pending additions by using the * ListGroupResources operation, and checking the Resources array in the response * and the Status field of each object in that array. *

* * @param pending * A list of ARNs of any resources that this operation is still in the process adding to the group. These * pending additions continue asynchronously. You can check the status of pending additions by using the * ListGroupResources operation, and checking the Resources array in the * response and the Status field of each object in that array. */ public void setPending(java.util.Collection pending) { if (pending == null) { this.pending = null; return; } this.pending = new java.util.ArrayList(pending); } /** *

* A list of ARNs of any resources that this operation is still in the process adding to the group. These pending * additions continue asynchronously. You can check the status of pending additions by using the * ListGroupResources operation, and checking the Resources array in the response * and the Status field of each object in that array. *

*

* 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 ARNs of any resources that this operation is still in the process adding to the group. These * pending additions continue asynchronously. You can check the status of pending additions by using the * ListGroupResources operation, and checking the Resources array in the * response and the Status field of each object in that array. * @return Returns a reference to this object so that method calls can be chained together. */ public GroupResourcesResult 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 ARNs of any resources that this operation is still in the process adding to the group. These pending * additions continue asynchronously. You can check the status of pending additions by using the * ListGroupResources operation, and checking the Resources array in the response * and the Status field of each object in that array. *

* * @param pending * A list of ARNs of any resources that this operation is still in the process adding to the group. These * pending additions continue asynchronously. You can check the status of pending additions by using the * ListGroupResources operation, and checking the Resources array in the * response and the Status field of each object in that array. * @return Returns a reference to this object so that method calls can be chained together. */ public GroupResourcesResult 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 GroupResourcesResult == false) return false; GroupResourcesResult other = (GroupResourcesResult) 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 GroupResourcesResult clone() { try { return (GroupResourcesResult) 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