SapHanaLinkedService.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;
/** SAP HANA Linked Service. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("SapHana")
@JsonFlatten
@Fluent
public class SapHanaLinkedService extends LinkedService {
/*
* SAP HANA ODBC connection string. Type: string, SecureString or
* AzureKeyVaultSecretReference.
*/
@JsonProperty(value = "typeProperties.connectionString")
private Object connectionString;
/*
* Host name of the SAP HANA server. Type: string (or Expression with
* resultType string).
*/
@JsonProperty(value = "typeProperties.server", required = true)
private Object server;
/*
* The authentication type to be used to connect to the SAP HANA server.
*/
@JsonProperty(value = "typeProperties.authenticationType")
private SapHanaAuthenticationType authenticationType;
/*
* Username to access the SAP HANA server. Type: string (or Expression with
* resultType string).
*/
@JsonProperty(value = "typeProperties.userName")
private Object userName;
/*
* Password to access the SAP HANA server.
*/
@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 connectionString property: SAP HANA ODBC connection string. Type: string, SecureString or
* AzureKeyVaultSecretReference.
*
* @return the connectionString value.
*/
public Object getConnectionString() {
return this.connectionString;
}
/**
* Set the connectionString property: SAP HANA ODBC connection string. Type: string, SecureString or
* AzureKeyVaultSecretReference.
*
* @param connectionString the connectionString value to set.
* @return the SapHanaLinkedService object itself.
*/
public SapHanaLinkedService setConnectionString(Object connectionString) {
this.connectionString = connectionString;
return this;
}
/**
* Get the server property: Host name of the SAP HANA server. Type: string (or Expression with resultType string).
*
* @return the server value.
*/
public Object getServer() {
return this.server;
}
/**
* Set the server property: Host name of the SAP HANA server. Type: string (or Expression with resultType string).
*
* @param server the server value to set.
* @return the SapHanaLinkedService object itself.
*/
public SapHanaLinkedService setServer(Object server) {
this.server = server;
return this;
}
/**
* Get the authenticationType property: The authentication type to be used to connect to the SAP HANA server.
*
* @return the authenticationType value.
*/
public SapHanaAuthenticationType getAuthenticationType() {
return this.authenticationType;
}
/**
* Set the authenticationType property: The authentication type to be used to connect to the SAP HANA server.
*
* @param authenticationType the authenticationType value to set.
* @return the SapHanaLinkedService object itself.
*/
public SapHanaLinkedService setAuthenticationType(SapHanaAuthenticationType authenticationType) {
this.authenticationType = authenticationType;
return this;
}
/**
* Get the userName property: Username to access the SAP HANA server. Type: string (or Expression with resultType
* string).
*
* @return the userName value.
*/
public Object getUserName() {
return this.userName;
}
/**
* Set the userName property: Username to access the SAP HANA server. Type: string (or Expression with resultType
* string).
*
* @param userName the userName value to set.
* @return the SapHanaLinkedService object itself.
*/
public SapHanaLinkedService setUserName(Object userName) {
this.userName = userName;
return this;
}
/**
* Get the password property: Password to access the SAP HANA server.
*
* @return the password value.
*/
public SecretBase getPassword() {
return this.password;
}
/**
* Set the password property: Password to access the SAP HANA server.
*
* @param password the password value to set.
* @return the SapHanaLinkedService object itself.
*/
public SapHanaLinkedService 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 SapHanaLinkedService object itself.
*/
public SapHanaLinkedService setEncryptedCredential(Object encryptedCredential) {
this.encryptedCredential = encryptedCredential;
return this;
}
}