com.ionoscloud.s3.messages.OutputSerialization Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ionos-cloud-sdk-s3 Show documentation
Show all versions of ionos-cloud-sdk-s3 Show documentation
IONOS Java SDK for Amazon S3 Compatible Cloud Storage
The newest version!
package com.ionoscloud.s3.messages;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;
/**
* Helper class to denote Output Serialization information of {@link SelectObjectContentRequest}.
*/
@Root(name = "OutputSerialization")
@edu.umd.cs.findbugs.annotations.SuppressFBWarnings(value = "URF_UNREAD_FIELD")
public class OutputSerialization {
@Element(name = "CSV", required = false)
private CsvOutputSerialization csv;
@Element(name = "JSON", required = false)
private JsonOutputSerialization json;
/** Constructs a new OutputSerialization object with CSV. */
public OutputSerialization(
Character fieldDelimiter,
Character quoteCharacter,
Character quoteEscapeCharacter,
QuoteFields quoteFields,
Character recordDelimiter) {
this.csv =
new CsvOutputSerialization(
fieldDelimiter, quoteCharacter, quoteEscapeCharacter, quoteFields, recordDelimiter);
}
/** Constructs a new OutputSerialization object with JSON. */
public OutputSerialization(Character recordDelimiter) {
this.json = new JsonOutputSerialization(recordDelimiter);
}
}