SecureString.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.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/**
 * Azure Synapse secure string definition. The string value will be masked with asterisks '*' during Get or List API
 * calls.
 */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("SecureString")
@Fluent
public final class SecureString extends SecretBase {
    /*
     * Value of secure string.
     */
    @JsonProperty(value = "value", required = true)
    private String value;

    /**
     * Get the value property: Value of secure string.
     *
     * @return the value value.
     */
    public String getValue() {
        return this.value;
    }

    /**
     * Set the value property: Value of secure string.
     *
     * @param value the value value to set.
     * @return the SecureString object itself.
     */
    public SecureString setValue(String value) {
        this.value = value;
        return this;
    }
}