All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.mediaservices.models.ResourceIdentity Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for MediaServices Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. This Swagger was generated by the API Framework. Package tag package-account-2023-01.

There is a newer version: 2.4.0-beta.2
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.mediaservices.models;

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

/** The ResourceIdentity model. */
@Fluent
public class ResourceIdentity {
    /*
     * The user assigned managed identity's ARM ID to use when accessing a
     * resource.
     */
    @JsonProperty(value = "userAssignedIdentity")
    private String userAssignedIdentity;

    /*
     * Indicates whether to use System Assigned Managed Identity. Mutual
     * exclusive with User Assigned Managed Identity.
     */
    @JsonProperty(value = "useSystemAssignedIdentity", required = true)
    private boolean useSystemAssignedIdentity;

    /**
     * Get the userAssignedIdentity property: The user assigned managed identity's ARM ID to use when accessing a
     * resource.
     *
     * @return the userAssignedIdentity value.
     */
    public String userAssignedIdentity() {
        return this.userAssignedIdentity;
    }

    /**
     * Set the userAssignedIdentity property: The user assigned managed identity's ARM ID to use when accessing a
     * resource.
     *
     * @param userAssignedIdentity the userAssignedIdentity value to set.
     * @return the ResourceIdentity object itself.
     */
    public ResourceIdentity withUserAssignedIdentity(String userAssignedIdentity) {
        this.userAssignedIdentity = userAssignedIdentity;
        return this;
    }

    /**
     * Get the useSystemAssignedIdentity property: Indicates whether to use System Assigned Managed Identity. Mutual
     * exclusive with User Assigned Managed Identity.
     *
     * @return the useSystemAssignedIdentity value.
     */
    public boolean useSystemAssignedIdentity() {
        return this.useSystemAssignedIdentity;
    }

    /**
     * Set the useSystemAssignedIdentity property: Indicates whether to use System Assigned Managed Identity. Mutual
     * exclusive with User Assigned Managed Identity.
     *
     * @param useSystemAssignedIdentity the useSystemAssignedIdentity value to set.
     * @return the ResourceIdentity object itself.
     */
    public ResourceIdentity withUseSystemAssignedIdentity(boolean useSystemAssignedIdentity) {
        this.useSystemAssignedIdentity = useSystemAssignedIdentity;
        return this;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy