com.pulumi.azurenative.streamanalytics.outputs.CsvSerializationResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.streamanalytics.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class CsvSerializationResponse {
/**
* @return Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests.
*
*/
private @Nullable String encoding;
/**
* @return Specifies the delimiter that will be used to separate comma-separated value (CSV) records. See https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a list of supported values. Required on PUT (CreateOrReplace) requests.
*
*/
private @Nullable String fieldDelimiter;
/**
* @return Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.
* Expected value is 'Csv'.
*
*/
private String type;
private CsvSerializationResponse() {}
/**
* @return Specifies the encoding of the incoming data in the case of input and the encoding of outgoing data in the case of output. Required on PUT (CreateOrReplace) requests.
*
*/
public Optional encoding() {
return Optional.ofNullable(this.encoding);
}
/**
* @return Specifies the delimiter that will be used to separate comma-separated value (CSV) records. See https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-input or https://docs.microsoft.com/en-us/rest/api/streamanalytics/stream-analytics-output for a list of supported values. Required on PUT (CreateOrReplace) requests.
*
*/
public Optional fieldDelimiter() {
return Optional.ofNullable(this.fieldDelimiter);
}
/**
* @return Indicates the type of serialization that the input or output uses. Required on PUT (CreateOrReplace) requests.
* Expected value is 'Csv'.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(CsvSerializationResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String encoding;
private @Nullable String fieldDelimiter;
private String type;
public Builder() {}
public Builder(CsvSerializationResponse defaults) {
Objects.requireNonNull(defaults);
this.encoding = defaults.encoding;
this.fieldDelimiter = defaults.fieldDelimiter;
this.type = defaults.type;
}
@CustomType.Setter
public Builder encoding(@Nullable String encoding) {
this.encoding = encoding;
return this;
}
@CustomType.Setter
public Builder fieldDelimiter(@Nullable String fieldDelimiter) {
this.fieldDelimiter = fieldDelimiter;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("CsvSerializationResponse", "type");
}
this.type = type;
return this;
}
public CsvSerializationResponse build() {
final var _resultValue = new CsvSerializationResponse();
_resultValue.encoding = encoding;
_resultValue.fieldDelimiter = fieldDelimiter;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy