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

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

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

/** The response from List GitHubOAuth operation. */
@Fluent
public final class GitHubOAuthProperties {
    /*
     * user making request
     */
    @JsonProperty(value = "username")
    private String username;

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

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

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

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