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

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

    /**
     * 

* An array of resources from which you can determine each resource's identity, type, and group membership status. *

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

* Deprecated - don't use this parameter. Use the Resources response field instead. *

*
*/ @Deprecated private java.util.List resourceIdentifiers; /** *

* If present, indicates that more output is available than is included in the current response. Use this value in * the NextToken request parameter in a subsequent call to the operation to get the next part of the * output. You should repeat this until the NextToken response element comes back as null. *

*/ private String nextToken; /** *

* A list of QueryError objects. Each error contains an ErrorCode and Message * . Possible values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE, * CLOUDFORMATION_STACK_NOT_EXISTING, CLOUDFORMATION_STACK_UNASSUMABLE_ROLE and * RESOURCE_TYPE_NOT_SUPPORTED. *

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

* An array of resources from which you can determine each resource's identity, type, and group membership status. *

* * @return An array of resources from which you can determine each resource's identity, type, and group membership * status. */ public java.util.List getResources() { return resources; } /** *

* An array of resources from which you can determine each resource's identity, type, and group membership status. *

* * @param resources * An array of resources from which you can determine each resource's identity, type, and group membership * status. */ public void setResources(java.util.Collection resources) { if (resources == null) { this.resources = null; return; } this.resources = new java.util.ArrayList(resources); } /** *

* An array of resources from which you can determine each resource's identity, type, and group membership status. *

*

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

* * @param resources * An array of resources from which you can determine each resource's identity, type, and group membership * status. * @return Returns a reference to this object so that method calls can be chained together. */ public ListGroupResourcesResult withResources(ListGroupResourcesItem... resources) { if (this.resources == null) { setResources(new java.util.ArrayList(resources.length)); } for (ListGroupResourcesItem ele : resources) { this.resources.add(ele); } return this; } /** *

* An array of resources from which you can determine each resource's identity, type, and group membership status. *

* * @param resources * An array of resources from which you can determine each resource's identity, type, and group membership * status. * @return Returns a reference to this object so that method calls can be chained together. */ public ListGroupResourcesResult withResources(java.util.Collection resources) { setResources(resources); return this; } /** * *

* Deprecated - don't use this parameter. Use the Resources response field instead. *

*
* * @return

* Deprecated - don't use this parameter. Use the Resources response field instead. * *

*/ @Deprecated public java.util.List getResourceIdentifiers() { return resourceIdentifiers; } /** * *

* Deprecated - don't use this parameter. Use the Resources response field instead. *

*
* * @param resourceIdentifiers *

* Deprecated - don't use this parameter. Use the Resources response field instead. * *

*/ @Deprecated public void setResourceIdentifiers(java.util.Collection resourceIdentifiers) { if (resourceIdentifiers == null) { this.resourceIdentifiers = null; return; } this.resourceIdentifiers = new java.util.ArrayList(resourceIdentifiers); } /** * *

* Deprecated - don't use this parameter. Use the Resources response field instead. *

*
*

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

* * @param resourceIdentifiers *

* Deprecated - don't use this parameter. Use the Resources response field instead. * *

* @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public ListGroupResourcesResult withResourceIdentifiers(ResourceIdentifier... resourceIdentifiers) { if (this.resourceIdentifiers == null) { setResourceIdentifiers(new java.util.ArrayList(resourceIdentifiers.length)); } for (ResourceIdentifier ele : resourceIdentifiers) { this.resourceIdentifiers.add(ele); } return this; } /** * *

* Deprecated - don't use this parameter. Use the Resources response field instead. *

*
* * @param resourceIdentifiers *

* Deprecated - don't use this parameter. Use the Resources response field instead. * *

* @return Returns a reference to this object so that method calls can be chained together. */ @Deprecated public ListGroupResourcesResult withResourceIdentifiers(java.util.Collection resourceIdentifiers) { setResourceIdentifiers(resourceIdentifiers); return this; } /** *

* If present, indicates that more output is available than is included in the current response. Use this value in * the NextToken request parameter in a subsequent call to the operation to get the next part of the * output. You should repeat this until the NextToken response element comes back as null. *

* * @param nextToken * If present, indicates that more output is available than is included in the current response. Use this * value in the NextToken request parameter in a subsequent call to the operation to get the * next part of the output. You should repeat this until the NextToken response element comes * back as null. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* If present, indicates that more output is available than is included in the current response. Use this value in * the NextToken request parameter in a subsequent call to the operation to get the next part of the * output. You should repeat this until the NextToken response element comes back as null. *

* * @return If present, indicates that more output is available than is included in the current response. Use this * value in the NextToken request parameter in a subsequent call to the operation to get the * next part of the output. You should repeat this until the NextToken response element comes * back as null. */ public String getNextToken() { return this.nextToken; } /** *

* If present, indicates that more output is available than is included in the current response. Use this value in * the NextToken request parameter in a subsequent call to the operation to get the next part of the * output. You should repeat this until the NextToken response element comes back as null. *

* * @param nextToken * If present, indicates that more output is available than is included in the current response. Use this * value in the NextToken request parameter in a subsequent call to the operation to get the * next part of the output. You should repeat this until the NextToken response element comes * back as null. * @return Returns a reference to this object so that method calls can be chained together. */ public ListGroupResourcesResult withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* A list of QueryError objects. Each error contains an ErrorCode and Message * . Possible values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE, * CLOUDFORMATION_STACK_NOT_EXISTING, CLOUDFORMATION_STACK_UNASSUMABLE_ROLE and * RESOURCE_TYPE_NOT_SUPPORTED. *

* * @return A list of QueryError objects. Each error contains an ErrorCode and * Message. Possible values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE, * CLOUDFORMATION_STACK_NOT_EXISTING, CLOUDFORMATION_STACK_UNASSUMABLE_ROLE and * RESOURCE_TYPE_NOT_SUPPORTED. */ public java.util.List getQueryErrors() { return queryErrors; } /** *

* A list of QueryError objects. Each error contains an ErrorCode and Message * . Possible values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE, * CLOUDFORMATION_STACK_NOT_EXISTING, CLOUDFORMATION_STACK_UNASSUMABLE_ROLE and * RESOURCE_TYPE_NOT_SUPPORTED. *

* * @param queryErrors * A list of QueryError objects. Each error contains an ErrorCode and * Message. Possible values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE, * CLOUDFORMATION_STACK_NOT_EXISTING, CLOUDFORMATION_STACK_UNASSUMABLE_ROLE and * RESOURCE_TYPE_NOT_SUPPORTED. */ public void setQueryErrors(java.util.Collection queryErrors) { if (queryErrors == null) { this.queryErrors = null; return; } this.queryErrors = new java.util.ArrayList(queryErrors); } /** *

* A list of QueryError objects. Each error contains an ErrorCode and Message * . Possible values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE, * CLOUDFORMATION_STACK_NOT_EXISTING, CLOUDFORMATION_STACK_UNASSUMABLE_ROLE and * RESOURCE_TYPE_NOT_SUPPORTED. *

*

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

* * @param queryErrors * A list of QueryError objects. Each error contains an ErrorCode and * Message. Possible values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE, * CLOUDFORMATION_STACK_NOT_EXISTING, CLOUDFORMATION_STACK_UNASSUMABLE_ROLE and * RESOURCE_TYPE_NOT_SUPPORTED. * @return Returns a reference to this object so that method calls can be chained together. */ public ListGroupResourcesResult withQueryErrors(QueryError... queryErrors) { if (this.queryErrors == null) { setQueryErrors(new java.util.ArrayList(queryErrors.length)); } for (QueryError ele : queryErrors) { this.queryErrors.add(ele); } return this; } /** *

* A list of QueryError objects. Each error contains an ErrorCode and Message * . Possible values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE, * CLOUDFORMATION_STACK_NOT_EXISTING, CLOUDFORMATION_STACK_UNASSUMABLE_ROLE and * RESOURCE_TYPE_NOT_SUPPORTED. *

* * @param queryErrors * A list of QueryError objects. Each error contains an ErrorCode and * Message. Possible values for ErrorCode are CLOUDFORMATION_STACK_INACTIVE, * CLOUDFORMATION_STACK_NOT_EXISTING, CLOUDFORMATION_STACK_UNASSUMABLE_ROLE and * RESOURCE_TYPE_NOT_SUPPORTED. * @return Returns a reference to this object so that method calls can be chained together. */ public ListGroupResourcesResult withQueryErrors(java.util.Collection queryErrors) { setQueryErrors(queryErrors); 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 (getResources() != null) sb.append("Resources: ").append(getResources()).append(","); if (getResourceIdentifiers() != null) sb.append("ResourceIdentifiers: ").append(getResourceIdentifiers()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getQueryErrors() != null) sb.append("QueryErrors: ").append(getQueryErrors()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListGroupResourcesResult == false) return false; ListGroupResourcesResult other = (ListGroupResourcesResult) obj; if (other.getResources() == null ^ this.getResources() == null) return false; if (other.getResources() != null && other.getResources().equals(this.getResources()) == false) return false; if (other.getResourceIdentifiers() == null ^ this.getResourceIdentifiers() == null) return false; if (other.getResourceIdentifiers() != null && other.getResourceIdentifiers().equals(this.getResourceIdentifiers()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getQueryErrors() == null ^ this.getQueryErrors() == null) return false; if (other.getQueryErrors() != null && other.getQueryErrors().equals(this.getQueryErrors()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getResources() == null) ? 0 : getResources().hashCode()); hashCode = prime * hashCode + ((getResourceIdentifiers() == null) ? 0 : getResourceIdentifiers().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getQueryErrors() == null) ? 0 : getQueryErrors().hashCode()); return hashCode; } @Override public ListGroupResourcesResult clone() { try { return (ListGroupResourcesResult) 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