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

com.aliyun.datahub.client.impl.request.CreateConnectorRequest Maven / Gradle / Ivy

The newest version!
package com.aliyun.datahub.client.impl.request;

import com.aliyun.datahub.client.model.ConnectorConfig;
import com.aliyun.datahub.client.model.ConnectorType;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;
import java.util.Map;

public class CreateConnectorRequest extends BaseRequest {
    @JsonProperty("Type")
    private ConnectorType type;

    @JsonProperty("SinkStartTime")
    private long sinkStartTime;

    @JsonProperty("ColumnFields")
    private List columnFields;

    @JsonProperty("ColumnNameMap")
    private Map columnNameMap;

    @JsonProperty("Config")
    private ConnectorConfig config;

    @JsonProperty("ClusterAddress")
    private String clusterAddress;

    public CreateConnectorRequest() {
        setAction("Create");
    }

    public ConnectorType getType() {
        return type;
    }

    public CreateConnectorRequest setType(ConnectorType type) {
        this.type = type;
        return this;
    }

    public long getSinkStartTime() {
        return sinkStartTime;
    }

    public CreateConnectorRequest setSinkStartTime(long sinkStartTime) {
        this.sinkStartTime = sinkStartTime;
        return this;
    }

    public List getColumnFields() {
        return columnFields;
    }

    public CreateConnectorRequest setColumnFields(List columnFields) {
        this.columnFields = columnFields;
        return this;
    }

    public ConnectorConfig getConfig() {
        return config;
    }

    public CreateConnectorRequest setConfig(ConnectorConfig config) {
        this.config = config;
        return this;
    }

    public Map getColumnNameMap() {
        return columnNameMap;
    }

    public CreateConnectorRequest setColumnNameMap(Map columnNameMap) {
        this.columnNameMap = columnNameMap;
        return this;
    }

    public String getClusterAddress() {
        return clusterAddress;
    }

    public CreateConnectorRequest setClusterAddress(String clusterAddress) {
        this.clusterAddress = clusterAddress;
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy