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

package com.azure.media.videoanalyzer.edge.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** Username and password credentials. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "@type")
@JsonTypeName("#Microsoft.VideoAnalyzer.UsernamePasswordCredentials")
@Fluent
public final class UsernamePasswordCredentials extends CredentialsBase {
    /*
     * Username to be presented as part of the credentials.
     */
    @JsonProperty(value = "username", required = true)
    private String username;

    /*
     * Password to be presented as part of the credentials. It is recommended
     * that this value is parameterized as a secret string in order to prevent
     * this value to be returned as part of the resource on API requests.
     */
    @JsonProperty(value = "password", required = true)
    private String password;

    /**
     * Creates an instance of UsernamePasswordCredentials class.
     *
     * @param username the username value to set.
     * @param password the password value to set.
     */
    @JsonCreator
    public UsernamePasswordCredentials(
            @JsonProperty(value = "username", required = true) String username,
            @JsonProperty(value = "password", required = true) String password) {
        this.username = username;
        this.password = password;
    }

    /**
     * Get the username property: Username to be presented as part of the credentials.
     *
     * @return the username value.
     */
    public String getUsername() {
        return this.username;
    }

    /**
     * Get the password property: Password to be presented as part of the credentials. It is recommended that this value
     * is parameterized as a secret string in order to prevent this value to be returned as part of the resource on API
     * requests.
     *
     * @return the password value.
     */
    public String getPassword() {
        return this.password;
    }
}
