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

com.amazonaws.services.certificatemanager.model.ListCertificatesRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Certificate Manager module holds the client classes that are used for communicating with AWS Certificate Manager service.

There is a newer version: 1.11.8
Show newest version
/*
 * Copyright 2011-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.certificatemanager.model;

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

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

    /**
     * 

* The status or statuses on which to filter the list of ACM Certificates. *

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

* Use this parameter only when paginating results and only in a subsequent * request after you receive a response with truncated results. Set it to * the value of NextToken from the response you just received. *

*/ private String nextToken; /** *

* Use this parameter when paginating results to specify the maximum number * of items to return in the response. If additional items exist beyond the * number you specify, the NextToken element is sent in the * response. Use this NextToken value in a subsequent request * to retrieve additional items. *

*/ private Integer maxItems; /** *

* The status or statuses on which to filter the list of ACM Certificates. *

* * @return The status or statuses on which to filter the list of ACM * Certificates. * @see CertificateStatus */ public java.util.List getCertificateStatuses() { return certificateStatuses; } /** *

* The status or statuses on which to filter the list of ACM Certificates. *

* * @param certificateStatuses * The status or statuses on which to filter the list of ACM * Certificates. * @see CertificateStatus */ public void setCertificateStatuses( java.util.Collection certificateStatuses) { if (certificateStatuses == null) { this.certificateStatuses = null; return; } this.certificateStatuses = new java.util.ArrayList( certificateStatuses); } /** *

* The status or statuses on which to filter the list of ACM Certificates. *

*

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

* * @param certificateStatuses * The status or statuses on which to filter the list of ACM * Certificates. * @return Returns a reference to this object so that method calls can be * chained together. * @see CertificateStatus */ public ListCertificatesRequest withCertificateStatuses( String... certificateStatuses) { if (this.certificateStatuses == null) { setCertificateStatuses(new java.util.ArrayList( certificateStatuses.length)); } for (String ele : certificateStatuses) { this.certificateStatuses.add(ele); } return this; } /** *

* The status or statuses on which to filter the list of ACM Certificates. *

* * @param certificateStatuses * The status or statuses on which to filter the list of ACM * Certificates. * @return Returns a reference to this object so that method calls can be * chained together. * @see CertificateStatus */ public ListCertificatesRequest withCertificateStatuses( java.util.Collection certificateStatuses) { setCertificateStatuses(certificateStatuses); return this; } /** *

* The status or statuses on which to filter the list of ACM Certificates. *

* * @param certificateStatuses * The status or statuses on which to filter the list of ACM * Certificates. * @return Returns a reference to this object so that method calls can be * chained together. * @see CertificateStatus */ public ListCertificatesRequest withCertificateStatuses( CertificateStatus... certificateStatuses) { java.util.ArrayList certificateStatusesCopy = new java.util.ArrayList( certificateStatuses.length); for (CertificateStatus value : certificateStatuses) { certificateStatusesCopy.add(value.toString()); } if (getCertificateStatuses() == null) { setCertificateStatuses(certificateStatusesCopy); } else { getCertificateStatuses().addAll(certificateStatusesCopy); } return this; } /** *

* Use this parameter only when paginating results and only in a subsequent * request after you receive a response with truncated results. Set it to * the value of NextToken from the response you just received. *

* * @param nextToken * Use this parameter only when paginating results and only in a * subsequent request after you receive a response with truncated * results. Set it to the value of NextToken from the * response you just received. */ public void setNextToken(String nextToken) { this.nextToken = nextToken; } /** *

* Use this parameter only when paginating results and only in a subsequent * request after you receive a response with truncated results. Set it to * the value of NextToken from the response you just received. *

* * @return Use this parameter only when paginating results and only in a * subsequent request after you receive a response with truncated * results. Set it to the value of NextToken from the * response you just received. */ public String getNextToken() { return this.nextToken; } /** *

* Use this parameter only when paginating results and only in a subsequent * request after you receive a response with truncated results. Set it to * the value of NextToken from the response you just received. *

* * @param nextToken * Use this parameter only when paginating results and only in a * subsequent request after you receive a response with truncated * results. Set it to the value of NextToken from the * response you just received. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListCertificatesRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* Use this parameter when paginating results to specify the maximum number * of items to return in the response. If additional items exist beyond the * number you specify, the NextToken element is sent in the * response. Use this NextToken value in a subsequent request * to retrieve additional items. *

* * @param maxItems * Use this parameter when paginating results to specify the maximum * number of items to return in the response. If additional items * exist beyond the number you specify, the NextToken * element is sent in the response. Use this NextToken * value in a subsequent request to retrieve additional items. */ public void setMaxItems(Integer maxItems) { this.maxItems = maxItems; } /** *

* Use this parameter when paginating results to specify the maximum number * of items to return in the response. If additional items exist beyond the * number you specify, the NextToken element is sent in the * response. Use this NextToken value in a subsequent request * to retrieve additional items. *

* * @return Use this parameter when paginating results to specify the maximum * number of items to return in the response. If additional items * exist beyond the number you specify, the NextToken * element is sent in the response. Use this NextToken * value in a subsequent request to retrieve additional items. */ public Integer getMaxItems() { return this.maxItems; } /** *

* Use this parameter when paginating results to specify the maximum number * of items to return in the response. If additional items exist beyond the * number you specify, the NextToken element is sent in the * response. Use this NextToken value in a subsequent request * to retrieve additional items. *

* * @param maxItems * Use this parameter when paginating results to specify the maximum * number of items to return in the response. If additional items * exist beyond the number you specify, the NextToken * element is sent in the response. Use this NextToken * value in a subsequent request to retrieve additional items. * @return Returns a reference to this object so that method calls can be * chained together. */ public ListCertificatesRequest withMaxItems(Integer maxItems) { setMaxItems(maxItems); 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 (getCertificateStatuses() != null) sb.append("CertificateStatuses: " + getCertificateStatuses() + ","); if (getNextToken() != null) sb.append("NextToken: " + getNextToken() + ","); if (getMaxItems() != null) sb.append("MaxItems: " + getMaxItems()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListCertificatesRequest == false) return false; ListCertificatesRequest other = (ListCertificatesRequest) obj; if (other.getCertificateStatuses() == null ^ this.getCertificateStatuses() == null) return false; if (other.getCertificateStatuses() != null && other.getCertificateStatuses().equals( this.getCertificateStatuses()) == 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.getMaxItems() == null ^ this.getMaxItems() == null) return false; if (other.getMaxItems() != null && other.getMaxItems().equals(this.getMaxItems()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateStatuses() == null) ? 0 : getCertificateStatuses().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxItems() == null) ? 0 : getMaxItems().hashCode()); return hashCode; } @Override public ListCertificatesRequest clone() { return (ListCertificatesRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy