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

com.aliyun.oss.model.JsonFormat Maven / Gradle / Ivy

Go to download

The Aliyun OSS SDK for Java used for accessing Aliyun Object Storage Service, includes all service and dependent JARs.

The newest version!
package com.aliyun.oss.model;

import java.io.Serializable;

public class JsonFormat implements Serializable {
    private JsonType jsonType;

    //Define the delimiter for `output` json records
    private String recordDelimiter = "\n";

    private boolean parseJsonNumberAsString = false;

    public JsonType getJsonType() {
        return jsonType;
    }

    public void setJsonType(JsonType jsonType) {
        this.jsonType = jsonType;
    }

    public JsonFormat withJsonType(JsonType jsonType) {
        setJsonType(jsonType);
        return this;
    }

    public String getRecordDelimiter() {
        return recordDelimiter;
    }

    public void setRecordDelimiter(String recordDelimiter) {
        this.recordDelimiter = recordDelimiter;
    }

    public boolean isParseJsonNumberAsString() {
        return parseJsonNumberAsString;
    }

    public void setParseJsonNumberAsString(boolean parseJsonNumberAsString) {
        this.parseJsonNumberAsString = parseJsonNumberAsString;
    }

    public JsonFormat withParseJsonNumberAsString(boolean parseJsonNumberAsString) {
        setParseJsonNumberAsString(parseJsonNumberAsString);
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy