// 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;
import java.util.List;
import java.util.Map;

/** Linked service for Twilio. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("Twilio")
@JsonFlatten
@Fluent
public class TwilioLinkedService extends LinkedService {
    /*
     * The Account SID of Twilio service.
     */
    @JsonProperty(value = "typeProperties.userName", required = true)
    private Object userName;

    /*
     * The auth token of Twilio service.
     */
    @JsonProperty(value = "typeProperties.password", required = true)
    private SecretBase password;

    /** Creates an instance of TwilioLinkedService class. */
    public TwilioLinkedService() {}

    /**
     * Get the userName property: The Account SID of Twilio service.
     *
     * @return the userName value.
     */
    public Object getUserName() {
        return this.userName;
    }

    /**
     * Set the userName property: The Account SID of Twilio service.
     *
     * @param userName the userName value to set.
     * @return the TwilioLinkedService object itself.
     */
    public TwilioLinkedService setUserName(Object userName) {
        this.userName = userName;
        return this;
    }

    /**
     * Get the password property: The auth token of Twilio service.
     *
     * @return the password value.
     */
    public SecretBase getPassword() {
        return this.password;
    }

    /**
     * Set the password property: The auth token of Twilio service.
     *
     * @param password the password value to set.
     * @return the TwilioLinkedService object itself.
     */
    public TwilioLinkedService setPassword(SecretBase password) {
        this.password = password;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public TwilioLinkedService setConnectVia(IntegrationRuntimeReference connectVia) {
        super.setConnectVia(connectVia);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public TwilioLinkedService setDescription(String description) {
        super.setDescription(description);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public TwilioLinkedService setParameters(Map<String, ParameterSpecification> parameters) {
        super.setParameters(parameters);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public TwilioLinkedService setAnnotations(List<Object> annotations) {
        super.setAnnotations(annotations);
        return this;
    }
}
