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

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

There is a newer version: 3.46.1
Show newest version
/**
 * 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.dataintegration.model;

/**
 * The information about the read operation. 
* 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 = ReadOperationConfig.Builder.class) @com.fasterxml.jackson.annotation.JsonTypeInfo( use = com.fasterxml.jackson.annotation.JsonTypeInfo.Id.NAME, include = com.fasterxml.jackson.annotation.JsonTypeInfo.As.PROPERTY, property = "modelType") @com.fasterxml.jackson.annotation.JsonFilter( com.oracle.bmc.http.client.internal.ExplicitlySetFilter.NAME) public final class ReadOperationConfig extends AbstractDataOperationConfig { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { @com.fasterxml.jackson.annotation.JsonProperty("metadataConfigProperties") private java.util.Map metadataConfigProperties; public Builder metadataConfigProperties( java.util.Map metadataConfigProperties) { this.metadataConfigProperties = metadataConfigProperties; this.__explicitlySet__.add("metadataConfigProperties"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("derivedAttributes") private java.util.Map derivedAttributes; public Builder derivedAttributes(java.util.Map derivedAttributes) { this.derivedAttributes = derivedAttributes; this.__explicitlySet__.add("derivedAttributes"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("callAttribute") private BipCallAttribute callAttribute; public Builder callAttribute(BipCallAttribute callAttribute) { this.callAttribute = callAttribute; this.__explicitlySet__.add("callAttribute"); return this; } /** The object key. */ @com.fasterxml.jackson.annotation.JsonProperty("key") private String key; /** * The object key. * * @param key the value to set * @return this builder */ public Builder key(String key) { this.key = key; this.__explicitlySet__.add("key"); return this; } /** The object's model version. */ @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") private String modelVersion; /** * The object's model version. * * @param modelVersion the value to set * @return this builder */ public Builder modelVersion(String modelVersion) { this.modelVersion = modelVersion; this.__explicitlySet__.add("modelVersion"); 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; } /** An array of operations. */ @com.fasterxml.jackson.annotation.JsonProperty("operations") private java.util.List operations; /** * An array of operations. * * @param operations the value to set * @return this builder */ public Builder operations(java.util.List operations) { this.operations = operations; this.__explicitlySet__.add("operations"); 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; } @com.fasterxml.jackson.annotation.JsonProperty("partitionConfig") private PartitionConfig partitionConfig; public Builder partitionConfig(PartitionConfig partitionConfig) { this.partitionConfig = partitionConfig; this.__explicitlySet__.add("partitionConfig"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("readAttribute") private AbstractReadAttribute readAttribute; public Builder readAttribute(AbstractReadAttribute readAttribute) { this.readAttribute = readAttribute; this.__explicitlySet__.add("readAttribute"); return this; } /** * The status of an object that can be set to value 1 for shallow references across objects, * other values reserved. */ @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") private Integer objectStatus; /** * The status of an object that can be set to value 1 for shallow references across objects, * other values reserved. * * @param objectStatus the value to set * @return this builder */ public Builder objectStatus(Integer objectStatus) { this.objectStatus = objectStatus; this.__explicitlySet__.add("objectStatus"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public ReadOperationConfig build() { ReadOperationConfig model = new ReadOperationConfig( this.metadataConfigProperties, this.derivedAttributes, this.callAttribute, this.key, this.modelVersion, this.parentRef, this.operations, this.dataFormat, this.partitionConfig, this.readAttribute, this.objectStatus); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(ReadOperationConfig model) { if (model.wasPropertyExplicitlySet("metadataConfigProperties")) { this.metadataConfigProperties(model.getMetadataConfigProperties()); } if (model.wasPropertyExplicitlySet("derivedAttributes")) { this.derivedAttributes(model.getDerivedAttributes()); } if (model.wasPropertyExplicitlySet("callAttribute")) { this.callAttribute(model.getCallAttribute()); } if (model.wasPropertyExplicitlySet("key")) { this.key(model.getKey()); } if (model.wasPropertyExplicitlySet("modelVersion")) { this.modelVersion(model.getModelVersion()); } if (model.wasPropertyExplicitlySet("parentRef")) { this.parentRef(model.getParentRef()); } if (model.wasPropertyExplicitlySet("operations")) { this.operations(model.getOperations()); } if (model.wasPropertyExplicitlySet("dataFormat")) { this.dataFormat(model.getDataFormat()); } if (model.wasPropertyExplicitlySet("partitionConfig")) { this.partitionConfig(model.getPartitionConfig()); } if (model.wasPropertyExplicitlySet("readAttribute")) { this.readAttribute(model.getReadAttribute()); } if (model.wasPropertyExplicitlySet("objectStatus")) { this.objectStatus(model.getObjectStatus()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } @Deprecated public ReadOperationConfig( java.util.Map metadataConfigProperties, java.util.Map derivedAttributes, BipCallAttribute callAttribute, String key, String modelVersion, ParentReference parentRef, java.util.List operations, DataFormat dataFormat, PartitionConfig partitionConfig, AbstractReadAttribute readAttribute, Integer objectStatus) { super(metadataConfigProperties, derivedAttributes, callAttribute); this.key = key; this.modelVersion = modelVersion; this.parentRef = parentRef; this.operations = operations; this.dataFormat = dataFormat; this.partitionConfig = partitionConfig; this.readAttribute = readAttribute; this.objectStatus = objectStatus; } /** The object key. */ @com.fasterxml.jackson.annotation.JsonProperty("key") private final String key; /** * The object key. * * @return the value */ public String getKey() { return key; } /** The object's model version. */ @com.fasterxml.jackson.annotation.JsonProperty("modelVersion") private final String modelVersion; /** * The object's model version. * * @return the value */ public String getModelVersion() { return modelVersion; } @com.fasterxml.jackson.annotation.JsonProperty("parentRef") private final ParentReference parentRef; public ParentReference getParentRef() { return parentRef; } /** An array of operations. */ @com.fasterxml.jackson.annotation.JsonProperty("operations") private final java.util.List operations; /** * An array of operations. * * @return the value */ public java.util.List getOperations() { return operations; } @com.fasterxml.jackson.annotation.JsonProperty("dataFormat") private final DataFormat dataFormat; public DataFormat getDataFormat() { return dataFormat; } @com.fasterxml.jackson.annotation.JsonProperty("partitionConfig") private final PartitionConfig partitionConfig; public PartitionConfig getPartitionConfig() { return partitionConfig; } @com.fasterxml.jackson.annotation.JsonProperty("readAttribute") private final AbstractReadAttribute readAttribute; public AbstractReadAttribute getReadAttribute() { return readAttribute; } /** * The status of an object that can be set to value 1 for shallow references across objects, * other values reserved. */ @com.fasterxml.jackson.annotation.JsonProperty("objectStatus") private final Integer objectStatus; /** * The status of an object that can be set to value 1 for shallow references across objects, * other values reserved. * * @return the value */ public Integer getObjectStatus() { return objectStatus; } @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("ReadOperationConfig("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", key=").append(String.valueOf(this.key)); sb.append(", modelVersion=").append(String.valueOf(this.modelVersion)); sb.append(", parentRef=").append(String.valueOf(this.parentRef)); sb.append(", operations=").append(String.valueOf(this.operations)); sb.append(", dataFormat=").append(String.valueOf(this.dataFormat)); sb.append(", partitionConfig=").append(String.valueOf(this.partitionConfig)); sb.append(", readAttribute=").append(String.valueOf(this.readAttribute)); sb.append(", objectStatus=").append(String.valueOf(this.objectStatus)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof ReadOperationConfig)) { return false; } ReadOperationConfig other = (ReadOperationConfig) o; return java.util.Objects.equals(this.key, other.key) && java.util.Objects.equals(this.modelVersion, other.modelVersion) && java.util.Objects.equals(this.parentRef, other.parentRef) && java.util.Objects.equals(this.operations, other.operations) && java.util.Objects.equals(this.dataFormat, other.dataFormat) && java.util.Objects.equals(this.partitionConfig, other.partitionConfig) && java.util.Objects.equals(this.readAttribute, other.readAttribute) && java.util.Objects.equals(this.objectStatus, other.objectStatus) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.key == null ? 43 : this.key.hashCode()); result = (result * PRIME) + (this.modelVersion == null ? 43 : this.modelVersion.hashCode()); result = (result * PRIME) + (this.parentRef == null ? 43 : this.parentRef.hashCode()); result = (result * PRIME) + (this.operations == null ? 43 : this.operations.hashCode()); result = (result * PRIME) + (this.dataFormat == null ? 43 : this.dataFormat.hashCode()); result = (result * PRIME) + (this.partitionConfig == null ? 43 : this.partitionConfig.hashCode()); result = (result * PRIME) + (this.readAttribute == null ? 43 : this.readAttribute.hashCode()); result = (result * PRIME) + (this.objectStatus == null ? 43 : this.objectStatus.hashCode()); return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy