ServiceNowLinkedService.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;
/** ServiceNow server linked service. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("ServiceNow")
@JsonFlatten
@Fluent
public class ServiceNowLinkedService extends LinkedService {
/*
* The endpoint of the ServiceNow server. (i.e. <instance>.service-now.com)
*/
@JsonProperty(value = "typeProperties.endpoint", required = true)
private Object endpoint;
/*
* The authentication type to use.
*/
@JsonProperty(value = "typeProperties.authenticationType", required = true)
private ServiceNowAuthenticationType authenticationType;
/*
* The user name used to connect to the ServiceNow server for Basic and
* OAuth2 authentication.
*/
@JsonProperty(value = "typeProperties.username")
private Object username;
/*
* The password corresponding to the user name for Basic and OAuth2
* authentication.
*/
@JsonProperty(value = "typeProperties.password")
private SecretBase password;
/*
* The client id for OAuth2 authentication.
*/
@JsonProperty(value = "typeProperties.clientId")
private Object clientId;
/*
* The client secret for OAuth2 authentication.
*/
@JsonProperty(value = "typeProperties.clientSecret")
private SecretBase clientSecret;
/*
* Specifies whether the data source endpoints are encrypted using HTTPS.
* The default value is true.
*/
@JsonProperty(value = "typeProperties.useEncryptedEndpoints")
private Object useEncryptedEndpoints;
/*
* Specifies whether to require the host name in the server's certificate
* to match the host name of the server when connecting over SSL. The
* default value is true.
*/
@JsonProperty(value = "typeProperties.useHostVerification")
private Object useHostVerification;
/*
* Specifies whether to verify the identity of the server when connecting
* over SSL. The default value is true.
*/
@JsonProperty(value = "typeProperties.usePeerVerification")
private Object usePeerVerification;
/*
* 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 endpoint property: The endpoint of the ServiceNow server. (i.e. <instance>.service-now.com).
*
* @return the endpoint value.
*/
public Object getEndpoint() {
return this.endpoint;
}
/**
* Set the endpoint property: The endpoint of the ServiceNow server. (i.e. <instance>.service-now.com).
*
* @param endpoint the endpoint value to set.
* @return the ServiceNowLinkedService object itself.
*/
public ServiceNowLinkedService setEndpoint(Object endpoint) {
this.endpoint = endpoint;
return this;
}
/**
* Get the authenticationType property: The authentication type to use.
*
* @return the authenticationType value.
*/
public ServiceNowAuthenticationType getAuthenticationType() {
return this.authenticationType;
}
/**
* Set the authenticationType property: The authentication type to use.
*
* @param authenticationType the authenticationType value to set.
* @return the ServiceNowLinkedService object itself.
*/
public ServiceNowLinkedService setAuthenticationType(ServiceNowAuthenticationType authenticationType) {
this.authenticationType = authenticationType;
return this;
}
/**
* Get the username property: The user name used to connect to the ServiceNow server for Basic and OAuth2
* authentication.
*
* @return the username value.
*/
public Object getUsername() {
return this.username;
}
/**
* Set the username property: The user name used to connect to the ServiceNow server for Basic and OAuth2
* authentication.
*
* @param username the username value to set.
* @return the ServiceNowLinkedService object itself.
*/
public ServiceNowLinkedService setUsername(Object username) {
this.username = username;
return this;
}
/**
* Get the password property: The password corresponding to the user name for Basic and OAuth2 authentication.
*
* @return the password value.
*/
public SecretBase getPassword() {
return this.password;
}
/**
* Set the password property: The password corresponding to the user name for Basic and OAuth2 authentication.
*
* @param password the password value to set.
* @return the ServiceNowLinkedService object itself.
*/
public ServiceNowLinkedService setPassword(SecretBase password) {
this.password = password;
return this;
}
/**
* Get the clientId property: The client id for OAuth2 authentication.
*
* @return the clientId value.
*/
public Object getClientId() {
return this.clientId;
}
/**
* Set the clientId property: The client id for OAuth2 authentication.
*
* @param clientId the clientId value to set.
* @return the ServiceNowLinkedService object itself.
*/
public ServiceNowLinkedService setClientId(Object clientId) {
this.clientId = clientId;
return this;
}
/**
* Get the clientSecret property: The client secret for OAuth2 authentication.
*
* @return the clientSecret value.
*/
public SecretBase getClientSecret() {
return this.clientSecret;
}
/**
* Set the clientSecret property: The client secret for OAuth2 authentication.
*
* @param clientSecret the clientSecret value to set.
* @return the ServiceNowLinkedService object itself.
*/
public ServiceNowLinkedService setClientSecret(SecretBase clientSecret) {
this.clientSecret = clientSecret;
return this;
}
/**
* Get the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS.
* The default value is true.
*
* @return the useEncryptedEndpoints value.
*/
public Object getUseEncryptedEndpoints() {
return this.useEncryptedEndpoints;
}
/**
* Set the useEncryptedEndpoints property: Specifies whether the data source endpoints are encrypted using HTTPS.
* The default value is true.
*
* @param useEncryptedEndpoints the useEncryptedEndpoints value to set.
* @return the ServiceNowLinkedService object itself.
*/
public ServiceNowLinkedService setUseEncryptedEndpoints(Object useEncryptedEndpoints) {
this.useEncryptedEndpoints = useEncryptedEndpoints;
return this;
}
/**
* Get the useHostVerification property: Specifies whether to require the host name in the server's certificate to
* match the host name of the server when connecting over SSL. The default value is true.
*
* @return the useHostVerification value.
*/
public Object getUseHostVerification() {
return this.useHostVerification;
}
/**
* Set the useHostVerification property: Specifies whether to require the host name in the server's certificate to
* match the host name of the server when connecting over SSL. The default value is true.
*
* @param useHostVerification the useHostVerification value to set.
* @return the ServiceNowLinkedService object itself.
*/
public ServiceNowLinkedService setUseHostVerification(Object useHostVerification) {
this.useHostVerification = useHostVerification;
return this;
}
/**
* Get the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over
* SSL. The default value is true.
*
* @return the usePeerVerification value.
*/
public Object getUsePeerVerification() {
return this.usePeerVerification;
}
/**
* Set the usePeerVerification property: Specifies whether to verify the identity of the server when connecting over
* SSL. The default value is true.
*
* @param usePeerVerification the usePeerVerification value to set.
* @return the ServiceNowLinkedService object itself.
*/
public ServiceNowLinkedService setUsePeerVerification(Object usePeerVerification) {
this.usePeerVerification = usePeerVerification;
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 ServiceNowLinkedService object itself.
*/
public ServiceNowLinkedService setEncryptedCredential(Object encryptedCredential) {
this.encryptedCredential = encryptedCredential;
return this;
}
}