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

com.oracle.bmc.certificates.model.CertificateAuthorityBundleVersionSummary Maven / Gradle / Ivy

There is a newer version: 3.49.0
Show newest version
/**
 * Copyright (c) 2016, 2024, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */
package com.oracle.bmc.certificates.model;

/**
 * The properties of a version of a bundle for a certificate authority (CA). Certificate authority
 * bundle version summary objects do not include the actual contents of the certificate. 
* Note: Objects should always be created or deserialized using the {@link Builder}. This model * distinguishes fields that are {@code null} because they are unset from fields that are explicitly * set to {@code null}. This is done in the setter methods of the {@link Builder}, which maintain a * set of all explicitly set fields called {@link Builder#__explicitlySet__}. The {@link * #hashCode()} and {@link #equals(Object)} methods are implemented to take the explicitly set * fields into account. The constructor, on the other hand, does not take the explicitly set fields * into account (since the constructor cannot distinguish explicit {@code null} from unset {@code * null}). */ @jakarta.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210224") @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = CertificateAuthorityBundleVersionSummary.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel.EXPLICITLY_SET_FILTER_NAME) public final class CertificateAuthorityBundleVersionSummary extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({ "certificateAuthorityId", "serialNumber", "timeCreated", "versionNumber", "versionName", "certificateAuthorityName", "timeOfDeletion", "validity", "stages", "revocationStatus" }) public CertificateAuthorityBundleVersionSummary( String certificateAuthorityId, String serialNumber, java.util.Date timeCreated, Long versionNumber, String versionName, String certificateAuthorityName, java.util.Date timeOfDeletion, Validity validity, java.util.List stages, RevocationStatus revocationStatus) { super(); this.certificateAuthorityId = certificateAuthorityId; this.serialNumber = serialNumber; this.timeCreated = timeCreated; this.versionNumber = versionNumber; this.versionName = versionName; this.certificateAuthorityName = certificateAuthorityName; this.timeOfDeletion = timeOfDeletion; this.validity = validity; this.stages = stages; this.revocationStatus = revocationStatus; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** The OCID of the certificate authority (CA). */ @com.fasterxml.jackson.annotation.JsonProperty("certificateAuthorityId") private String certificateAuthorityId; /** * The OCID of the certificate authority (CA). * * @param certificateAuthorityId the value to set * @return this builder */ public Builder certificateAuthorityId(String certificateAuthorityId) { this.certificateAuthorityId = certificateAuthorityId; this.__explicitlySet__.add("certificateAuthorityId"); return this; } /** * A unique certificate identifier used in certificate revocation tracking, formatted as * octets. Example: {@code 03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF} */ @com.fasterxml.jackson.annotation.JsonProperty("serialNumber") private String serialNumber; /** * A unique certificate identifier used in certificate revocation tracking, formatted as * octets. Example: {@code 03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF} * * @param serialNumber the value to set * @return this builder */ public Builder serialNumber(String serialNumber) { this.serialNumber = serialNumber; this.__explicitlySet__.add("serialNumber"); return this; } /** * An optional property indicating when the CA version was created, expressed in [RFC * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code * 2019-04-03T21:10:29.600Z} */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; /** * An optional property indicating when the CA version was created, expressed in [RFC * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code * 2019-04-03T21:10:29.600Z} * * @param timeCreated the value to set * @return this builder */ public Builder timeCreated(java.util.Date timeCreated) { this.timeCreated = timeCreated; this.__explicitlySet__.add("timeCreated"); return this; } /** The version number of the CA. */ @com.fasterxml.jackson.annotation.JsonProperty("versionNumber") private Long versionNumber; /** * The version number of the CA. * * @param versionNumber the value to set * @return this builder */ public Builder versionNumber(Long versionNumber) { this.versionNumber = versionNumber; this.__explicitlySet__.add("versionNumber"); return this; } /** * The name of the CA version. When this value is not null, the name is unique across CA * versions for a given CA. */ @com.fasterxml.jackson.annotation.JsonProperty("versionName") private String versionName; /** * The name of the CA version. When this value is not null, the name is unique across CA * versions for a given CA. * * @param versionName the value to set * @return this builder */ public Builder versionName(String versionName) { this.versionName = versionName; this.__explicitlySet__.add("versionName"); return this; } /** The name of the CA. */ @com.fasterxml.jackson.annotation.JsonProperty("certificateAuthorityName") private String certificateAuthorityName; /** * The name of the CA. * * @param certificateAuthorityName the value to set * @return this builder */ public Builder certificateAuthorityName(String certificateAuthorityName) { this.certificateAuthorityName = certificateAuthorityName; this.__explicitlySet__.add("certificateAuthorityName"); return this; } /** * An optional property indicating when to delete the CA version, expressed in [RFC * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code * 2019-04-03T21:10:29.600Z} */ @com.fasterxml.jackson.annotation.JsonProperty("timeOfDeletion") private java.util.Date timeOfDeletion; /** * An optional property indicating when to delete the CA version, expressed in [RFC * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code * 2019-04-03T21:10:29.600Z} * * @param timeOfDeletion the value to set * @return this builder */ public Builder timeOfDeletion(java.util.Date timeOfDeletion) { this.timeOfDeletion = timeOfDeletion; this.__explicitlySet__.add("timeOfDeletion"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("validity") private Validity validity; public Builder validity(Validity validity) { this.validity = validity; this.__explicitlySet__.add("validity"); return this; } /** A list of rotation states for this CA version. */ @com.fasterxml.jackson.annotation.JsonProperty("stages") private java.util.List stages; /** * A list of rotation states for this CA version. * * @param stages the value to set * @return this builder */ public Builder stages(java.util.List stages) { this.stages = stages; this.__explicitlySet__.add("stages"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("revocationStatus") private RevocationStatus revocationStatus; public Builder revocationStatus(RevocationStatus revocationStatus) { this.revocationStatus = revocationStatus; this.__explicitlySet__.add("revocationStatus"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public CertificateAuthorityBundleVersionSummary build() { CertificateAuthorityBundleVersionSummary model = new CertificateAuthorityBundleVersionSummary( this.certificateAuthorityId, this.serialNumber, this.timeCreated, this.versionNumber, this.versionName, this.certificateAuthorityName, this.timeOfDeletion, this.validity, this.stages, this.revocationStatus); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(CertificateAuthorityBundleVersionSummary model) { if (model.wasPropertyExplicitlySet("certificateAuthorityId")) { this.certificateAuthorityId(model.getCertificateAuthorityId()); } if (model.wasPropertyExplicitlySet("serialNumber")) { this.serialNumber(model.getSerialNumber()); } if (model.wasPropertyExplicitlySet("timeCreated")) { this.timeCreated(model.getTimeCreated()); } if (model.wasPropertyExplicitlySet("versionNumber")) { this.versionNumber(model.getVersionNumber()); } if (model.wasPropertyExplicitlySet("versionName")) { this.versionName(model.getVersionName()); } if (model.wasPropertyExplicitlySet("certificateAuthorityName")) { this.certificateAuthorityName(model.getCertificateAuthorityName()); } if (model.wasPropertyExplicitlySet("timeOfDeletion")) { this.timeOfDeletion(model.getTimeOfDeletion()); } if (model.wasPropertyExplicitlySet("validity")) { this.validity(model.getValidity()); } if (model.wasPropertyExplicitlySet("stages")) { this.stages(model.getStages()); } if (model.wasPropertyExplicitlySet("revocationStatus")) { this.revocationStatus(model.getRevocationStatus()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } /** The OCID of the certificate authority (CA). */ @com.fasterxml.jackson.annotation.JsonProperty("certificateAuthorityId") private final String certificateAuthorityId; /** * The OCID of the certificate authority (CA). * * @return the value */ public String getCertificateAuthorityId() { return certificateAuthorityId; } /** * A unique certificate identifier used in certificate revocation tracking, formatted as octets. * Example: {@code 03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF} */ @com.fasterxml.jackson.annotation.JsonProperty("serialNumber") private final String serialNumber; /** * A unique certificate identifier used in certificate revocation tracking, formatted as octets. * Example: {@code 03 AC FC FA CC B3 CB 02 B8 F8 DE F5 85 E7 7B FF} * * @return the value */ public String getSerialNumber() { return serialNumber; } /** * An optional property indicating when the CA version was created, expressed in [RFC * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code * 2019-04-03T21:10:29.600Z} */ @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private final java.util.Date timeCreated; /** * An optional property indicating when the CA version was created, expressed in [RFC * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code * 2019-04-03T21:10:29.600Z} * * @return the value */ public java.util.Date getTimeCreated() { return timeCreated; } /** The version number of the CA. */ @com.fasterxml.jackson.annotation.JsonProperty("versionNumber") private final Long versionNumber; /** * The version number of the CA. * * @return the value */ public Long getVersionNumber() { return versionNumber; } /** * The name of the CA version. When this value is not null, the name is unique across CA * versions for a given CA. */ @com.fasterxml.jackson.annotation.JsonProperty("versionName") private final String versionName; /** * The name of the CA version. When this value is not null, the name is unique across CA * versions for a given CA. * * @return the value */ public String getVersionName() { return versionName; } /** The name of the CA. */ @com.fasterxml.jackson.annotation.JsonProperty("certificateAuthorityName") private final String certificateAuthorityName; /** * The name of the CA. * * @return the value */ public String getCertificateAuthorityName() { return certificateAuthorityName; } /** * An optional property indicating when to delete the CA version, expressed in [RFC * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code * 2019-04-03T21:10:29.600Z} */ @com.fasterxml.jackson.annotation.JsonProperty("timeOfDeletion") private final java.util.Date timeOfDeletion; /** * An optional property indicating when to delete the CA version, expressed in [RFC * 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: {@code * 2019-04-03T21:10:29.600Z} * * @return the value */ public java.util.Date getTimeOfDeletion() { return timeOfDeletion; } @com.fasterxml.jackson.annotation.JsonProperty("validity") private final Validity validity; public Validity getValidity() { return validity; } /** A list of rotation states for this CA version. */ @com.fasterxml.jackson.annotation.JsonProperty("stages") private final java.util.List stages; /** * A list of rotation states for this CA version. * * @return the value */ public java.util.List getStages() { return stages; } @com.fasterxml.jackson.annotation.JsonProperty("revocationStatus") private final RevocationStatus revocationStatus; public RevocationStatus getRevocationStatus() { return revocationStatus; } @Override public String toString() { return this.toString(true); } /** * Return a string representation of the object. * * @param includeByteArrayContents true to include the full contents of byte arrays * @return string representation */ public String toString(boolean includeByteArrayContents) { java.lang.StringBuilder sb = new java.lang.StringBuilder(); sb.append("CertificateAuthorityBundleVersionSummary("); sb.append("super=").append(super.toString()); sb.append("certificateAuthorityId=").append(String.valueOf(this.certificateAuthorityId)); sb.append(", serialNumber=").append(String.valueOf(this.serialNumber)); sb.append(", timeCreated=").append(String.valueOf(this.timeCreated)); sb.append(", versionNumber=").append(String.valueOf(this.versionNumber)); sb.append(", versionName=").append(String.valueOf(this.versionName)); sb.append(", certificateAuthorityName=") .append(String.valueOf(this.certificateAuthorityName)); sb.append(", timeOfDeletion=").append(String.valueOf(this.timeOfDeletion)); sb.append(", validity=").append(String.valueOf(this.validity)); sb.append(", stages=").append(String.valueOf(this.stages)); sb.append(", revocationStatus=").append(String.valueOf(this.revocationStatus)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof CertificateAuthorityBundleVersionSummary)) { return false; } CertificateAuthorityBundleVersionSummary other = (CertificateAuthorityBundleVersionSummary) o; return java.util.Objects.equals(this.certificateAuthorityId, other.certificateAuthorityId) && java.util.Objects.equals(this.serialNumber, other.serialNumber) && java.util.Objects.equals(this.timeCreated, other.timeCreated) && java.util.Objects.equals(this.versionNumber, other.versionNumber) && java.util.Objects.equals(this.versionName, other.versionName) && java.util.Objects.equals( this.certificateAuthorityName, other.certificateAuthorityName) && java.util.Objects.equals(this.timeOfDeletion, other.timeOfDeletion) && java.util.Objects.equals(this.validity, other.validity) && java.util.Objects.equals(this.stages, other.stages) && java.util.Objects.equals(this.revocationStatus, other.revocationStatus) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.certificateAuthorityId == null ? 43 : this.certificateAuthorityId.hashCode()); result = (result * PRIME) + (this.serialNumber == null ? 43 : this.serialNumber.hashCode()); result = (result * PRIME) + (this.timeCreated == null ? 43 : this.timeCreated.hashCode()); result = (result * PRIME) + (this.versionNumber == null ? 43 : this.versionNumber.hashCode()); result = (result * PRIME) + (this.versionName == null ? 43 : this.versionName.hashCode()); result = (result * PRIME) + (this.certificateAuthorityName == null ? 43 : this.certificateAuthorityName.hashCode()); result = (result * PRIME) + (this.timeOfDeletion == null ? 43 : this.timeOfDeletion.hashCode()); result = (result * PRIME) + (this.validity == null ? 43 : this.validity.hashCode()); result = (result * PRIME) + (this.stages == null ? 43 : this.stages.hashCode()); result = (result * PRIME) + (this.revocationStatus == null ? 43 : this.revocationStatus.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy