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

package com.azure.resourcemanager.machinelearning.models;

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

/** The WorkspaceConnectionUsernamePassword model. */
@Fluent
public final class WorkspaceConnectionUsernamePassword {
    /*
     * The username property.
     */
    @JsonProperty(value = "username")
    private String username;

    /*
     * The password property.
     */
    @JsonProperty(value = "password")
    private String password;

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

    /**
     * Get the username property: The username property.
     *
     * @return the username value.
     */
    public String username() {
        return this.username;
    }

    /**
     * Set the username property: The username property.
     *
     * @param username the username value to set.
     * @return the WorkspaceConnectionUsernamePassword object itself.
     */
    public WorkspaceConnectionUsernamePassword withUsername(String username) {
        this.username = username;
        return this;
    }

    /**
     * Get the password property: The password property.
     *
     * @return the password value.
     */
    public String password() {
        return this.password;
    }

    /**
     * Set the password property: The password property.
     *
     * @param password the password value to set.
     * @return the WorkspaceConnectionUsernamePassword object itself.
     */
    public WorkspaceConnectionUsernamePassword withPassword(String password) {
        this.password = password;
        return this;
    }

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