
localhost.models.TspublicRestV2ConnectionUpdateRequest Maven / Gradle / Ivy
/*
* RESTAPISDKLib
*
* This file was automatically generated by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
package localhost.models;
import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSetter;
/**
* This is a model class for TspublicRestV2ConnectionUpdateRequest type.
*/
public class TspublicRestV2ConnectionUpdateRequest {
private String id;
private String name;
private String description;
private String configuration;
/**
* Default constructor.
*/
public TspublicRestV2ConnectionUpdateRequest() {
}
/**
* Initialization constructor.
* @param id String value for id.
* @param configuration String value for configuration.
* @param name String value for name.
* @param description String value for description.
*/
public TspublicRestV2ConnectionUpdateRequest(
String id,
String configuration,
String name,
String description) {
this.id = id;
this.name = name;
this.description = description;
this.configuration = configuration;
}
/**
* Getter for Id.
* GUID of the connection
* @return Returns the String
*/
@JsonGetter("id")
public String getId() {
return id;
}
/**
* Setter for Id.
* GUID of the connection
* @param id Value for String
*/
@JsonSetter("id")
public void setId(String id) {
this.id = id;
}
/**
* Getter for Name.
* The text to update the name of the connection.
* @return Returns the String
*/
@JsonGetter("name")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getName() {
return name;
}
/**
* Setter for Name.
* The text to update the name of the connection.
* @param name Value for String
*/
@JsonSetter("name")
public void setName(String name) {
this.name = name;
}
/**
* Getter for Description.
* The text to update the description of the connection.
* @return Returns the String
*/
@JsonGetter("description")
@JsonInclude(JsonInclude.Include.NON_NULL)
public String getDescription() {
return description;
}
/**
* Setter for Description.
* The text to update the description of the connection.
* @param description Value for String
*/
@JsonSetter("description")
public void setDescription(String description) {
this.description = description;
}
/**
* Getter for Configuration.
* A JSON object of the connection metadata. The metadata must include configuration attributes
* required to create the connection. Example: Snowflake:
* {"accountName":"testaccount","user":"test_user","password":"test_pwd","role":"test_role","warehouse":"test_wh","database":"test_db"}
* Redshift:
* {"host":"test_host","port":"1234","user":"test_user","password":"test_pwd","database":"test_db"}
* Google BigQuery: {"project_id":"test_project","oauth_pvt_key":"test_key"} Azure Synapse:
* {"host":"test_host","port":"1234","user":"test_user","password":"test_pwd","database":"test_db"}
* Teradata: {"host":"test_host","user":"test_user","password":"test_pwd","database":"test_db"}
* Oracle ADW:
* {"user":"test_user","password":"test_pwd","net_service_name":"test_srvc_name","tns_admin":"test_tns","schema":"test_schema"}
* Starburst: {"host":"test_host","user":"test_user","password":"test_pwd","database":"test_db"}
* Databricks: {"host":"test_host","http_path":"https://test
* ","user":"test_user","password":"test_pwd"} SAP HANA:
* {"host":"test_host","user":"test_user","password":"test_pwd","database":"test_db"} Denodo:
* {"host":"test_host","port":"1234","user":"test_user","password":"test_pwd"}
* @return Returns the String
*/
@JsonGetter("configuration")
public String getConfiguration() {
return configuration;
}
/**
* Setter for Configuration.
* A JSON object of the connection metadata. The metadata must include configuration attributes
* required to create the connection. Example: Snowflake:
* {"accountName":"testaccount","user":"test_user","password":"test_pwd","role":"test_role","warehouse":"test_wh","database":"test_db"}
* Redshift:
* {"host":"test_host","port":"1234","user":"test_user","password":"test_pwd","database":"test_db"}
* Google BigQuery: {"project_id":"test_project","oauth_pvt_key":"test_key"} Azure Synapse:
* {"host":"test_host","port":"1234","user":"test_user","password":"test_pwd","database":"test_db"}
* Teradata: {"host":"test_host","user":"test_user","password":"test_pwd","database":"test_db"}
* Oracle ADW:
* {"user":"test_user","password":"test_pwd","net_service_name":"test_srvc_name","tns_admin":"test_tns","schema":"test_schema"}
* Starburst: {"host":"test_host","user":"test_user","password":"test_pwd","database":"test_db"}
* Databricks: {"host":"test_host","http_path":"https://test
* ","user":"test_user","password":"test_pwd"} SAP HANA:
* {"host":"test_host","user":"test_user","password":"test_pwd","database":"test_db"} Denodo:
* {"host":"test_host","port":"1234","user":"test_user","password":"test_pwd"}
* @param configuration Value for String
*/
@JsonSetter("configuration")
public void setConfiguration(String configuration) {
this.configuration = configuration;
}
/**
* Converts this TspublicRestV2ConnectionUpdateRequest into string format.
* @return String representation of this class
*/
@Override
public String toString() {
return "TspublicRestV2ConnectionUpdateRequest [" + "id=" + id + ", configuration="
+ configuration + ", name=" + name + ", description=" + description + "]";
}
/**
* Builds a new {@link Builder} object.
* Creates the instance with the state of the current model.
* @return a new {@link Builder} object
*/
public Builder toBuilder() {
Builder builder = new Builder(id, configuration)
.name(getName())
.description(getDescription());
return builder;
}
/**
* Class to build instances of {@link TspublicRestV2ConnectionUpdateRequest}.
*/
public static class Builder {
private String id;
private String configuration;
private String name;
private String description;
/**
* Initialization constructor.
*/
public Builder() {
}
/**
* Initialization constructor.
* @param id String value for id.
* @param configuration String value for configuration.
*/
public Builder(String id, String configuration) {
this.id = id;
this.configuration = configuration;
}
/**
* Setter for id.
* @param id String value for id.
* @return Builder
*/
public Builder id(String id) {
this.id = id;
return this;
}
/**
* Setter for configuration.
* @param configuration String value for configuration.
* @return Builder
*/
public Builder configuration(String configuration) {
this.configuration = configuration;
return this;
}
/**
* Setter for name.
* @param name String value for name.
* @return Builder
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* Setter for description.
* @param description String value for description.
* @return Builder
*/
public Builder description(String description) {
this.description = description;
return this;
}
/**
* Builds a new {@link TspublicRestV2ConnectionUpdateRequest} object using the set fields.
* @return {@link TspublicRestV2ConnectionUpdateRequest}
*/
public TspublicRestV2ConnectionUpdateRequest build() {
return new TspublicRestV2ConnectionUpdateRequest(id, configuration, name, description);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy