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

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

/*
 * Copyright 2014-2019 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 javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceRequest;

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

    /**
     * 

* Filter the certificate list by status value. *

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

* Filter the certificate list. For more information, see the Filters structure. *

*/ private Filters includes; /** *

* 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; /** *

* Filter the certificate list by status value. *

* * @return Filter the certificate list by status value. * @see CertificateStatus */ public java.util.List getCertificateStatuses() { return certificateStatuses; } /** *

* Filter the certificate list by status value. *

* * @param certificateStatuses * Filter the certificate list by status value. * @see CertificateStatus */ public void setCertificateStatuses(java.util.Collection certificateStatuses) { if (certificateStatuses == null) { this.certificateStatuses = null; return; } this.certificateStatuses = new java.util.ArrayList(certificateStatuses); } /** *

* Filter the certificate list by status value. *

*

* 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 * Filter the certificate list by status value. * @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; } /** *

* Filter the certificate list by status value. *

* * @param certificateStatuses * Filter the certificate list by status value. * @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; } /** *

* Filter the certificate list by status value. *

* * @param certificateStatuses * Filter the certificate list by status value. * @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; } /** *

* Filter the certificate list. For more information, see the Filters structure. *

* * @param includes * Filter the certificate list. For more information, see the Filters structure. */ public void setIncludes(Filters includes) { this.includes = includes; } /** *

* Filter the certificate list. For more information, see the Filters structure. *

* * @return Filter the certificate list. For more information, see the Filters structure. */ public Filters getIncludes() { return this.includes; } /** *

* Filter the certificate list. For more information, see the Filters structure. *

* * @param includes * Filter the certificate list. For more information, see the Filters structure. * @return Returns a reference to this object so that method calls can be chained together. */ public ListCertificatesRequest withIncludes(Filters includes) { setIncludes(includes); 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. 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 (getCertificateStatuses() != null) sb.append("CertificateStatuses: ").append(getCertificateStatuses()).append(","); if (getIncludes() != null) sb.append("Includes: ").append(getIncludes()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxItems() != null) sb.append("MaxItems: ").append(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.getIncludes() == null ^ this.getIncludes() == null) return false; if (other.getIncludes() != null && other.getIncludes().equals(this.getIncludes()) == 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 + ((getIncludes() == null) ? 0 : getIncludes().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