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

com.oracle.bmc.dataintegration.model.EnrichedEntity Maven / Gradle / Ivy

There is a newer version: 3.49.0
Show newest version
/**
 * Copyright (c) 2016, 2023, 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.dataintegration.model;

/**
 * This is used to specify runtime parameters for data entities such as files that need both the data entity and the format.
 * 
* 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: 20200430") @com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = EnrichedEntity.Builder.class) @com.fasterxml.jackson.annotation.JsonFilter(com.oracle.bmc.http.internal.ExplicitlySetFilter.NAME) public final class EnrichedEntity extends com.oracle.bmc.http.internal.ExplicitlySetBmcModel { @Deprecated @java.beans.ConstructorProperties({"entity", "dataFormat", "modelType", "parentRef"}) public EnrichedEntity( DataEntity entity, DataFormat dataFormat, String modelType, ParentReference parentRef) { super(); this.entity = entity; this.dataFormat = dataFormat; this.modelType = modelType; this.parentRef = parentRef; } @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { @com.fasterxml.jackson.annotation.JsonProperty("entity") private DataEntity entity; public Builder entity(DataEntity entity) { this.entity = entity; this.__explicitlySet__.add("entity"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("dataFormat") private DataFormat dataFormat; public Builder dataFormat(DataFormat dataFormat) { this.dataFormat = dataFormat; this.__explicitlySet__.add("dataFormat"); return this; } /** * The model type for the entity which is referenced. **/ @com.fasterxml.jackson.annotation.JsonProperty("modelType") private String modelType; /** * The model type for the entity which is referenced. * @param modelType the value to set * @return this builder **/ public Builder modelType(String modelType) { this.modelType = modelType; this.__explicitlySet__.add("modelType"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("parentRef") private ParentReference parentRef; public Builder parentRef(ParentReference parentRef) { this.parentRef = parentRef; this.__explicitlySet__.add("parentRef"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public EnrichedEntity build() { EnrichedEntity model = new EnrichedEntity( this.entity, this.dataFormat, this.modelType, this.parentRef); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(EnrichedEntity model) { if (model.wasPropertyExplicitlySet("entity")) { this.entity(model.getEntity()); } if (model.wasPropertyExplicitlySet("dataFormat")) { this.dataFormat(model.getDataFormat()); } if (model.wasPropertyExplicitlySet("modelType")) { this.modelType(model.getModelType()); } if (model.wasPropertyExplicitlySet("parentRef")) { this.parentRef(model.getParentRef()); } return this; } } /** * Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } @com.fasterxml.jackson.annotation.JsonProperty("entity") private final DataEntity entity; public DataEntity getEntity() { return entity; } @com.fasterxml.jackson.annotation.JsonProperty("dataFormat") private final DataFormat dataFormat; public DataFormat getDataFormat() { return dataFormat; } /** * The model type for the entity which is referenced. **/ @com.fasterxml.jackson.annotation.JsonProperty("modelType") private final String modelType; /** * The model type for the entity which is referenced. * @return the value **/ public String getModelType() { return modelType; } @com.fasterxml.jackson.annotation.JsonProperty("parentRef") private final ParentReference parentRef; public ParentReference getParentRef() { return parentRef; } @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("EnrichedEntity("); sb.append("super=").append(super.toString()); sb.append("entity=").append(String.valueOf(this.entity)); sb.append(", dataFormat=").append(String.valueOf(this.dataFormat)); sb.append(", modelType=").append(String.valueOf(this.modelType)); sb.append(", parentRef=").append(String.valueOf(this.parentRef)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof EnrichedEntity)) { return false; } EnrichedEntity other = (EnrichedEntity) o; return java.util.Objects.equals(this.entity, other.entity) && java.util.Objects.equals(this.dataFormat, other.dataFormat) && java.util.Objects.equals(this.modelType, other.modelType) && java.util.Objects.equals(this.parentRef, other.parentRef) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = 1; result = (result * PRIME) + (this.entity == null ? 43 : this.entity.hashCode()); result = (result * PRIME) + (this.dataFormat == null ? 43 : this.dataFormat.hashCode()); result = (result * PRIME) + (this.modelType == null ? 43 : this.modelType.hashCode()); result = (result * PRIME) + (this.parentRef == null ? 43 : this.parentRef.hashCode()); result = (result * PRIME) + super.hashCode(); return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy