// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.automation.fluent.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The properties of the create variable operation. */
@Fluent
public final class VariableCreateOrUpdateProperties {
    /*
     * Gets or sets the value of the variable.
     */
    @JsonProperty(value = "value")
    private String value;

    /*
     * Gets or sets the description of the variable.
     */
    @JsonProperty(value = "description")
    private String description;

    /*
     * Gets or sets the encrypted flag of the variable.
     */
    @JsonProperty(value = "isEncrypted")
    private Boolean isEncrypted;

    /**
     * Get the value property: Gets or sets the value of the variable.
     *
     * @return the value value.
     */
    public String value() {
        return this.value;
    }

    /**
     * Set the value property: Gets or sets the value of the variable.
     *
     * @param value the value value to set.
     * @return the VariableCreateOrUpdateProperties object itself.
     */
    public VariableCreateOrUpdateProperties withValue(String value) {
        this.value = value;
        return this;
    }

    /**
     * Get the description property: Gets or sets the description of the variable.
     *
     * @return the description value.
     */
    public String description() {
        return this.description;
    }

    /**
     * Set the description property: Gets or sets the description of the variable.
     *
     * @param description the description value to set.
     * @return the VariableCreateOrUpdateProperties object itself.
     */
    public VariableCreateOrUpdateProperties withDescription(String description) {
        this.description = description;
        return this;
    }

    /**
     * Get the isEncrypted property: Gets or sets the encrypted flag of the variable.
     *
     * @return the isEncrypted value.
     */
    public Boolean isEncrypted() {
        return this.isEncrypted;
    }

    /**
     * Set the isEncrypted property: Gets or sets the encrypted flag of the variable.
     *
     * @param isEncrypted the isEncrypted value to set.
     * @return the VariableCreateOrUpdateProperties object itself.
     */
    public VariableCreateOrUpdateProperties withIsEncrypted(Boolean isEncrypted) {
        this.isEncrypted = isEncrypted;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
