HdfsLinkedService.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;
/** Hadoop Distributed File System (HDFS) linked service. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("Hdfs")
@JsonFlatten
@Fluent
public class HdfsLinkedService extends LinkedService {
/*
* The URL of the HDFS service endpoint, e.g.
* http://myhostname:50070/webhdfs/v1 . Type: string (or Expression with
* resultType string).
*/
@JsonProperty(value = "typeProperties.url", required = true)
private Object url;
/*
* Type of authentication used to connect to the HDFS. Possible values are:
* Anonymous and Windows. Type: string (or Expression with resultType
* string).
*/
@JsonProperty(value = "typeProperties.authenticationType")
private Object authenticationType;
/*
* 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;
/*
* User name for Windows authentication. Type: string (or Expression with
* resultType string).
*/
@JsonProperty(value = "typeProperties.userName")
private Object userName;
/*
* Password for Windows authentication.
*/
@JsonProperty(value = "typeProperties.password")
private SecretBase password;
/**
* Get the url property: The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type:
* string (or Expression with resultType string).
*
* @return the url value.
*/
public Object getUrl() {
return this.url;
}
/**
* Set the url property: The URL of the HDFS service endpoint, e.g. http://myhostname:50070/webhdfs/v1 . Type:
* string (or Expression with resultType string).
*
* @param url the url value to set.
* @return the HdfsLinkedService object itself.
*/
public HdfsLinkedService setUrl(Object url) {
this.url = url;
return this;
}
/**
* Get the authenticationType property: Type of authentication used to connect to the HDFS. Possible values are:
* Anonymous and Windows. Type: string (or Expression with resultType string).
*
* @return the authenticationType value.
*/
public Object getAuthenticationType() {
return this.authenticationType;
}
/**
* Set the authenticationType property: Type of authentication used to connect to the HDFS. Possible values are:
* Anonymous and Windows. Type: string (or Expression with resultType string).
*
* @param authenticationType the authenticationType value to set.
* @return the HdfsLinkedService object itself.
*/
public HdfsLinkedService setAuthenticationType(Object authenticationType) {
this.authenticationType = authenticationType;
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 HdfsLinkedService object itself.
*/
public HdfsLinkedService setEncryptedCredential(Object encryptedCredential) {
this.encryptedCredential = encryptedCredential;
return this;
}
/**
* Get the userName property: User name for Windows authentication. Type: string (or Expression with resultType
* string).
*
* @return the userName value.
*/
public Object getUserName() {
return this.userName;
}
/**
* Set the userName property: User name for Windows authentication. Type: string (or Expression with resultType
* string).
*
* @param userName the userName value to set.
* @return the HdfsLinkedService object itself.
*/
public HdfsLinkedService setUserName(Object userName) {
this.userName = userName;
return this;
}
/**
* Get the password property: Password for Windows authentication.
*
* @return the password value.
*/
public SecretBase getPassword() {
return this.password;
}
/**
* Set the password property: Password for Windows authentication.
*
* @param password the password value to set.
* @return the HdfsLinkedService object itself.
*/
public HdfsLinkedService setPassword(SecretBase password) {
this.password = password;
return this;
}
}