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

com.amazonaws.services.outposts.model.ListOutpostsRequest Maven / Gradle / Ivy

Go to download

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

The 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.outposts.model;

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

import com.amazonaws.AmazonWebServiceRequest;

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

    private String nextToken;

    private Integer maxResults;
    /**
     * 

* Filters the results by the lifecycle status. *

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

* Filters the results by Availability Zone (for example, us-east-1a). *

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

* Filters the results by AZ ID (for example, use1-az1). *

*/ private java.util.List availabilityZoneIdFilter; /** * @param nextToken */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** * @return */ public String getNextToken() { return this.nextToken; } /** * @param nextToken * @return Returns a reference to this object so that method calls can be chained together. */ public ListOutpostsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** * @param maxResults */ public void setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** * @return */ public Integer getMaxResults() { return this.maxResults; } /** * @param maxResults * @return Returns a reference to this object so that method calls can be chained together. */ public ListOutpostsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); return this; } /** *

* Filters the results by the lifecycle status. *

* * @return Filters the results by the lifecycle status. */ public java.util.List getLifeCycleStatusFilter() { return lifeCycleStatusFilter; } /** *

* Filters the results by the lifecycle status. *

* * @param lifeCycleStatusFilter * Filters the results by the lifecycle status. */ public void setLifeCycleStatusFilter(java.util.Collection lifeCycleStatusFilter) { if (lifeCycleStatusFilter == null) { this.lifeCycleStatusFilter = null; return; } this.lifeCycleStatusFilter = new java.util.ArrayList(lifeCycleStatusFilter); } /** *

* Filters the results by the lifecycle status. *

*

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

* * @param lifeCycleStatusFilter * Filters the results by the lifecycle status. * @return Returns a reference to this object so that method calls can be chained together. */ public ListOutpostsRequest withLifeCycleStatusFilter(String... lifeCycleStatusFilter) { if (this.lifeCycleStatusFilter == null) { setLifeCycleStatusFilter(new java.util.ArrayList(lifeCycleStatusFilter.length)); } for (String ele : lifeCycleStatusFilter) { this.lifeCycleStatusFilter.add(ele); } return this; } /** *

* Filters the results by the lifecycle status. *

* * @param lifeCycleStatusFilter * Filters the results by the lifecycle status. * @return Returns a reference to this object so that method calls can be chained together. */ public ListOutpostsRequest withLifeCycleStatusFilter(java.util.Collection lifeCycleStatusFilter) { setLifeCycleStatusFilter(lifeCycleStatusFilter); return this; } /** *

* Filters the results by Availability Zone (for example, us-east-1a). *

* * @return Filters the results by Availability Zone (for example, us-east-1a). */ public java.util.List getAvailabilityZoneFilter() { return availabilityZoneFilter; } /** *

* Filters the results by Availability Zone (for example, us-east-1a). *

* * @param availabilityZoneFilter * Filters the results by Availability Zone (for example, us-east-1a). */ public void setAvailabilityZoneFilter(java.util.Collection availabilityZoneFilter) { if (availabilityZoneFilter == null) { this.availabilityZoneFilter = null; return; } this.availabilityZoneFilter = new java.util.ArrayList(availabilityZoneFilter); } /** *

* Filters the results by Availability Zone (for example, us-east-1a). *

*

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

* * @param availabilityZoneFilter * Filters the results by Availability Zone (for example, us-east-1a). * @return Returns a reference to this object so that method calls can be chained together. */ public ListOutpostsRequest withAvailabilityZoneFilter(String... availabilityZoneFilter) { if (this.availabilityZoneFilter == null) { setAvailabilityZoneFilter(new java.util.ArrayList(availabilityZoneFilter.length)); } for (String ele : availabilityZoneFilter) { this.availabilityZoneFilter.add(ele); } return this; } /** *

* Filters the results by Availability Zone (for example, us-east-1a). *

* * @param availabilityZoneFilter * Filters the results by Availability Zone (for example, us-east-1a). * @return Returns a reference to this object so that method calls can be chained together. */ public ListOutpostsRequest withAvailabilityZoneFilter(java.util.Collection availabilityZoneFilter) { setAvailabilityZoneFilter(availabilityZoneFilter); return this; } /** *

* Filters the results by AZ ID (for example, use1-az1). *

* * @return Filters the results by AZ ID (for example, use1-az1). */ public java.util.List getAvailabilityZoneIdFilter() { return availabilityZoneIdFilter; } /** *

* Filters the results by AZ ID (for example, use1-az1). *

* * @param availabilityZoneIdFilter * Filters the results by AZ ID (for example, use1-az1). */ public void setAvailabilityZoneIdFilter(java.util.Collection availabilityZoneIdFilter) { if (availabilityZoneIdFilter == null) { this.availabilityZoneIdFilter = null; return; } this.availabilityZoneIdFilter = new java.util.ArrayList(availabilityZoneIdFilter); } /** *

* Filters the results by AZ ID (for example, use1-az1). *

*

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

* * @param availabilityZoneIdFilter * Filters the results by AZ ID (for example, use1-az1). * @return Returns a reference to this object so that method calls can be chained together. */ public ListOutpostsRequest withAvailabilityZoneIdFilter(String... availabilityZoneIdFilter) { if (this.availabilityZoneIdFilter == null) { setAvailabilityZoneIdFilter(new java.util.ArrayList(availabilityZoneIdFilter.length)); } for (String ele : availabilityZoneIdFilter) { this.availabilityZoneIdFilter.add(ele); } return this; } /** *

* Filters the results by AZ ID (for example, use1-az1). *

* * @param availabilityZoneIdFilter * Filters the results by AZ ID (for example, use1-az1). * @return Returns a reference to this object so that method calls can be chained together. */ public ListOutpostsRequest withAvailabilityZoneIdFilter(java.util.Collection availabilityZoneIdFilter) { setAvailabilityZoneIdFilter(availabilityZoneIdFilter); 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 (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()).append(","); if (getLifeCycleStatusFilter() != null) sb.append("LifeCycleStatusFilter: ").append(getLifeCycleStatusFilter()).append(","); if (getAvailabilityZoneFilter() != null) sb.append("AvailabilityZoneFilter: ").append(getAvailabilityZoneFilter()).append(","); if (getAvailabilityZoneIdFilter() != null) sb.append("AvailabilityZoneIdFilter: ").append(getAvailabilityZoneIdFilter()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListOutpostsRequest == false) return false; ListOutpostsRequest other = (ListOutpostsRequest) obj; if (other.getNextToken() == null ^ this.getNextToken() == null) return false; if (other.getNextToken() != null && other.getNextToken().equals(this.getNextToken()) == false) return false; if (other.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; if (other.getLifeCycleStatusFilter() == null ^ this.getLifeCycleStatusFilter() == null) return false; if (other.getLifeCycleStatusFilter() != null && other.getLifeCycleStatusFilter().equals(this.getLifeCycleStatusFilter()) == false) return false; if (other.getAvailabilityZoneFilter() == null ^ this.getAvailabilityZoneFilter() == null) return false; if (other.getAvailabilityZoneFilter() != null && other.getAvailabilityZoneFilter().equals(this.getAvailabilityZoneFilter()) == false) return false; if (other.getAvailabilityZoneIdFilter() == null ^ this.getAvailabilityZoneIdFilter() == null) return false; if (other.getAvailabilityZoneIdFilter() != null && other.getAvailabilityZoneIdFilter().equals(this.getAvailabilityZoneIdFilter()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); hashCode = prime * hashCode + ((getLifeCycleStatusFilter() == null) ? 0 : getLifeCycleStatusFilter().hashCode()); hashCode = prime * hashCode + ((getAvailabilityZoneFilter() == null) ? 0 : getAvailabilityZoneFilter().hashCode()); hashCode = prime * hashCode + ((getAvailabilityZoneIdFilter() == null) ? 0 : getAvailabilityZoneIdFilter().hashCode()); return hashCode; } @Override public ListOutpostsRequest clone() { return (ListOutpostsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy