Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.datafactory.v2018_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner;

/**
* The Amazon Redshift table dataset.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("AmazonRedshiftTable")
@JsonFlatten
public class AmazonRedshiftTableDataset extends DatasetInner {
/**
* This property will be retired. Please consider using schema + table
* properties instead.
*/
@JsonProperty(value = "typeProperties.tableName")
private Object tableName;

/**
* The Amazon Redshift table name. Type: string (or Expression with
* resultType string).
*/
@JsonProperty(value = "typeProperties.table")
private Object table;

/**
* The Amazon Redshift schema name. Type: string (or Expression with
* resultType string).
*/
@JsonProperty(value = "typeProperties.schema")
private Object amazonRedshiftTableDatasetSchema;

/**
* Get this property will be retired. Please consider using schema + table properties instead.
*
* @return the tableName value
*/
public Object tableName() {
return this.tableName;
}

/**
* Set this property will be retired. Please consider using schema + table properties instead.
*
* @param tableName the tableName value to set
* @return the AmazonRedshiftTableDataset object itself.
*/
public AmazonRedshiftTableDataset withTableName(Object tableName) {
this.tableName = tableName;
return this;
}

/**
* Get the Amazon Redshift table name. Type: string (or Expression with resultType string).
*
* @return the table value
*/
public Object table() {
return this.table;
}

/**
* Set the Amazon Redshift table name. Type: string (or Expression with resultType string).
*
* @param table the table value to set
* @return the AmazonRedshiftTableDataset object itself.
*/
public AmazonRedshiftTableDataset withTable(Object table) {
this.table = table;
return this;
}

/**
* Get the Amazon Redshift schema name. Type: string (or Expression with resultType string).
*
* @return the amazonRedshiftTableDatasetSchema value
*/
public Object amazonRedshiftTableDatasetSchema() {
return this.amazonRedshiftTableDatasetSchema;
}

/**
* Set the Amazon Redshift schema name. Type: string (or Expression with resultType string).
*
* @param amazonRedshiftTableDatasetSchema the amazonRedshiftTableDatasetSchema value to set
* @return the AmazonRedshiftTableDataset object itself.
*/
public AmazonRedshiftTableDataset withAmazonRedshiftTableDatasetSchema(Object amazonRedshiftTableDatasetSchema) {
this.amazonRedshiftTableDatasetSchema = amazonRedshiftTableDatasetSchema;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.datafactory.v2018_06_01;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for AvroCompressionCodec.
*/
public final class AvroCompressionCodec extends ExpandableStringEnum<AvroCompressionCodec> {
/** Static value none for AvroCompressionCodec. */
public static final AvroCompressionCodec NONE = fromString("none");

/** Static value deflate for AvroCompressionCodec. */
public static final AvroCompressionCodec DEFLATE = fromString("deflate");

/** Static value snappy for AvroCompressionCodec. */
public static final AvroCompressionCodec SNAPPY = fromString("snappy");

/** Static value xz for AvroCompressionCodec. */
public static final AvroCompressionCodec XZ = fromString("xz");

/** Static value bzip2 for AvroCompressionCodec. */
public static final AvroCompressionCodec BZIP2 = fromString("bzip2");

/**
* Creates or finds a AvroCompressionCodec from its string representation.
* @param name a name to look for
* @return the corresponding AvroCompressionCodec
*/
@JsonCreator
public static AvroCompressionCodec fromString(String name) {
return fromString(name, AvroCompressionCodec.class);
}

/**
* @return known AvroCompressionCodec values
*/
public static Collection<AvroCompressionCodec> values() {
return values(AvroCompressionCodec.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.datafactory.v2018_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.management.datafactory.v2018_06_01.implementation.DatasetInner;

/**
* Avro dataset.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("Avro")
@JsonFlatten
public class AvroDataset extends DatasetInner {
/**
* The location of the avro storage.
*/
@JsonProperty(value = "typeProperties.location", required = true)
private DatasetLocation location;

/**
* Possible values include: 'none', 'deflate', 'snappy', 'xz', 'bzip2'.
*/
@JsonProperty(value = "typeProperties.avroCompressionCodec")
private AvroCompressionCodec avroCompressionCodec;

/**
* The avroCompressionLevel property.
*/
@JsonProperty(value = "typeProperties.avroCompressionLevel")
private Integer avroCompressionLevel;

/**
* Get the location of the avro storage.
*
* @return the location value
*/
public DatasetLocation location() {
return this.location;
}

/**
* Set the location of the avro storage.
*
* @param location the location value to set
* @return the AvroDataset object itself.
*/
public AvroDataset withLocation(DatasetLocation location) {
this.location = location;
return this;
}

/**
* Get possible values include: 'none', 'deflate', 'snappy', 'xz', 'bzip2'.
*
* @return the avroCompressionCodec value
*/
public AvroCompressionCodec avroCompressionCodec() {
return this.avroCompressionCodec;
}

/**
* Set possible values include: 'none', 'deflate', 'snappy', 'xz', 'bzip2'.
*
* @param avroCompressionCodec the avroCompressionCodec value to set
* @return the AvroDataset object itself.
*/
public AvroDataset withAvroCompressionCodec(AvroCompressionCodec avroCompressionCodec) {
this.avroCompressionCodec = avroCompressionCodec;
return this;
}

/**
* Get the avroCompressionLevel value.
*
* @return the avroCompressionLevel value
*/
public Integer avroCompressionLevel() {
return this.avroCompressionLevel;
}

/**
* Set the avroCompressionLevel value.
*
* @param avroCompressionLevel the avroCompressionLevel value to set
* @return the AvroDataset object itself.
*/
public AvroDataset withAvroCompressionLevel(Integer avroCompressionLevel) {
this.avroCompressionLevel = avroCompressionLevel;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.datafactory.v2018_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* A copy activity Avro sink.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("AvroSink")
public class AvroSink extends CopySink {
/**
* Avro store settings.
*/
@JsonProperty(value = "storeSettings")
private StoreWriteSettings storeSettings;

/**
* Avro format settings.
*/
@JsonProperty(value = "formatSettings")
private AvroWriteSettings formatSettings;

/**
* Get avro store settings.
*
* @return the storeSettings value
*/
public StoreWriteSettings storeSettings() {
return this.storeSettings;
}

/**
* Set avro store settings.
*
* @param storeSettings the storeSettings value to set
* @return the AvroSink object itself.
*/
public AvroSink withStoreSettings(StoreWriteSettings storeSettings) {
this.storeSettings = storeSettings;
return this;
}

/**
* Get avro format settings.
*
* @return the formatSettings value
*/
public AvroWriteSettings formatSettings() {
return this.formatSettings;
}

/**
* Set avro format settings.
*
* @param formatSettings the formatSettings value to set
* @return the AvroSink object itself.
*/
public AvroSink withFormatSettings(AvroWriteSettings formatSettings) {
this.formatSettings = formatSettings;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.datafactory.v2018_06_01;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
* A copy activity Avro source.
*/
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("AvroSource")
public class AvroSource extends CopySource {
/**
* Avro store settings.
*/
@JsonProperty(value = "storeSettings")
private StoreReadSettings storeSettings;

/**
* Get avro store settings.
*
* @return the storeSettings value
*/
public StoreReadSettings storeSettings() {
return this.storeSettings;
}

/**
* Set avro store settings.
*
* @param storeSettings the storeSettings value to set
* @return the AvroSource object itself.
*/
public AvroSource withStoreSettings(StoreReadSettings storeSettings) {
this.storeSettings = storeSettings;
return this;
}

}
Loading