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

package com.azure.resourcemanager.dynatrace.models;

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

/** Request for getting all the linkable environments for a user. */
@Fluent
public final class LinkableEnvironmentRequest {
    /*
     * Tenant Id of the user in which they want to link the environment
     */
    @JsonProperty(value = "tenantId")
    private String tenantId;

    /*
     * user principal id of the user
     */
    @JsonProperty(value = "userPrincipal")
    private String userPrincipal;

    /*
     * Azure region in which we want to link the environment
     */
    @JsonProperty(value = "region")
    private String region;

    /**
     * Get the tenantId property: Tenant Id of the user in which they want to link the environment.
     *
     * @return the tenantId value.
     */
    public String tenantId() {
        return this.tenantId;
    }

    /**
     * Set the tenantId property: Tenant Id of the user in which they want to link the environment.
     *
     * @param tenantId the tenantId value to set.
     * @return the LinkableEnvironmentRequest object itself.
     */
    public LinkableEnvironmentRequest withTenantId(String tenantId) {
        this.tenantId = tenantId;
        return this;
    }

    /**
     * Get the userPrincipal property: user principal id of the user.
     *
     * @return the userPrincipal value.
     */
    public String userPrincipal() {
        return this.userPrincipal;
    }

    /**
     * Set the userPrincipal property: user principal id of the user.
     *
     * @param userPrincipal the userPrincipal value to set.
     * @return the LinkableEnvironmentRequest object itself.
     */
    public LinkableEnvironmentRequest withUserPrincipal(String userPrincipal) {
        this.userPrincipal = userPrincipal;
        return this;
    }

    /**
     * Get the region property: Azure region in which we want to link the environment.
     *
     * @return the region value.
     */
    public String region() {
        return this.region;
    }

    /**
     * Set the region property: Azure region in which we want to link the environment.
     *
     * @param region the region value to set.
     * @return the LinkableEnvironmentRequest object itself.
     */
    public LinkableEnvironmentRequest withRegion(String region) {
        this.region = region;
        return this;
    }

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