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

com.tencentcloudapi.wedata.v20210820.models.ModifyDataSourceRequest Maven / Gradle / Ivy

There is a newer version: 3.0.1076
Show newest version
/*
 * Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.tencentcloudapi.wedata.v20210820.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class ModifyDataSourceRequest extends AbstractModel {

    /**
    * Data Source Name, cannot be empty under the same SpaceName
    */
    @SerializedName("Name")
    @Expose
    private String Name;

    /**
    * Data Source Category: Binding Engine, Binding Database
    */
    @SerializedName("Category")
    @Expose
    private String Category;

    /**
    * Data Source Type: enumerated values
    */
    @SerializedName("Type")
    @Expose
    private String Type;

    /**
    * Data Source ID
    */
    @SerializedName("ID")
    @Expose
    private Long ID;

    /**
    * Configuration Information Extension of Business Data Source
    */
    @SerializedName("BizParams")
    @Expose
    private String BizParams;

    /**
    * Data source configuration information, stored as JSON KV. The KV storage information varies according to the data source type
    */
    @SerializedName("Params")
    @Expose
    private String Params;

    /**
    * Data source description information
    */
    @SerializedName("Description")
    @Expose
    private String Description;

    /**
    * Data Source Display Name, for visual inspection
    */
    @SerializedName("Display")
    @Expose
    private String Display;

    /**
    * If the data source list is bound to a database, then it is the database name
    */
    @SerializedName("DatabaseName")
    @Expose
    private String DatabaseName;

    /**
    * Instance ID of the data source engine, e.g., CDB Instance ID
    */
    @SerializedName("Instance")
    @Expose
    private String Instance;

    /**
    * Visibility of the data source, where 1 is visible and 0 is not visible. Default is 1
    */
    @SerializedName("Status")
    @Expose
    private Long Status;

    /**
    * Name of the business space to which the data source belongs
    */
    @SerializedName("ClusterId")
    @Expose
    private String ClusterId;

    /**
    * Collection Status
    */
    @SerializedName("Collect")
    @Expose
    private String Collect;

    /**
    * Project ID
    */
    @SerializedName("OwnerProjectId")
    @Expose
    private String OwnerProjectId;

    /**
    * Project name
    */
    @SerializedName("OwnerProjectName")
    @Expose
    private String OwnerProjectName;

    /**
    * Project Chinese Name
    */
    @SerializedName("OwnerProjectIdent")
    @Expose
    private String OwnerProjectIdent;

    /**
    * cos bucket
    */
    @SerializedName("COSBucket")
    @Expose
    private String COSBucket;

    /**
    * cos region
    */
    @SerializedName("COSRegion")
    @Expose
    private String COSRegion;

    /**
    * Operation Item ID
    */
    @SerializedName("ProjectId")
    @Expose
    private String ProjectId;

    /**
    * Data Source Development Environment Configuration
    */
    @SerializedName("DevelopmentParams")
    @Expose
    private String DevelopmentParams;

    /**
     * Get Data Source Name, cannot be empty under the same SpaceName 
     * @return Name Data Source Name, cannot be empty under the same SpaceName
     */
    public String getName() {
        return this.Name;
    }

    /**
     * Set Data Source Name, cannot be empty under the same SpaceName
     * @param Name Data Source Name, cannot be empty under the same SpaceName
     */
    public void setName(String Name) {
        this.Name = Name;
    }

    /**
     * Get Data Source Category: Binding Engine, Binding Database 
     * @return Category Data Source Category: Binding Engine, Binding Database
     */
    public String getCategory() {
        return this.Category;
    }

    /**
     * Set Data Source Category: Binding Engine, Binding Database
     * @param Category Data Source Category: Binding Engine, Binding Database
     */
    public void setCategory(String Category) {
        this.Category = Category;
    }

    /**
     * Get Data Source Type: enumerated values 
     * @return Type Data Source Type: enumerated values
     */
    public String getType() {
        return this.Type;
    }

    /**
     * Set Data Source Type: enumerated values
     * @param Type Data Source Type: enumerated values
     */
    public void setType(String Type) {
        this.Type = Type;
    }

    /**
     * Get Data Source ID 
     * @return ID Data Source ID
     */
    public Long getID() {
        return this.ID;
    }

    /**
     * Set Data Source ID
     * @param ID Data Source ID
     */
    public void setID(Long ID) {
        this.ID = ID;
    }

    /**
     * Get Configuration Information Extension of Business Data Source 
     * @return BizParams Configuration Information Extension of Business Data Source
     */
    public String getBizParams() {
        return this.BizParams;
    }

    /**
     * Set Configuration Information Extension of Business Data Source
     * @param BizParams Configuration Information Extension of Business Data Source
     */
    public void setBizParams(String BizParams) {
        this.BizParams = BizParams;
    }

    /**
     * Get Data source configuration information, stored as JSON KV. The KV storage information varies according to the data source type 
     * @return Params Data source configuration information, stored as JSON KV. The KV storage information varies according to the data source type
     */
    public String getParams() {
        return this.Params;
    }

    /**
     * Set Data source configuration information, stored as JSON KV. The KV storage information varies according to the data source type
     * @param Params Data source configuration information, stored as JSON KV. The KV storage information varies according to the data source type
     */
    public void setParams(String Params) {
        this.Params = Params;
    }

    /**
     * Get Data source description information 
     * @return Description Data source description information
     */
    public String getDescription() {
        return this.Description;
    }

    /**
     * Set Data source description information
     * @param Description Data source description information
     */
    public void setDescription(String Description) {
        this.Description = Description;
    }

    /**
     * Get Data Source Display Name, for visual inspection 
     * @return Display Data Source Display Name, for visual inspection
     */
    public String getDisplay() {
        return this.Display;
    }

    /**
     * Set Data Source Display Name, for visual inspection
     * @param Display Data Source Display Name, for visual inspection
     */
    public void setDisplay(String Display) {
        this.Display = Display;
    }

    /**
     * Get If the data source list is bound to a database, then it is the database name 
     * @return DatabaseName If the data source list is bound to a database, then it is the database name
     */
    public String getDatabaseName() {
        return this.DatabaseName;
    }

    /**
     * Set If the data source list is bound to a database, then it is the database name
     * @param DatabaseName If the data source list is bound to a database, then it is the database name
     */
    public void setDatabaseName(String DatabaseName) {
        this.DatabaseName = DatabaseName;
    }

    /**
     * Get Instance ID of the data source engine, e.g., CDB Instance ID 
     * @return Instance Instance ID of the data source engine, e.g., CDB Instance ID
     */
    public String getInstance() {
        return this.Instance;
    }

    /**
     * Set Instance ID of the data source engine, e.g., CDB Instance ID
     * @param Instance Instance ID of the data source engine, e.g., CDB Instance ID
     */
    public void setInstance(String Instance) {
        this.Instance = Instance;
    }

    /**
     * Get Visibility of the data source, where 1 is visible and 0 is not visible. Default is 1 
     * @return Status Visibility of the data source, where 1 is visible and 0 is not visible. Default is 1
     */
    public Long getStatus() {
        return this.Status;
    }

    /**
     * Set Visibility of the data source, where 1 is visible and 0 is not visible. Default is 1
     * @param Status Visibility of the data source, where 1 is visible and 0 is not visible. Default is 1
     */
    public void setStatus(Long Status) {
        this.Status = Status;
    }

    /**
     * Get Name of the business space to which the data source belongs 
     * @return ClusterId Name of the business space to which the data source belongs
     */
    public String getClusterId() {
        return this.ClusterId;
    }

    /**
     * Set Name of the business space to which the data source belongs
     * @param ClusterId Name of the business space to which the data source belongs
     */
    public void setClusterId(String ClusterId) {
        this.ClusterId = ClusterId;
    }

    /**
     * Get Collection Status 
     * @return Collect Collection Status
     */
    public String getCollect() {
        return this.Collect;
    }

    /**
     * Set Collection Status
     * @param Collect Collection Status
     */
    public void setCollect(String Collect) {
        this.Collect = Collect;
    }

    /**
     * Get Project ID 
     * @return OwnerProjectId Project ID
     */
    public String getOwnerProjectId() {
        return this.OwnerProjectId;
    }

    /**
     * Set Project ID
     * @param OwnerProjectId Project ID
     */
    public void setOwnerProjectId(String OwnerProjectId) {
        this.OwnerProjectId = OwnerProjectId;
    }

    /**
     * Get Project name 
     * @return OwnerProjectName Project name
     */
    public String getOwnerProjectName() {
        return this.OwnerProjectName;
    }

    /**
     * Set Project name
     * @param OwnerProjectName Project name
     */
    public void setOwnerProjectName(String OwnerProjectName) {
        this.OwnerProjectName = OwnerProjectName;
    }

    /**
     * Get Project Chinese Name 
     * @return OwnerProjectIdent Project Chinese Name
     */
    public String getOwnerProjectIdent() {
        return this.OwnerProjectIdent;
    }

    /**
     * Set Project Chinese Name
     * @param OwnerProjectIdent Project Chinese Name
     */
    public void setOwnerProjectIdent(String OwnerProjectIdent) {
        this.OwnerProjectIdent = OwnerProjectIdent;
    }

    /**
     * Get cos bucket 
     * @return COSBucket cos bucket
     */
    public String getCOSBucket() {
        return this.COSBucket;
    }

    /**
     * Set cos bucket
     * @param COSBucket cos bucket
     */
    public void setCOSBucket(String COSBucket) {
        this.COSBucket = COSBucket;
    }

    /**
     * Get cos region 
     * @return COSRegion cos region
     */
    public String getCOSRegion() {
        return this.COSRegion;
    }

    /**
     * Set cos region
     * @param COSRegion cos region
     */
    public void setCOSRegion(String COSRegion) {
        this.COSRegion = COSRegion;
    }

    /**
     * Get Operation Item ID 
     * @return ProjectId Operation Item ID
     */
    public String getProjectId() {
        return this.ProjectId;
    }

    /**
     * Set Operation Item ID
     * @param ProjectId Operation Item ID
     */
    public void setProjectId(String ProjectId) {
        this.ProjectId = ProjectId;
    }

    /**
     * Get Data Source Development Environment Configuration 
     * @return DevelopmentParams Data Source Development Environment Configuration
     */
    public String getDevelopmentParams() {
        return this.DevelopmentParams;
    }

    /**
     * Set Data Source Development Environment Configuration
     * @param DevelopmentParams Data Source Development Environment Configuration
     */
    public void setDevelopmentParams(String DevelopmentParams) {
        this.DevelopmentParams = DevelopmentParams;
    }

    public ModifyDataSourceRequest() {
    }

    /**
     * NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
     *       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
     */
    public ModifyDataSourceRequest(ModifyDataSourceRequest source) {
        if (source.Name != null) {
            this.Name = new String(source.Name);
        }
        if (source.Category != null) {
            this.Category = new String(source.Category);
        }
        if (source.Type != null) {
            this.Type = new String(source.Type);
        }
        if (source.ID != null) {
            this.ID = new Long(source.ID);
        }
        if (source.BizParams != null) {
            this.BizParams = new String(source.BizParams);
        }
        if (source.Params != null) {
            this.Params = new String(source.Params);
        }
        if (source.Description != null) {
            this.Description = new String(source.Description);
        }
        if (source.Display != null) {
            this.Display = new String(source.Display);
        }
        if (source.DatabaseName != null) {
            this.DatabaseName = new String(source.DatabaseName);
        }
        if (source.Instance != null) {
            this.Instance = new String(source.Instance);
        }
        if (source.Status != null) {
            this.Status = new Long(source.Status);
        }
        if (source.ClusterId != null) {
            this.ClusterId = new String(source.ClusterId);
        }
        if (source.Collect != null) {
            this.Collect = new String(source.Collect);
        }
        if (source.OwnerProjectId != null) {
            this.OwnerProjectId = new String(source.OwnerProjectId);
        }
        if (source.OwnerProjectName != null) {
            this.OwnerProjectName = new String(source.OwnerProjectName);
        }
        if (source.OwnerProjectIdent != null) {
            this.OwnerProjectIdent = new String(source.OwnerProjectIdent);
        }
        if (source.COSBucket != null) {
            this.COSBucket = new String(source.COSBucket);
        }
        if (source.COSRegion != null) {
            this.COSRegion = new String(source.COSRegion);
        }
        if (source.ProjectId != null) {
            this.ProjectId = new String(source.ProjectId);
        }
        if (source.DevelopmentParams != null) {
            this.DevelopmentParams = new String(source.DevelopmentParams);
        }
    }


    /**
     * Internal implementation, normal users should not use it.
     */
    public void toMap(HashMap map, String prefix) {
        this.setParamSimple(map, prefix + "Name", this.Name);
        this.setParamSimple(map, prefix + "Category", this.Category);
        this.setParamSimple(map, prefix + "Type", this.Type);
        this.setParamSimple(map, prefix + "ID", this.ID);
        this.setParamSimple(map, prefix + "BizParams", this.BizParams);
        this.setParamSimple(map, prefix + "Params", this.Params);
        this.setParamSimple(map, prefix + "Description", this.Description);
        this.setParamSimple(map, prefix + "Display", this.Display);
        this.setParamSimple(map, prefix + "DatabaseName", this.DatabaseName);
        this.setParamSimple(map, prefix + "Instance", this.Instance);
        this.setParamSimple(map, prefix + "Status", this.Status);
        this.setParamSimple(map, prefix + "ClusterId", this.ClusterId);
        this.setParamSimple(map, prefix + "Collect", this.Collect);
        this.setParamSimple(map, prefix + "OwnerProjectId", this.OwnerProjectId);
        this.setParamSimple(map, prefix + "OwnerProjectName", this.OwnerProjectName);
        this.setParamSimple(map, prefix + "OwnerProjectIdent", this.OwnerProjectIdent);
        this.setParamSimple(map, prefix + "COSBucket", this.COSBucket);
        this.setParamSimple(map, prefix + "COSRegion", this.COSRegion);
        this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
        this.setParamSimple(map, prefix + "DevelopmentParams", this.DevelopmentParams);

    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy