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

com.oracle.bmc.dataintegration.model.OracleAdwcWriteAttribute 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;

/**
 * Properties to configure writing to Oracle Autonomous Data Warehouse Cloud. 
* 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 = OracleAdwcWriteAttribute.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 OracleAdwcWriteAttribute extends AbstractWriteAttribute { @com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "") public static class Builder { /** The bucket name for the attribute. */ @com.fasterxml.jackson.annotation.JsonProperty("bucketName") private String bucketName; /** * The bucket name for the attribute. * * @param bucketName the value to set * @return this builder */ public Builder bucketName(String bucketName) { this.bucketName = bucketName; this.__explicitlySet__.add("bucketName"); return this; } /** The file name for the attribute. */ @com.fasterxml.jackson.annotation.JsonProperty("stagingFileName") private String stagingFileName; /** * The file name for the attribute. * * @param stagingFileName the value to set * @return this builder */ public Builder stagingFileName(String stagingFileName) { this.stagingFileName = stagingFileName; this.__explicitlySet__.add("stagingFileName"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("stagingDataAsset") private DataAsset stagingDataAsset; public Builder stagingDataAsset(DataAsset stagingDataAsset) { this.stagingDataAsset = stagingDataAsset; this.__explicitlySet__.add("stagingDataAsset"); return this; } @com.fasterxml.jackson.annotation.JsonProperty("stagingConnection") private Connection stagingConnection; public Builder stagingConnection(Connection stagingConnection) { this.stagingConnection = stagingConnection; this.__explicitlySet__.add("stagingConnection"); return this; } @com.fasterxml.jackson.annotation.JsonIgnore private final java.util.Set __explicitlySet__ = new java.util.HashSet(); public OracleAdwcWriteAttribute build() { OracleAdwcWriteAttribute model = new OracleAdwcWriteAttribute( this.bucketName, this.stagingFileName, this.stagingDataAsset, this.stagingConnection); for (String explicitlySetProperty : this.__explicitlySet__) { model.markPropertyAsExplicitlySet(explicitlySetProperty); } return model; } @com.fasterxml.jackson.annotation.JsonIgnore public Builder copy(OracleAdwcWriteAttribute model) { if (model.wasPropertyExplicitlySet("bucketName")) { this.bucketName(model.getBucketName()); } if (model.wasPropertyExplicitlySet("stagingFileName")) { this.stagingFileName(model.getStagingFileName()); } if (model.wasPropertyExplicitlySet("stagingDataAsset")) { this.stagingDataAsset(model.getStagingDataAsset()); } if (model.wasPropertyExplicitlySet("stagingConnection")) { this.stagingConnection(model.getStagingConnection()); } return this; } } /** Create a new builder. */ public static Builder builder() { return new Builder(); } public Builder toBuilder() { return new Builder().copy(this); } @Deprecated public OracleAdwcWriteAttribute( String bucketName, String stagingFileName, DataAsset stagingDataAsset, Connection stagingConnection) { super(); this.bucketName = bucketName; this.stagingFileName = stagingFileName; this.stagingDataAsset = stagingDataAsset; this.stagingConnection = stagingConnection; } /** The bucket name for the attribute. */ @com.fasterxml.jackson.annotation.JsonProperty("bucketName") private final String bucketName; /** * The bucket name for the attribute. * * @return the value */ public String getBucketName() { return bucketName; } /** The file name for the attribute. */ @com.fasterxml.jackson.annotation.JsonProperty("stagingFileName") private final String stagingFileName; /** * The file name for the attribute. * * @return the value */ public String getStagingFileName() { return stagingFileName; } @com.fasterxml.jackson.annotation.JsonProperty("stagingDataAsset") private final DataAsset stagingDataAsset; public DataAsset getStagingDataAsset() { return stagingDataAsset; } @com.fasterxml.jackson.annotation.JsonProperty("stagingConnection") private final Connection stagingConnection; public Connection getStagingConnection() { return stagingConnection; } @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("OracleAdwcWriteAttribute("); sb.append("super=").append(super.toString(includeByteArrayContents)); sb.append(", bucketName=").append(String.valueOf(this.bucketName)); sb.append(", stagingFileName=").append(String.valueOf(this.stagingFileName)); sb.append(", stagingDataAsset=").append(String.valueOf(this.stagingDataAsset)); sb.append(", stagingConnection=").append(String.valueOf(this.stagingConnection)); sb.append(")"); return sb.toString(); } @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof OracleAdwcWriteAttribute)) { return false; } OracleAdwcWriteAttribute other = (OracleAdwcWriteAttribute) o; return java.util.Objects.equals(this.bucketName, other.bucketName) && java.util.Objects.equals(this.stagingFileName, other.stagingFileName) && java.util.Objects.equals(this.stagingDataAsset, other.stagingDataAsset) && java.util.Objects.equals(this.stagingConnection, other.stagingConnection) && super.equals(other); } @Override public int hashCode() { final int PRIME = 59; int result = super.hashCode(); result = (result * PRIME) + (this.bucketName == null ? 43 : this.bucketName.hashCode()); result = (result * PRIME) + (this.stagingFileName == null ? 43 : this.stagingFileName.hashCode()); result = (result * PRIME) + (this.stagingDataAsset == null ? 43 : this.stagingDataAsset.hashCode()); result = (result * PRIME) + (this.stagingConnection == null ? 43 : this.stagingConnection.hashCode()); return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy