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

com.oracle.bmc.certificatesmanagement.model.AssociationSummary Maven / Gradle / Ivy

/**
 * Copyright (c) 2016, 2022, 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.certificatesmanagement.model;

/**
 * The details of the association.
 * 
* 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 #__explicitlySet__}. The {@link #hashCode()} and {@link #equals(Object)} methods are implemented to take * {@link #__explicitlySet__} into account. The constructor, on the other hand, does not set {@link #__explicitlySet__} * (since the constructor cannot distinguish explicit {@code null} from unset {@code null}). **/ @javax.annotation.Generated(value = "OracleSDKGenerator", comments = "API Version: 20210224") @lombok.AllArgsConstructor(onConstructor = @__({@Deprecated})) @lombok.Value @com.fasterxml.jackson.databind.annotation.JsonDeserialize( builder = AssociationSummary.Builder.class ) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) @lombok.Builder(builderClassName = "Builder", toBuilder = true) public class AssociationSummary { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") @lombok.experimental.Accessors(fluent = true) public static class Builder { @com.fasterxml.jackson.annotation.JsonProperty("id") private String id; public Builder id(String id) { this.id = id; this.__explicitlySet__.add("id"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("name") private String name; public Builder name(String name) { this.name = name; this.__explicitlySet__.add("name"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("timeCreated") private java.util.Date timeCreated; public Builder timeCreated(java.util.Date timeCreated) { this.timeCreated = timeCreated; this.__explicitlySet__.add("timeCreated"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") private AssociationLifecycleState lifecycleState; public Builder lifecycleState(AssociationLifecycleState lifecycleState) { this.lifecycleState = lifecycleState; this.__explicitlySet__.add("lifecycleState"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("certificatesResourceId") private String certificatesResourceId; public Builder certificatesResourceId(String certificatesResourceId) { this.certificatesResourceId = certificatesResourceId; this.__explicitlySet__.add("certificatesResourceId"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("associatedResourceId") private String associatedResourceId; public Builder associatedResourceId(String associatedResourceId) { this.associatedResourceId = associatedResourceId; this.__explicitlySet__.add("associatedResourceId"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") private String compartmentId; public Builder compartmentId(String compartmentId) { this.compartmentId = compartmentId; this.__explicitlySet__.add("compartmentId"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("associationType") private AssociationType associationType; public Builder associationType(AssociationType associationType) { this.associationType = associationType; this.__explicitlySet__.add("associationType"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public AssociationSummary build() { AssociationSummary __instance__ = new AssociationSummary( id, name, timeCreated, lifecycleState, certificatesResourceId, associatedResourceId, compartmentId, associationType); __instance__.__explicitlySet__.addAll(__explicitlySet__); return __instance__; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(AssociationSummary o) { Builder copiedBuilder = id(o.getId()) .name(o.getName()) .timeCreated(o.getTimeCreated()) .lifecycleState(o.getLifecycleState()) .certificatesResourceId(o.getCertificatesResourceId()) .associatedResourceId(o.getAssociatedResourceId()) .compartmentId(o.getCompartmentId()) .associationType(o.getAssociationType()); copiedBuilder.__explicitlySet__.retainAll(o.__explicitlySet__); return copiedBuilder; } } /** * Create a new builder. */ public static Builder builder() { return new Builder(); } /** * The OCID of the association. **/ @com.fasterxml.jackson.annotation.JsonProperty("id") String id; /** * A user-friendly name generated by the service for the association. Name format follows the pattern [certificatesResourceEntityType]-[associatedResourceEntityType]-UUID. **/ @com.fasterxml.jackson.annotation.JsonProperty("name") String name; /** * A property indicating when the association 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") java.util.Date timeCreated; /** * The current lifecycle state of the association. **/ @com.fasterxml.jackson.annotation.JsonProperty("lifecycleState") AssociationLifecycleState lifecycleState; /** * The OCID of the certificate-related resource associated with another Oracle Cloud Infrastructure resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("certificatesResourceId") String certificatesResourceId; /** * The OCID of the associated resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("associatedResourceId") String associatedResourceId; /** * The compartment OCID of the association. This is strongly tied to the compartment OCID of the certificate-related resource. **/ @com.fasterxml.jackson.annotation.JsonProperty("compartmentId") String compartmentId; /** * Type of the association. **/ @com.fasterxml.jackson.annotation.JsonProperty("associationType") AssociationType associationType; @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy