// 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.models;

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

/** GitHubOAuth request object. */
@Fluent
public final class GitHubOAuthCallRequest {
    /*
     * The URL the client will redirect to on successful authentication. If empty, no redirect will occur.
     */
    @JsonProperty(value = "redirectUrl")
    private String redirectUrl;

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

    /**
     * Get the redirectUrl property: The URL the client will redirect to on successful authentication. If empty, no
     * redirect will occur.
     *
     * @return the redirectUrl value.
     */
    public String redirectUrl() {
        return this.redirectUrl;
    }

    /**
     * Set the redirectUrl property: The URL the client will redirect to on successful authentication. If empty, no
     * redirect will occur.
     *
     * @param redirectUrl the redirectUrl value to set.
     * @return the GitHubOAuthCallRequest object itself.
     */
    public GitHubOAuthCallRequest withRedirectUrl(String redirectUrl) {
        this.redirectUrl = redirectUrl;
        return this;
    }

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