/* * Copyright 2018-2023 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.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Defines the X.509 CertificatePolicies
extension.
*
* Specifies the object identifier (OID) of the certificate policy under which the certificate was issued. For more * information, see NIST's definition of Object * Identifier (OID). *
*/ private String certPolicyId; /** *
* Modifies the given CertPolicyId
with a qualifier. Amazon Web Services Private CA supports the
* certification practice statement (CPS) qualifier.
*
* Specifies the object identifier (OID) of the certificate policy under which the certificate was issued. For more * information, see NIST's definition of Object * Identifier (OID). *
* * @param certPolicyId * Specifies the object identifier (OID) of the certificate policy under which the certificate was issued. * For more information, see NIST's definition of Object Identifier (OID). */ public void setCertPolicyId(String certPolicyId) { this.certPolicyId = certPolicyId; } /** ** Specifies the object identifier (OID) of the certificate policy under which the certificate was issued. For more * information, see NIST's definition of Object * Identifier (OID). *
* * @return Specifies the object identifier (OID) of the certificate policy under which the certificate was issued. * For more information, see NIST's definition of Object Identifier (OID). */ public String getCertPolicyId() { return this.certPolicyId; } /** ** Specifies the object identifier (OID) of the certificate policy under which the certificate was issued. For more * information, see NIST's definition of Object * Identifier (OID). *
* * @param certPolicyId * Specifies the object identifier (OID) of the certificate policy under which the certificate was issued. * For more information, see NIST's definition of Object Identifier (OID). * @return Returns a reference to this object so that method calls can be chained together. */ public PolicyInformation withCertPolicyId(String certPolicyId) { setCertPolicyId(certPolicyId); return this; } /** *
* Modifies the given CertPolicyId
with a qualifier. Amazon Web Services Private CA supports the
* certification practice statement (CPS) qualifier.
*
CertPolicyId
with a qualifier. Amazon Web Services Private CA supports
* the certification practice statement (CPS) qualifier.
*/
public java.util.List
* Modifies the given CertPolicyId
with a qualifier. Amazon Web Services Private CA supports the
* certification practice statement (CPS) qualifier.
*
CertPolicyId
with a qualifier. Amazon Web Services Private CA supports the
* certification practice statement (CPS) qualifier.
*/
public void setPolicyQualifiers(java.util.Collection
* Modifies the given CertPolicyId
with a qualifier. Amazon Web Services Private CA supports the
* certification practice statement (CPS) qualifier.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setPolicyQualifiers(java.util.Collection)} or {@link #withPolicyQualifiers(java.util.Collection)} if you * want to override the existing values. *
* * @param policyQualifiers * Modifies the givenCertPolicyId
with a qualifier. Amazon Web Services Private CA supports the
* certification practice statement (CPS) qualifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PolicyInformation withPolicyQualifiers(PolicyQualifierInfo... policyQualifiers) {
if (this.policyQualifiers == null) {
setPolicyQualifiers(new java.util.ArrayList
* Modifies the given CertPolicyId
with a qualifier. Amazon Web Services Private CA supports the
* certification practice statement (CPS) qualifier.
*
CertPolicyId
with a qualifier. Amazon Web Services Private CA supports the
* certification practice statement (CPS) qualifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public PolicyInformation withPolicyQualifiers(java.util.Collection