QuickBooksLinkedService.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;
/** QuickBooks server linked service. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("QuickBooks")
@JsonFlatten
@Fluent
public class QuickBooksLinkedService extends LinkedService {
/*
* Properties used to connect to QuickBooks. It is mutually exclusive with
* any other properties in the linked service. Type: object.
*/
@JsonProperty(value = "typeProperties.connectionProperties")
private Object connectionProperties;
/*
* The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com)
*/
@JsonProperty(value = "typeProperties.endpoint", required = true)
private Object endpoint;
/*
* The company ID of the QuickBooks company to authorize.
*/
@JsonProperty(value = "typeProperties.companyId", required = true)
private Object companyId;
/*
* The consumer key for OAuth 1.0 authentication.
*/
@JsonProperty(value = "typeProperties.consumerKey", required = true)
private Object consumerKey;
/*
* The consumer secret for OAuth 1.0 authentication.
*/
@JsonProperty(value = "typeProperties.consumerSecret", required = true)
private SecretBase consumerSecret;
/*
* The access token for OAuth 1.0 authentication.
*/
@JsonProperty(value = "typeProperties.accessToken", required = true)
private SecretBase accessToken;
/*
* The access token secret for OAuth 1.0 authentication.
*/
@JsonProperty(value = "typeProperties.accessTokenSecret", required = true)
private SecretBase accessTokenSecret;
/*
* Specifies whether the data source endpoints are encrypted using HTTPS.
* The default value is true.
*/
@JsonProperty(value = "typeProperties.useEncryptedEndpoints")
private Object useEncryptedEndpoints;
/*
* 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 connectionProperties property: Properties used to connect to QuickBooks. It is mutually exclusive with
* any other properties in the linked service. Type: object.
*
* @return the connectionProperties value.
*/
public Object getConnectionProperties() {
return this.connectionProperties;
}
/**
* Set the connectionProperties property: Properties used to connect to QuickBooks. It is mutually exclusive with
* any other properties in the linked service. Type: object.
*
* @param connectionProperties the connectionProperties value to set.
* @return the QuickBooksLinkedService object itself.
*/
public QuickBooksLinkedService setConnectionProperties(Object connectionProperties) {
this.connectionProperties = connectionProperties;
return this;
}
/**
* Get the endpoint property: The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com).
*
* @return the endpoint value.
*/
public Object getEndpoint() {
return this.endpoint;
}
/**
* Set the endpoint property: The endpoint of the QuickBooks server. (i.e. quickbooks.api.intuit.com).
*
* @param endpoint the endpoint value to set.
* @return the QuickBooksLinkedService object itself.
*/
public QuickBooksLinkedService setEndpoint(Object endpoint) {
this.endpoint = endpoint;
return this;
}
/**
* Get the companyId property: The company ID of the QuickBooks company to authorize.
*
* @return the companyId value.
*/
public Object getCompanyId() {
return this.companyId;
}
/**
* Set the companyId property: The company ID of the QuickBooks company to authorize.
*
* @param companyId the companyId value to set.
* @return the QuickBooksLinkedService object itself.
*/
public QuickBooksLinkedService setCompanyId(Object companyId) {
this.companyId = companyId;
return this;
}
/**
* Get the consumerKey property: The consumer key for OAuth 1.0 authentication.
*
* @return the consumerKey value.
*/
public Object getConsumerKey() {
return this.consumerKey;
}
/**
* Set the consumerKey property: The consumer key for OAuth 1.0 authentication.
*
* @param consumerKey the consumerKey value to set.
* @return the QuickBooksLinkedService object itself.
*/
public QuickBooksLinkedService setConsumerKey(Object consumerKey) {
this.consumerKey = consumerKey;
return this;
}
/**
* Get the consumerSecret property: The consumer secret for OAuth 1.0 authentication.
*
* @return the consumerSecret value.
*/
public SecretBase getConsumerSecret() {
return this.consumerSecret;
}
/**
* Set the consumerSecret property: The consumer secret for OAuth 1.0 authentication.
*
* @param consumerSecret the consumerSecret value to set.
* @return the QuickBooksLinkedService object itself.
*/
public QuickBooksLinkedService setConsumerSecret(SecretBase consumerSecret) {
this.consumerSecret = consumerSecret;
return this;
}
/**
* Get the accessToken property: The access token for OAuth 1.0 authentication.
*
* @return the accessToken value.
*/
public SecretBase getAccessToken() {
return this.accessToken;
}
/**
* Set the accessToken property: The access token for OAuth 1.0 authentication.
*
* @param accessToken the accessToken value to set.
* @return the QuickBooksLinkedService object itself.
*/
public QuickBooksLinkedService setAccessToken(SecretBase accessToken) {
this.accessToken = accessToken;
return this;
}
/**
* Get the accessTokenSecret property: The access token secret for OAuth 1.0 authentication.
*
* @return the accessTokenSecret value.
*/
public SecretBase getAccessTokenSecret() {
return this.accessTokenSecret;
}
/**
* Set the accessTokenSecret property: The access token secret for OAuth 1.0 authentication.
*
* @param accessTokenSecret the accessTokenSecret value to set.
* @return the QuickBooksLinkedService object itself.
*/
public QuickBooksLinkedService setAccessTokenSecret(SecretBase accessTokenSecret) {
this.accessTokenSecret = accessTokenSecret;
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 QuickBooksLinkedService object itself.
*/
public QuickBooksLinkedService setUseEncryptedEndpoints(Object useEncryptedEndpoints) {
this.useEncryptedEndpoints = useEncryptedEndpoints;
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 QuickBooksLinkedService object itself.
*/
public QuickBooksLinkedService setEncryptedCredential(Object encryptedCredential) {
this.encryptedCredential = encryptedCredential;
return this;
}
}