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

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

    /**
     * 

* Name and bit size of the private key algorithm, the name of the signing algorithm, and X.500 certificate subject * information. *

*/ private CertificateAuthorityConfiguration certificateAuthorityConfiguration; /** *

* Contains a Boolean value that you can use to enable a certification revocation list (CRL) for the CA, the name of * the S3 bucket to which ACM PCA will write the CRL, and an optional CNAME alias that you can use to hide the name * of your bucket in the CRL Distribution Points extension of your CA certificate. For more information, see * the CrlConfiguration structure. *

*/ private RevocationConfiguration revocationConfiguration; /** *

* The type of the certificate authority. Currently, this must be SUBORDINATE. *

*/ private String certificateAuthorityType; /** *

* Alphanumeric string that can be used to distinguish between calls to CreateCertificateAuthority. * Idempotency tokens time out after five minutes. Therefore, if you call CreateCertificateAuthority multiple * times with the same idempotency token within a five minute period, ACM PCA recognizes that you are requesting * only one certificate. As a result, ACM PCA issues only one. If you change the idempotency token for each call, * however, ACM PCA recognizes that you are requesting multiple certificates. *

*/ private String idempotencyToken; /** *

* Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. *

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

* Name and bit size of the private key algorithm, the name of the signing algorithm, and X.500 certificate subject * information. *

* * @param certificateAuthorityConfiguration * Name and bit size of the private key algorithm, the name of the signing algorithm, and X.500 certificate * subject information. */ public void setCertificateAuthorityConfiguration(CertificateAuthorityConfiguration certificateAuthorityConfiguration) { this.certificateAuthorityConfiguration = certificateAuthorityConfiguration; } /** *

* Name and bit size of the private key algorithm, the name of the signing algorithm, and X.500 certificate subject * information. *

* * @return Name and bit size of the private key algorithm, the name of the signing algorithm, and X.500 certificate * subject information. */ public CertificateAuthorityConfiguration getCertificateAuthorityConfiguration() { return this.certificateAuthorityConfiguration; } /** *

* Name and bit size of the private key algorithm, the name of the signing algorithm, and X.500 certificate subject * information. *

* * @param certificateAuthorityConfiguration * Name and bit size of the private key algorithm, the name of the signing algorithm, and X.500 certificate * subject information. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCertificateAuthorityRequest withCertificateAuthorityConfiguration(CertificateAuthorityConfiguration certificateAuthorityConfiguration) { setCertificateAuthorityConfiguration(certificateAuthorityConfiguration); return this; } /** *

* Contains a Boolean value that you can use to enable a certification revocation list (CRL) for the CA, the name of * the S3 bucket to which ACM PCA will write the CRL, and an optional CNAME alias that you can use to hide the name * of your bucket in the CRL Distribution Points extension of your CA certificate. For more information, see * the CrlConfiguration structure. *

* * @param revocationConfiguration * Contains a Boolean value that you can use to enable a certification revocation list (CRL) for the CA, the * name of the S3 bucket to which ACM PCA will write the CRL, and an optional CNAME alias that you can use to * hide the name of your bucket in the CRL Distribution Points extension of your CA certificate. For * more information, see the CrlConfiguration structure. */ public void setRevocationConfiguration(RevocationConfiguration revocationConfiguration) { this.revocationConfiguration = revocationConfiguration; } /** *

* Contains a Boolean value that you can use to enable a certification revocation list (CRL) for the CA, the name of * the S3 bucket to which ACM PCA will write the CRL, and an optional CNAME alias that you can use to hide the name * of your bucket in the CRL Distribution Points extension of your CA certificate. For more information, see * the CrlConfiguration structure. *

* * @return Contains a Boolean value that you can use to enable a certification revocation list (CRL) for the CA, the * name of the S3 bucket to which ACM PCA will write the CRL, and an optional CNAME alias that you can use * to hide the name of your bucket in the CRL Distribution Points extension of your CA certificate. * For more information, see the CrlConfiguration structure. */ public RevocationConfiguration getRevocationConfiguration() { return this.revocationConfiguration; } /** *

* Contains a Boolean value that you can use to enable a certification revocation list (CRL) for the CA, the name of * the S3 bucket to which ACM PCA will write the CRL, and an optional CNAME alias that you can use to hide the name * of your bucket in the CRL Distribution Points extension of your CA certificate. For more information, see * the CrlConfiguration structure. *

* * @param revocationConfiguration * Contains a Boolean value that you can use to enable a certification revocation list (CRL) for the CA, the * name of the S3 bucket to which ACM PCA will write the CRL, and an optional CNAME alias that you can use to * hide the name of your bucket in the CRL Distribution Points extension of your CA certificate. For * more information, see the CrlConfiguration structure. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCertificateAuthorityRequest withRevocationConfiguration(RevocationConfiguration revocationConfiguration) { setRevocationConfiguration(revocationConfiguration); return this; } /** *

* The type of the certificate authority. Currently, this must be SUBORDINATE. *

* * @param certificateAuthorityType * The type of the certificate authority. Currently, this must be SUBORDINATE. * @see CertificateAuthorityType */ public void setCertificateAuthorityType(String certificateAuthorityType) { this.certificateAuthorityType = certificateAuthorityType; } /** *

* The type of the certificate authority. Currently, this must be SUBORDINATE. *

* * @return The type of the certificate authority. Currently, this must be SUBORDINATE. * @see CertificateAuthorityType */ public String getCertificateAuthorityType() { return this.certificateAuthorityType; } /** *

* The type of the certificate authority. Currently, this must be SUBORDINATE. *

* * @param certificateAuthorityType * The type of the certificate authority. Currently, this must be SUBORDINATE. * @return Returns a reference to this object so that method calls can be chained together. * @see CertificateAuthorityType */ public CreateCertificateAuthorityRequest withCertificateAuthorityType(String certificateAuthorityType) { setCertificateAuthorityType(certificateAuthorityType); return this; } /** *

* The type of the certificate authority. Currently, this must be SUBORDINATE. *

* * @param certificateAuthorityType * The type of the certificate authority. Currently, this must be SUBORDINATE. * @return Returns a reference to this object so that method calls can be chained together. * @see CertificateAuthorityType */ public CreateCertificateAuthorityRequest withCertificateAuthorityType(CertificateAuthorityType certificateAuthorityType) { this.certificateAuthorityType = certificateAuthorityType.toString(); return this; } /** *

* Alphanumeric string that can be used to distinguish between calls to CreateCertificateAuthority. * Idempotency tokens time out after five minutes. Therefore, if you call CreateCertificateAuthority multiple * times with the same idempotency token within a five minute period, ACM PCA recognizes that you are requesting * only one certificate. As a result, ACM PCA issues only one. If you change the idempotency token for each call, * however, ACM PCA recognizes that you are requesting multiple certificates. *

* * @param idempotencyToken * Alphanumeric string that can be used to distinguish between calls to CreateCertificateAuthority. * Idempotency tokens time out after five minutes. Therefore, if you call CreateCertificateAuthority * multiple times with the same idempotency token within a five minute period, ACM PCA recognizes that you * are requesting only one certificate. As a result, ACM PCA issues only one. If you change the idempotency * token for each call, however, ACM PCA recognizes that you are requesting multiple certificates. */ public void setIdempotencyToken(String idempotencyToken) { this.idempotencyToken = idempotencyToken; } /** *

* Alphanumeric string that can be used to distinguish between calls to CreateCertificateAuthority. * Idempotency tokens time out after five minutes. Therefore, if you call CreateCertificateAuthority multiple * times with the same idempotency token within a five minute period, ACM PCA recognizes that you are requesting * only one certificate. As a result, ACM PCA issues only one. If you change the idempotency token for each call, * however, ACM PCA recognizes that you are requesting multiple certificates. *

* * @return Alphanumeric string that can be used to distinguish between calls to CreateCertificateAuthority. * Idempotency tokens time out after five minutes. Therefore, if you call CreateCertificateAuthority * multiple times with the same idempotency token within a five minute period, ACM PCA recognizes that you * are requesting only one certificate. As a result, ACM PCA issues only one. If you change the idempotency * token for each call, however, ACM PCA recognizes that you are requesting multiple certificates. */ public String getIdempotencyToken() { return this.idempotencyToken; } /** *

* Alphanumeric string that can be used to distinguish between calls to CreateCertificateAuthority. * Idempotency tokens time out after five minutes. Therefore, if you call CreateCertificateAuthority multiple * times with the same idempotency token within a five minute period, ACM PCA recognizes that you are requesting * only one certificate. As a result, ACM PCA issues only one. If you change the idempotency token for each call, * however, ACM PCA recognizes that you are requesting multiple certificates. *

* * @param idempotencyToken * Alphanumeric string that can be used to distinguish between calls to CreateCertificateAuthority. * Idempotency tokens time out after five minutes. Therefore, if you call CreateCertificateAuthority * multiple times with the same idempotency token within a five minute period, ACM PCA recognizes that you * are requesting only one certificate. As a result, ACM PCA issues only one. If you change the idempotency * token for each call, however, ACM PCA recognizes that you are requesting multiple certificates. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCertificateAuthorityRequest withIdempotencyToken(String idempotencyToken) { setIdempotencyToken(idempotencyToken); return this; } /** *

* Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. *

* * @return Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a * private CA. */ public java.util.List getTags() { return tags; } /** *

* Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. *

* * @param tags * Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a * private CA. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new java.util.ArrayList(tags); } /** *

* Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. *

*

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

* * @param tags * Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a * private CA. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCertificateAuthorityRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

* Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a private CA. *

* * @param tags * Key-value pairs that will be attached to the new private CA. You can associate up to 50 tags with a * private CA. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateCertificateAuthorityRequest withTags(java.util.Collection tags) { setTags(tags); 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 (getCertificateAuthorityConfiguration() != null) sb.append("CertificateAuthorityConfiguration: ").append(getCertificateAuthorityConfiguration()).append(","); if (getRevocationConfiguration() != null) sb.append("RevocationConfiguration: ").append(getRevocationConfiguration()).append(","); if (getCertificateAuthorityType() != null) sb.append("CertificateAuthorityType: ").append(getCertificateAuthorityType()).append(","); if (getIdempotencyToken() != null) sb.append("IdempotencyToken: ").append(getIdempotencyToken()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateCertificateAuthorityRequest == false) return false; CreateCertificateAuthorityRequest other = (CreateCertificateAuthorityRequest) obj; if (other.getCertificateAuthorityConfiguration() == null ^ this.getCertificateAuthorityConfiguration() == null) return false; if (other.getCertificateAuthorityConfiguration() != null && other.getCertificateAuthorityConfiguration().equals(this.getCertificateAuthorityConfiguration()) == false) return false; if (other.getRevocationConfiguration() == null ^ this.getRevocationConfiguration() == null) return false; if (other.getRevocationConfiguration() != null && other.getRevocationConfiguration().equals(this.getRevocationConfiguration()) == false) return false; if (other.getCertificateAuthorityType() == null ^ this.getCertificateAuthorityType() == null) return false; if (other.getCertificateAuthorityType() != null && other.getCertificateAuthorityType().equals(this.getCertificateAuthorityType()) == false) return false; if (other.getIdempotencyToken() == null ^ this.getIdempotencyToken() == null) return false; if (other.getIdempotencyToken() != null && other.getIdempotencyToken().equals(this.getIdempotencyToken()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateAuthorityConfiguration() == null) ? 0 : getCertificateAuthorityConfiguration().hashCode()); hashCode = prime * hashCode + ((getRevocationConfiguration() == null) ? 0 : getRevocationConfiguration().hashCode()); hashCode = prime * hashCode + ((getCertificateAuthorityType() == null) ? 0 : getCertificateAuthorityType().hashCode()); hashCode = prime * hashCode + ((getIdempotencyToken() == null) ? 0 : getIdempotencyToken().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; } @Override public CreateCertificateAuthorityRequest clone() { return (CreateCertificateAuthorityRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy