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

com.amazonaws.services.config.model.ListDiscoveredResourcesRequest Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.11.9
Show newest version
/*
 * Copyright 2010-2016 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.config.model;

import java.io.Serializable;
import com.amazonaws.AmazonWebServiceRequest;

/**
 * 
 */
public class ListDiscoveredResourcesRequest extends AmazonWebServiceRequest
        implements Serializable, Cloneable {

    /**
     * 

* The type of resources that you want AWS Config to list in the response. *

*/ private String resourceType; /** *

* The IDs of only those resources that you want AWS Config to list in the * response. If you do not specify this parameter, AWS Config lists all * resources of the specified type that it has discovered. *

*/ private com.amazonaws.internal.SdkInternalList resourceIds; /** *

* The custom name of only those resources that you want AWS Config to list * in the response. If you do not specify this parameter, AWS Config lists * all resources of the specified type that it has discovered. *

*/ private String resourceName; /** *

* The maximum number of resource identifiers returned on each page. The * default is 100. You cannot specify a limit greater than 100. If you * specify 0, AWS Config uses the default. *

*/ private Integer limit; /** *

* Specifies whether AWS Config includes deleted resources in the results. * By default, deleted resources are not included. *

*/ private Boolean includeDeletedResources; /** *

* The nextToken string returned on a previous page that you * use to get the next page of results in a paginated response. *

*/ private String nextToken; /** *

* The type of resources that you want AWS Config to list in the response. *

* * @param resourceType * The type of resources that you want AWS Config to list in the * response. * @see ResourceType */ public void setResourceType(String resourceType) { this.resourceType = resourceType; } /** *

* The type of resources that you want AWS Config to list in the response. *

* * @return The type of resources that you want AWS Config to list in the * response. * @see ResourceType */ public String getResourceType() { return this.resourceType; } /** *

* The type of resources that you want AWS Config to list in the response. *

* * @param resourceType * The type of resources that you want AWS Config to list in the * response. * @return Returns a reference to this object so that method calls can be * chained together. * @see ResourceType */ public ListDiscoveredResourcesRequest withResourceType(String resourceType) { setResourceType(resourceType); return this; } /** *

* The type of resources that you want AWS Config to list in the response. *

* * @param resourceType * The type of resources that you want AWS Config to list in the * response. * @see ResourceType */ public void setResourceType(ResourceType resourceType) { this.resourceType = resourceType.toString(); } /** *

* The type of resources that you want AWS Config to list in the response. *

* * @param resourceType * The type of resources that you want AWS Config to list in the * response. * @return Returns a reference to this object so that method calls can be * chained together. * @see ResourceType */ public ListDiscoveredResourcesRequest withResourceType( ResourceType resourceType) { setResourceType(resourceType); return this; } /** *

* The IDs of only those resources that you want AWS Config to list in the * response. If you do not specify this parameter, AWS Config lists all * resources of the specified type that it has discovered. *

* * @return The IDs of only those resources that you want AWS Config to list * in the response. If you do not specify this parameter, AWS Config * lists all resources of the specified type that it has discovered. */ public java.util.List getResourceIds() { if (resourceIds == null) { resourceIds = new com.amazonaws.internal.SdkInternalList(); } return resourceIds; } /** *

* The IDs of only those resources that you want AWS Config to list in the * response. If you do not specify this parameter, AWS Config lists all * resources of the specified type that it has discovered. *

* * @param resourceIds * The IDs of only those resources that you want AWS Config to list * in the response. If you do not specify this parameter, AWS Config * lists all resources of the specified type that it has discovered. */ public void setResourceIds(java.util.Collection resourceIds) { if (resourceIds == null) { this.resourceIds = null; return; } this.resourceIds = new com.amazonaws.internal.SdkInternalList( resourceIds); } /** *

* The IDs of only those resources that you want AWS Config to list in the * response. If you do not specify this parameter, AWS Config lists all * resources of the specified type that it has discovered. *

*

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

* * @param resourceIds * The IDs of only those resources that you want AWS Config to list * in the response. If you do not specify this parameter, AWS Config * lists all resources of the specified type that it has discovered. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListDiscoveredResourcesRequest withResourceIds(String... resourceIds) { if (this.resourceIds == null) { setResourceIds(new com.amazonaws.internal.SdkInternalList( resourceIds.length)); } for (String ele : resourceIds) { this.resourceIds.add(ele); } return this; } /** *

* The IDs of only those resources that you want AWS Config to list in the * response. If you do not specify this parameter, AWS Config lists all * resources of the specified type that it has discovered. *

* * @param resourceIds * The IDs of only those resources that you want AWS Config to list * in the response. If you do not specify this parameter, AWS Config * lists all resources of the specified type that it has discovered. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListDiscoveredResourcesRequest withResourceIds( java.util.Collection resourceIds) { setResourceIds(resourceIds); return this; } /** *

* The custom name of only those resources that you want AWS Config to list * in the response. If you do not specify this parameter, AWS Config lists * all resources of the specified type that it has discovered. *

* * @param resourceName * The custom name of only those resources that you want AWS Config * to list in the response. If you do not specify this parameter, AWS * Config lists all resources of the specified type that it has * discovered. */ public void setResourceName(String resourceName) { this.resourceName = resourceName; } /** *

* The custom name of only those resources that you want AWS Config to list * in the response. If you do not specify this parameter, AWS Config lists * all resources of the specified type that it has discovered. *

* * @return The custom name of only those resources that you want AWS Config * to list in the response. If you do not specify this parameter, * AWS Config lists all resources of the specified type that it has * discovered. */ public String getResourceName() { return this.resourceName; } /** *

* The custom name of only those resources that you want AWS Config to list * in the response. If you do not specify this parameter, AWS Config lists * all resources of the specified type that it has discovered. *

* * @param resourceName * The custom name of only those resources that you want AWS Config * to list in the response. If you do not specify this parameter, AWS * Config lists all resources of the specified type that it has * discovered. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListDiscoveredResourcesRequest withResourceName(String resourceName) { setResourceName(resourceName); return this; } /** *

* The maximum number of resource identifiers returned on each page. The * default is 100. You cannot specify a limit greater than 100. If you * specify 0, AWS Config uses the default. *

* * @param limit * The maximum number of resource identifiers returned on each page. * The default is 100. You cannot specify a limit greater than 100. * If you specify 0, AWS Config uses the default. */ public void setLimit(Integer limit) { this.limit = limit; } /** *

* The maximum number of resource identifiers returned on each page. The * default is 100. You cannot specify a limit greater than 100. If you * specify 0, AWS Config uses the default. *

* * @return The maximum number of resource identifiers returned on each page. * The default is 100. You cannot specify a limit greater than 100. * If you specify 0, AWS Config uses the default. */ public Integer getLimit() { return this.limit; } /** *

* The maximum number of resource identifiers returned on each page. The * default is 100. You cannot specify a limit greater than 100. If you * specify 0, AWS Config uses the default. *

* * @param limit * The maximum number of resource identifiers returned on each page. * The default is 100. You cannot specify a limit greater than 100. * If you specify 0, AWS Config uses the default. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListDiscoveredResourcesRequest withLimit(Integer limit) { setLimit(limit); return this; } /** *

* Specifies whether AWS Config includes deleted resources in the results. * By default, deleted resources are not included. *

* * @param includeDeletedResources * Specifies whether AWS Config includes deleted resources in the * results. By default, deleted resources are not included. */ public void setIncludeDeletedResources(Boolean includeDeletedResources) { this.includeDeletedResources = includeDeletedResources; } /** *

* Specifies whether AWS Config includes deleted resources in the results. * By default, deleted resources are not included. *

* * @return Specifies whether AWS Config includes deleted resources in the * results. By default, deleted resources are not included. */ public Boolean getIncludeDeletedResources() { return this.includeDeletedResources; } /** *

* Specifies whether AWS Config includes deleted resources in the results. * By default, deleted resources are not included. *

* * @param includeDeletedResources * Specifies whether AWS Config includes deleted resources in the * results. By default, deleted resources are not included. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListDiscoveredResourcesRequest withIncludeDeletedResources( Boolean includeDeletedResources) { setIncludeDeletedResources(includeDeletedResources); return this; } /** *

* Specifies whether AWS Config includes deleted resources in the results. * By default, deleted resources are not included. *

* * @return Specifies whether AWS Config includes deleted resources in the * results. By default, deleted resources are not included. */ public Boolean isIncludeDeletedResources() { return this.includeDeletedResources; } /** *

* The nextToken string returned on a previous page that you * use to get the next page of results in a paginated response. *

* * @param nextToken * The nextToken string returned on a previous page that * you use to get the next page of results in a paginated response. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* The nextToken string returned on a previous page that you * use to get the next page of results in a paginated response. *

* * @return The nextToken string returned on a previous page * that you use to get the next page of results in a paginated * response. */ public String getNextToken() { return this.nextToken; } /** *

* The nextToken string returned on a previous page that you * use to get the next page of results in a paginated response. *

* * @param nextToken * The nextToken string returned on a previous page that * you use to get the next page of results in a paginated response. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListDiscoveredResourcesRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getResourceType() != null) sb.append("ResourceType: " + getResourceType() + ","); if (getResourceIds() != null) sb.append("ResourceIds: " + getResourceIds() + ","); if (getResourceName() != null) sb.append("ResourceName: " + getResourceName() + ","); if (getLimit() != null) sb.append("Limit: " + getLimit() + ","); if (getIncludeDeletedResources() != null) sb.append("IncludeDeletedResources: " + getIncludeDeletedResources() + ","); if (getNextToken() != null) sb.append("NextToken: " + getNextToken()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListDiscoveredResourcesRequest == false) return false; ListDiscoveredResourcesRequest other = (ListDiscoveredResourcesRequest) obj; if (other.getResourceType() == null ^ this.getResourceType() == null) return false; if (other.getResourceType() != null && other.getResourceType().equals(this.getResourceType()) == false) return false; if (other.getResourceIds() == null ^ this.getResourceIds() == null) return false; if (other.getResourceIds() != null && other.getResourceIds().equals(this.getResourceIds()) == false) return false; if (other.getResourceName() == null ^ this.getResourceName() == null) return false; if (other.getResourceName() != null && other.getResourceName().equals(this.getResourceName()) == false) return false; if (other.getLimit() == null ^ this.getLimit() == null) return false; if (other.getLimit() != null && other.getLimit().equals(this.getLimit()) == false) return false; if (other.getIncludeDeletedResources() == null ^ this.getIncludeDeletedResources() == null) return false; if (other.getIncludeDeletedResources() != null && other.getIncludeDeletedResources().equals( this.getIncludeDeletedResources()) == false) return false; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getResourceType() == null) ? 0 : getResourceType() .hashCode()); hashCode = prime * hashCode + ((getResourceIds() == null) ? 0 : getResourceIds().hashCode()); hashCode = prime * hashCode + ((getResourceName() == null) ? 0 : getResourceName() .hashCode()); hashCode = prime * hashCode + ((getLimit() == null) ? 0 : getLimit().hashCode()); hashCode = prime * hashCode + ((getIncludeDeletedResources() == null) ? 0 : getIncludeDeletedResources().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); return hashCode; } @Override public ListDiscoveredResourcesRequest clone() { return (ListDiscoveredResourcesRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy