SybaseLinkedService.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.analytics.synapse.artifacts.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.annotation.JsonFlatten;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;
/** Linked service for Sybase data source. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("Sybase")
@JsonFlatten
@Fluent
public class SybaseLinkedService extends LinkedService {
/*
* Server name for connection. Type: string (or Expression with resultType
* string).
*/
@JsonProperty(value = "typeProperties.server", required = true)
private Object server;
/*
* Database name for connection. Type: string (or Expression with
* resultType string).
*/
@JsonProperty(value = "typeProperties.database", required = true)
private Object database;
/*
* Schema name for connection. Type: string (or Expression with resultType
* string).
*/
@JsonProperty(value = "typeProperties.schema")
private Object schema;
/*
* AuthenticationType to be used for connection.
*/
@JsonProperty(value = "typeProperties.authenticationType")
private SybaseAuthenticationType authenticationType;
/*
* Username for authentication. Type: string (or Expression with resultType
* string).
*/
@JsonProperty(value = "typeProperties.username")
private Object username;
/*
* Password for authentication.
*/
@JsonProperty(value = "typeProperties.password")
private SecretBase password;
/*
* The encrypted credential used for authentication. Credentials are
* encrypted using the integration runtime credential manager. Type: string
* (or Expression with resultType string).
*/
@JsonProperty(value = "typeProperties.encryptedCredential")
private Object encryptedCredential;
/**
* Get the server property: Server name for connection. Type: string (or Expression with resultType string).
*
* @return the server value.
*/
public Object getServer() {
return this.server;
}
/**
* Set the server property: Server name for connection. Type: string (or Expression with resultType string).
*
* @param server the server value to set.
* @return the SybaseLinkedService object itself.
*/
public SybaseLinkedService setServer(Object server) {
this.server = server;
return this;
}
/**
* Get the database property: Database name for connection. Type: string (or Expression with resultType string).
*
* @return the database value.
*/
public Object getDatabase() {
return this.database;
}
/**
* Set the database property: Database name for connection. Type: string (or Expression with resultType string).
*
* @param database the database value to set.
* @return the SybaseLinkedService object itself.
*/
public SybaseLinkedService setDatabase(Object database) {
this.database = database;
return this;
}
/**
* Get the schema property: Schema name for connection. Type: string (or Expression with resultType string).
*
* @return the schema value.
*/
public Object getSchema() {
return this.schema;
}
/**
* Set the schema property: Schema name for connection. Type: string (or Expression with resultType string).
*
* @param schema the schema value to set.
* @return the SybaseLinkedService object itself.
*/
public SybaseLinkedService setSchema(Object schema) {
this.schema = schema;
return this;
}
/**
* Get the authenticationType property: AuthenticationType to be used for connection.
*
* @return the authenticationType value.
*/
public SybaseAuthenticationType getAuthenticationType() {
return this.authenticationType;
}
/**
* Set the authenticationType property: AuthenticationType to be used for connection.
*
* @param authenticationType the authenticationType value to set.
* @return the SybaseLinkedService object itself.
*/
public SybaseLinkedService setAuthenticationType(SybaseAuthenticationType authenticationType) {
this.authenticationType = authenticationType;
return this;
}
/**
* Get the username property: Username for authentication. Type: string (or Expression with resultType string).
*
* @return the username value.
*/
public Object getUsername() {
return this.username;
}
/**
* Set the username property: Username for authentication. Type: string (or Expression with resultType string).
*
* @param username the username value to set.
* @return the SybaseLinkedService object itself.
*/
public SybaseLinkedService setUsername(Object username) {
this.username = username;
return this;
}
/**
* Get the password property: Password for authentication.
*
* @return the password value.
*/
public SecretBase getPassword() {
return this.password;
}
/**
* Set the password property: Password for authentication.
*
* @param password the password value to set.
* @return the SybaseLinkedService object itself.
*/
public SybaseLinkedService setPassword(SecretBase password) {
this.password = password;
return this;
}
/**
* Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
* using the integration runtime credential manager. Type: string (or Expression with resultType string).
*
* @return the encryptedCredential value.
*/
public Object getEncryptedCredential() {
return this.encryptedCredential;
}
/**
* Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted
* using the integration runtime credential manager. Type: string (or Expression with resultType string).
*
* @param encryptedCredential the encryptedCredential value to set.
* @return the SybaseLinkedService object itself.
*/
public SybaseLinkedService setEncryptedCredential(Object encryptedCredential) {
this.encryptedCredential = encryptedCredential;
return this;
}
}