/sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/ImpalaLinkedService.java
Java | 355 lines | 163 code | 32 blank | 160 comment | 36 complexity | 41ced75b9724583b642dc4e795e856e1 MD5 | raw file
Possible License(s): MIT
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // Licensed under the MIT License.
- // Code generated by Microsoft (R) AutoRest Code Generator.
- package com.azure.resourcemanager.datafactory.models;
- import com.azure.core.annotation.Fluent;
- import com.azure.core.util.logging.ClientLogger;
- import com.azure.resourcemanager.datafactory.fluent.models.ImpalaLinkedServiceTypeProperties;
- import com.fasterxml.jackson.annotation.JsonIgnore;
- import com.fasterxml.jackson.annotation.JsonProperty;
- import com.fasterxml.jackson.annotation.JsonTypeInfo;
- import com.fasterxml.jackson.annotation.JsonTypeName;
- import java.util.List;
- import java.util.Map;
- /** Impala server linked service. */
- @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
- @JsonTypeName("Impala")
- @Fluent
- public final class ImpalaLinkedService extends LinkedService {
- @JsonIgnore private final ClientLogger logger = new ClientLogger(ImpalaLinkedService.class);
- /*
- * Impala server linked service properties.
- */
- @JsonProperty(value = "typeProperties", required = true)
- private ImpalaLinkedServiceTypeProperties innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
- /**
- * Get the innerTypeProperties property: Impala server linked service properties.
- *
- * @return the innerTypeProperties value.
- */
- private ImpalaLinkedServiceTypeProperties innerTypeProperties() {
- return this.innerTypeProperties;
- }
- /** {@inheritDoc} */
- @Override
- public ImpalaLinkedService withConnectVia(IntegrationRuntimeReference connectVia) {
- super.withConnectVia(connectVia);
- return this;
- }
- /** {@inheritDoc} */
- @Override
- public ImpalaLinkedService withDescription(String description) {
- super.withDescription(description);
- return this;
- }
- /** {@inheritDoc} */
- @Override
- public ImpalaLinkedService withParameters(Map<String, ParameterSpecification> parameters) {
- super.withParameters(parameters);
- return this;
- }
- /** {@inheritDoc} */
- @Override
- public ImpalaLinkedService withAnnotations(List<Object> annotations) {
- super.withAnnotations(annotations);
- return this;
- }
- /**
- * Get the host property: The IP address or host name of the Impala server. (i.e. 192.168.222.160).
- *
- * @return the host value.
- */
- public Object host() {
- return this.innerTypeProperties() == null ? null : this.innerTypeProperties().host();
- }
- /**
- * Set the host property: The IP address or host name of the Impala server. (i.e. 192.168.222.160).
- *
- * @param host the host value to set.
- * @return the ImpalaLinkedService object itself.
- */
- public ImpalaLinkedService withHost(Object host) {
- if (this.innerTypeProperties() == null) {
- this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
- }
- this.innerTypeProperties().withHost(host);
- return this;
- }
- /**
- * Get the port property: The TCP port that the Impala server uses to listen for client connections. The default
- * value is 21050.
- *
- * @return the port value.
- */
- public Object port() {
- return this.innerTypeProperties() == null ? null : this.innerTypeProperties().port();
- }
- /**
- * Set the port property: The TCP port that the Impala server uses to listen for client connections. The default
- * value is 21050.
- *
- * @param port the port value to set.
- * @return the ImpalaLinkedService object itself.
- */
- public ImpalaLinkedService withPort(Object port) {
- if (this.innerTypeProperties() == null) {
- this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
- }
- this.innerTypeProperties().withPort(port);
- return this;
- }
- /**
- * Get the authenticationType property: The authentication type to use.
- *
- * @return the authenticationType value.
- */
- public ImpalaAuthenticationType authenticationType() {
- return this.innerTypeProperties() == null ? null : this.innerTypeProperties().authenticationType();
- }
- /**
- * Set the authenticationType property: The authentication type to use.
- *
- * @param authenticationType the authenticationType value to set.
- * @return the ImpalaLinkedService object itself.
- */
- public ImpalaLinkedService withAuthenticationType(ImpalaAuthenticationType authenticationType) {
- if (this.innerTypeProperties() == null) {
- this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
- }
- this.innerTypeProperties().withAuthenticationType(authenticationType);
- return this;
- }
- /**
- * Get the username property: The user name used to access the Impala server. The default value is anonymous when
- * using SASLUsername.
- *
- * @return the username value.
- */
- public Object username() {
- return this.innerTypeProperties() == null ? null : this.innerTypeProperties().username();
- }
- /**
- * Set the username property: The user name used to access the Impala server. The default value is anonymous when
- * using SASLUsername.
- *
- * @param username the username value to set.
- * @return the ImpalaLinkedService object itself.
- */
- public ImpalaLinkedService withUsername(Object username) {
- if (this.innerTypeProperties() == null) {
- this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
- }
- this.innerTypeProperties().withUsername(username);
- return this;
- }
- /**
- * Get the password property: The password corresponding to the user name when using UsernameAndPassword.
- *
- * @return the password value.
- */
- public SecretBase password() {
- return this.innerTypeProperties() == null ? null : this.innerTypeProperties().password();
- }
- /**
- * Set the password property: The password corresponding to the user name when using UsernameAndPassword.
- *
- * @param password the password value to set.
- * @return the ImpalaLinkedService object itself.
- */
- public ImpalaLinkedService withPassword(SecretBase password) {
- if (this.innerTypeProperties() == null) {
- this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
- }
- this.innerTypeProperties().withPassword(password);
- return this;
- }
- /**
- * Get the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default
- * value is false.
- *
- * @return the enableSsl value.
- */
- public Object enableSsl() {
- return this.innerTypeProperties() == null ? null : this.innerTypeProperties().enableSsl();
- }
- /**
- * Set the enableSsl property: Specifies whether the connections to the server are encrypted using SSL. The default
- * value is false.
- *
- * @param enableSsl the enableSsl value to set.
- * @return the ImpalaLinkedService object itself.
- */
- public ImpalaLinkedService withEnableSsl(Object enableSsl) {
- if (this.innerTypeProperties() == null) {
- this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
- }
- this.innerTypeProperties().withEnableSsl(enableSsl);
- return this;
- }
- /**
- * Get the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying
- * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default
- * value is the cacerts.pem file installed with the IR.
- *
- * @return the trustedCertPath value.
- */
- public Object trustedCertPath() {
- return this.innerTypeProperties() == null ? null : this.innerTypeProperties().trustedCertPath();
- }
- /**
- * Set the trustedCertPath property: The full path of the .pem file containing trusted CA certificates for verifying
- * the server when connecting over SSL. This property can only be set when using SSL on self-hosted IR. The default
- * value is the cacerts.pem file installed with the IR.
- *
- * @param trustedCertPath the trustedCertPath value to set.
- * @return the ImpalaLinkedService object itself.
- */
- public ImpalaLinkedService withTrustedCertPath(Object trustedCertPath) {
- if (this.innerTypeProperties() == null) {
- this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
- }
- this.innerTypeProperties().withTrustedCertPath(trustedCertPath);
- return this;
- }
- /**
- * Get the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or
- * from a specified PEM file. The default value is false.
- *
- * @return the useSystemTrustStore value.
- */
- public Object useSystemTrustStore() {
- return this.innerTypeProperties() == null ? null : this.innerTypeProperties().useSystemTrustStore();
- }
- /**
- * Set the useSystemTrustStore property: Specifies whether to use a CA certificate from the system trust store or
- * from a specified PEM file. The default value is false.
- *
- * @param useSystemTrustStore the useSystemTrustStore value to set.
- * @return the ImpalaLinkedService object itself.
- */
- public ImpalaLinkedService withUseSystemTrustStore(Object useSystemTrustStore) {
- if (this.innerTypeProperties() == null) {
- this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
- }
- this.innerTypeProperties().withUseSystemTrustStore(useSystemTrustStore);
- return this;
- }
- /**
- * Get the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match
- * the host name of the server when connecting over SSL. The default value is false.
- *
- * @return the allowHostnameCNMismatch value.
- */
- public Object allowHostnameCNMismatch() {
- return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowHostnameCNMismatch();
- }
- /**
- * Set the allowHostnameCNMismatch property: Specifies whether to require a CA-issued SSL certificate name to match
- * the host name of the server when connecting over SSL. The default value is false.
- *
- * @param allowHostnameCNMismatch the allowHostnameCNMismatch value to set.
- * @return the ImpalaLinkedService object itself.
- */
- public ImpalaLinkedService withAllowHostnameCNMismatch(Object allowHostnameCNMismatch) {
- if (this.innerTypeProperties() == null) {
- this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
- }
- this.innerTypeProperties().withAllowHostnameCNMismatch(allowHostnameCNMismatch);
- return this;
- }
- /**
- * Get the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server.
- * The default value is false.
- *
- * @return the allowSelfSignedServerCert value.
- */
- public Object allowSelfSignedServerCert() {
- return this.innerTypeProperties() == null ? null : this.innerTypeProperties().allowSelfSignedServerCert();
- }
- /**
- * Set the allowSelfSignedServerCert property: Specifies whether to allow self-signed certificates from the server.
- * The default value is false.
- *
- * @param allowSelfSignedServerCert the allowSelfSignedServerCert value to set.
- * @return the ImpalaLinkedService object itself.
- */
- public ImpalaLinkedService withAllowSelfSignedServerCert(Object allowSelfSignedServerCert) {
- if (this.innerTypeProperties() == null) {
- this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
- }
- this.innerTypeProperties().withAllowSelfSignedServerCert(allowSelfSignedServerCert);
- 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 encryptedCredential() {
- return this.innerTypeProperties() == null ? null : this.innerTypeProperties().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 ImpalaLinkedService object itself.
- */
- public ImpalaLinkedService withEncryptedCredential(Object encryptedCredential) {
- if (this.innerTypeProperties() == null) {
- this.innerTypeProperties = new ImpalaLinkedServiceTypeProperties();
- }
- this.innerTypeProperties().withEncryptedCredential(encryptedCredential);
- return this;
- }
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- @Override
- public void validate() {
- super.validate();
- if (innerTypeProperties() == null) {
- throw logger
- .logExceptionAsError(
- new IllegalArgumentException(
- "Missing required property innerTypeProperties in model ImpalaLinkedService"));
- } else {
- innerTypeProperties().validate();
- }
- }
- }