/* * 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; /** *
* Contains information about the certificate subject. The Subject
field in the certificate identifies the
* entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or
* service. The Subject
must contain an X.500 distinguished name (DN). A DN is a sequence of relative
* distinguished names (RDNs). The RDNs are separated by commas in the certificate.
*
* Two-digit code that specifies the country in which the certificate subject located. *
*/ private String country; /** ** Legal name of the organization with which the certificate subject is affiliated. *
*/ private String organization; /** ** A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is * affiliated. *
*/ private String organizationalUnit; /** ** Disambiguating information for the certificate subject. *
*/ private String distinguishedNameQualifier; /** ** State in which the subject of the certificate is located. *
*/ private String state; /** ** For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length * limit. *
** Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated * with the certificate subject. *
*/ private String commonName; /** ** The certificate serial number. *
*/ private String serialNumber; /** ** The locality (such as a city or town) in which the certificate subject is located. *
*/ private String locality; /** ** A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject. *
*/ private String title; /** ** Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures * the surname is typically ordered first. *
*/ private String surname; /** ** First name. *
*/ private String givenName; /** ** Concatenation that typically contains the first letter of the GivenName, the first letter of the middle * name if one exists, and the first letter of the Surname. *
*/ private String initials; /** ** Typically a shortened version of a longer GivenName. For example, Jonathan is often shortened to John. * Elizabeth is often shortened to Beth, Liz, or Eliza. *
*/ private String pseudonym; /** ** Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and * III for third. *
*/ private String generationQualifier; /** * ** Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object * identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID). *
** Custom attributes cannot be used in combination with standard attributes. *
** Two-digit code that specifies the country in which the certificate subject located. *
* * @param country * Two-digit code that specifies the country in which the certificate subject located. */ public void setCountry(String country) { this.country = country; } /** ** Two-digit code that specifies the country in which the certificate subject located. *
* * @return Two-digit code that specifies the country in which the certificate subject located. */ public String getCountry() { return this.country; } /** ** Two-digit code that specifies the country in which the certificate subject located. *
* * @param country * Two-digit code that specifies the country in which the certificate subject located. * @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withCountry(String country) { setCountry(country); return this; } /** ** Legal name of the organization with which the certificate subject is affiliated. *
* * @param organization * Legal name of the organization with which the certificate subject is affiliated. */ public void setOrganization(String organization) { this.organization = organization; } /** ** Legal name of the organization with which the certificate subject is affiliated. *
* * @return Legal name of the organization with which the certificate subject is affiliated. */ public String getOrganization() { return this.organization; } /** ** Legal name of the organization with which the certificate subject is affiliated. *
* * @param organization * Legal name of the organization with which the certificate subject is affiliated. * @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withOrganization(String organization) { setOrganization(organization); return this; } /** ** A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is * affiliated. *
* * @param organizationalUnit * A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is * affiliated. */ public void setOrganizationalUnit(String organizationalUnit) { this.organizationalUnit = organizationalUnit; } /** ** A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is * affiliated. *
* * @return A subdivision or unit of the organization (such as sales or finance) with which the certificate subject * is affiliated. */ public String getOrganizationalUnit() { return this.organizationalUnit; } /** ** A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is * affiliated. *
* * @param organizationalUnit * A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is * affiliated. * @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withOrganizationalUnit(String organizationalUnit) { setOrganizationalUnit(organizationalUnit); return this; } /** ** Disambiguating information for the certificate subject. *
* * @param distinguishedNameQualifier * Disambiguating information for the certificate subject. */ public void setDistinguishedNameQualifier(String distinguishedNameQualifier) { this.distinguishedNameQualifier = distinguishedNameQualifier; } /** ** Disambiguating information for the certificate subject. *
* * @return Disambiguating information for the certificate subject. */ public String getDistinguishedNameQualifier() { return this.distinguishedNameQualifier; } /** ** Disambiguating information for the certificate subject. *
* * @param distinguishedNameQualifier * Disambiguating information for the certificate subject. * @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withDistinguishedNameQualifier(String distinguishedNameQualifier) { setDistinguishedNameQualifier(distinguishedNameQualifier); return this; } /** ** State in which the subject of the certificate is located. *
* * @param state * State in which the subject of the certificate is located. */ public void setState(String state) { this.state = state; } /** ** State in which the subject of the certificate is located. *
* * @return State in which the subject of the certificate is located. */ public String getState() { return this.state; } /** ** State in which the subject of the certificate is located. *
* * @param state * State in which the subject of the certificate is located. * @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withState(String state) { setState(state); return this; } /** ** For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length * limit. *
** Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated * with the certificate subject. *
* * @param commonName * For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the * length limit. ** Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) * associated with the certificate subject. */ public void setCommonName(String commonName) { this.commonName = commonName; } /** *
* For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length * limit. *
** Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated * with the certificate subject. *
* * @return For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the * length limit. ** Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) * associated with the certificate subject. */ public String getCommonName() { return this.commonName; } /** *
* For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the length * limit. *
** Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) associated * with the certificate subject. *
* * @param commonName * For CA and end-entity certificates in a private PKI, the common name (CN) can be any string within the * length limit. ** Note: In publicly trusted certificates, the common name must be a fully qualified domain name (FQDN) * associated with the certificate subject. * @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withCommonName(String commonName) { setCommonName(commonName); return this; } /** *
* The certificate serial number. *
* * @param serialNumber * The certificate serial number. */ public void setSerialNumber(String serialNumber) { this.serialNumber = serialNumber; } /** ** The certificate serial number. *
* * @return The certificate serial number. */ public String getSerialNumber() { return this.serialNumber; } /** ** The certificate serial number. *
* * @param serialNumber * The certificate serial number. * @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withSerialNumber(String serialNumber) { setSerialNumber(serialNumber); return this; } /** ** The locality (such as a city or town) in which the certificate subject is located. *
* * @param locality * The locality (such as a city or town) in which the certificate subject is located. */ public void setLocality(String locality) { this.locality = locality; } /** ** The locality (such as a city or town) in which the certificate subject is located. *
* * @return The locality (such as a city or town) in which the certificate subject is located. */ public String getLocality() { return this.locality; } /** ** The locality (such as a city or town) in which the certificate subject is located. *
* * @param locality * The locality (such as a city or town) in which the certificate subject is located. * @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withLocality(String locality) { setLocality(locality); return this; } /** ** A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject. *
* * @param title * A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject. */ public void setTitle(String title) { this.title = title; } /** ** A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject. *
* * @return A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject. */ public String getTitle() { return this.title; } /** ** A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject. *
* * @param title * A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the certificate subject. * @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withTitle(String title) { setTitle(title); return this; } /** ** Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures * the surname is typically ordered first. *
* * @param surname * Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian * cultures the surname is typically ordered first. */ public void setSurname(String surname) { this.surname = surname; } /** ** Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures * the surname is typically ordered first. *
* * @return Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian * cultures the surname is typically ordered first. */ public String getSurname() { return this.surname; } /** ** Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian cultures * the surname is typically ordered first. *
* * @param surname * Family name. In the US and the UK, for example, the surname of an individual is ordered last. In Asian * cultures the surname is typically ordered first. * @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withSurname(String surname) { setSurname(surname); return this; } /** ** First name. *
* * @param givenName * First name. */ public void setGivenName(String givenName) { this.givenName = givenName; } /** ** First name. *
* * @return First name. */ public String getGivenName() { return this.givenName; } /** ** First name. *
* * @param givenName * First name. * @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withGivenName(String givenName) { setGivenName(givenName); return this; } /** ** Concatenation that typically contains the first letter of the GivenName, the first letter of the middle * name if one exists, and the first letter of the Surname. *
* * @param initials * Concatenation that typically contains the first letter of the GivenName, the first letter of the * middle name if one exists, and the first letter of the Surname. */ public void setInitials(String initials) { this.initials = initials; } /** ** Concatenation that typically contains the first letter of the GivenName, the first letter of the middle * name if one exists, and the first letter of the Surname. *
* * @return Concatenation that typically contains the first letter of the GivenName, the first letter of the * middle name if one exists, and the first letter of the Surname. */ public String getInitials() { return this.initials; } /** ** Concatenation that typically contains the first letter of the GivenName, the first letter of the middle * name if one exists, and the first letter of the Surname. *
* * @param initials * Concatenation that typically contains the first letter of the GivenName, the first letter of the * middle name if one exists, and the first letter of the Surname. * @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withInitials(String initials) { setInitials(initials); return this; } /** ** Typically a shortened version of a longer GivenName. For example, Jonathan is often shortened to John. * Elizabeth is often shortened to Beth, Liz, or Eliza. *
* * @param pseudonym * Typically a shortened version of a longer GivenName. For example, Jonathan is often shortened to * John. Elizabeth is often shortened to Beth, Liz, or Eliza. */ public void setPseudonym(String pseudonym) { this.pseudonym = pseudonym; } /** ** Typically a shortened version of a longer GivenName. For example, Jonathan is often shortened to John. * Elizabeth is often shortened to Beth, Liz, or Eliza. *
* * @return Typically a shortened version of a longer GivenName. For example, Jonathan is often shortened to * John. Elizabeth is often shortened to Beth, Liz, or Eliza. */ public String getPseudonym() { return this.pseudonym; } /** ** Typically a shortened version of a longer GivenName. For example, Jonathan is often shortened to John. * Elizabeth is often shortened to Beth, Liz, or Eliza. *
* * @param pseudonym * Typically a shortened version of a longer GivenName. For example, Jonathan is often shortened to * John. Elizabeth is often shortened to Beth, Liz, or Eliza. * @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withPseudonym(String pseudonym) { setPseudonym(pseudonym); return this; } /** ** Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and * III for third. *
* * @param generationQualifier * Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for * senior, and III for third. */ public void setGenerationQualifier(String generationQualifier) { this.generationQualifier = generationQualifier; } /** ** Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and * III for third. *
* * @return Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for * senior, and III for third. */ public String getGenerationQualifier() { return this.generationQualifier; } /** ** Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and * III for third. *
* * @param generationQualifier * Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for * senior, and III for third. * @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withGenerationQualifier(String generationQualifier) { setGenerationQualifier(generationQualifier); return this; } /** * ** Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object * identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID). *
** Custom attributes cannot be used in combination with standard attributes. *
** Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of * an object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID). *
** Custom attributes cannot be used in combination with standard attributes. *
*/ public java.util.List* Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object * identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID). *
** Custom attributes cannot be used in combination with standard attributes. *
** Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an * object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID). *
** Custom attributes cannot be used in combination with standard attributes. *
*/ public void setCustomAttributes(java.util.Collection* Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object * identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID). *
** Custom attributes cannot be used in combination with standard attributes. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCustomAttributes(java.util.Collection)} or {@link #withCustomAttributes(java.util.Collection)} if you * want to override the existing values. *
* * @param customAttributes ** Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an * object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID). *
** Custom attributes cannot be used in combination with standard attributes. *
* @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withCustomAttributes(CustomAttribute... customAttributes) { if (this.customAttributes == null) { setCustomAttributes(new java.util.ArrayList* Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an object * identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID). *
** Custom attributes cannot be used in combination with standard attributes. *
** Contains a sequence of one or more X.500 relative distinguished names (RDNs), each of which consists of an * object identifier (OID) and a value. For more information, see NIST’s definition of Object Identifier (OID). *
** Custom attributes cannot be used in combination with standard attributes. *
* @return Returns a reference to this object so that method calls can be chained together. */ public ASN1Subject withCustomAttributes(java.util.Collection