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

com.amazonaws.services.acmpca.model.ListPermissionsRequest 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.acmpca.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 ListPermissionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the * ListCertificateAuthorities operation. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 You can * get a private CA's ARN by running the ListCertificateAuthorities operation. *

*/ private String certificateAuthorityArn; /** *

* When paginating results, use this parameter 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; /** *

* When paginating results, use this parameter 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 maxResults; /** *

* The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the * ListCertificateAuthorities operation. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 You can * get a private CA's ARN by running the ListCertificateAuthorities operation. *

* * @param certificateAuthorityArn * The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the * ListCertificateAuthorities operation. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 You * can get a private CA's ARN by running the ListCertificateAuthorities operation. */ public void setCertificateAuthorityArn(String certificateAuthorityArn) { this.certificateAuthorityArn = certificateAuthorityArn; } /** *

* The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the * ListCertificateAuthorities operation. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 You can * get a private CA's ARN by running the ListCertificateAuthorities operation. *

* * @return The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the * ListCertificateAuthorities operation. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 * You can get a private CA's ARN by running the ListCertificateAuthorities operation. */ public String getCertificateAuthorityArn() { return this.certificateAuthorityArn; } /** *

* The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the * ListCertificateAuthorities operation. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 You can * get a private CA's ARN by running the ListCertificateAuthorities operation. *

* * @param certificateAuthorityArn * The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN by calling the * ListCertificateAuthorities operation. This must be of the form: * arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012 You * can get a private CA's ARN by running the ListCertificateAuthorities operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ListPermissionsRequest withCertificateAuthorityArn(String certificateAuthorityArn) { setCertificateAuthorityArn(certificateAuthorityArn); return this; } /** *

* When paginating results, use this parameter 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 * When paginating results, use this parameter 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; } /** *

* When paginating results, use this parameter 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 When paginating results, use this parameter 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; } /** *

* When paginating results, use this parameter 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 * When paginating results, use this parameter 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 ListPermissionsRequest withNextToken(String nextToken) { setNextToken(nextToken); return this; } /** *

* When paginating results, use this parameter 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 maxResults * When paginating results, use this parameter 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 setMaxResults(Integer maxResults) { this.maxResults = maxResults; } /** *

* When paginating results, use this parameter 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 When paginating results, use this parameter 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 getMaxResults() { return this.maxResults; } /** *

* When paginating results, use this parameter 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 maxResults * When paginating results, use this parameter 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 ListPermissionsRequest withMaxResults(Integer maxResults) { setMaxResults(maxResults); 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 (getCertificateAuthorityArn() != null) sb.append("CertificateAuthorityArn: ").append(getCertificateAuthorityArn()).append(","); if (getNextToken() != null) sb.append("NextToken: ").append(getNextToken()).append(","); if (getMaxResults() != null) sb.append("MaxResults: ").append(getMaxResults()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ListPermissionsRequest == false) return false; ListPermissionsRequest other = (ListPermissionsRequest) obj; if (other.getCertificateAuthorityArn() == null ^ this.getCertificateAuthorityArn() == null) return false; if (other.getCertificateAuthorityArn() != null && other.getCertificateAuthorityArn().equals(this.getCertificateAuthorityArn()) == 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.getMaxResults() == null ^ this.getMaxResults() == null) return false; if (other.getMaxResults() != null && other.getMaxResults().equals(this.getMaxResults()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateAuthorityArn() == null) ? 0 : getCertificateAuthorityArn().hashCode()); hashCode = prime * hashCode + ((getNextToken() == null) ? 0 : getNextToken().hashCode()); hashCode = prime * hashCode + ((getMaxResults() == null) ? 0 : getMaxResults().hashCode()); return hashCode; } @Override public ListPermissionsRequest clone() { return (ListPermissionsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy