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

com.pulumi.azurenative.machinelearningservices.outputs.ManagedIdentityResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.machinelearningservices.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ManagedIdentityResponse {
    /**
     * @return Specifies a user-assigned identity by client ID. For system-assigned, do not set this field.
     * 
     */
    private @Nullable String clientId;
    /**
     * @return Enum to determine identity framework.
     * Expected value is 'Managed'.
     * 
     */
    private String identityType;
    /**
     * @return Specifies a user-assigned identity by object ID. For system-assigned, do not set this field.
     * 
     */
    private @Nullable String objectId;
    /**
     * @return Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field.
     * 
     */
    private @Nullable String resourceId;

    private ManagedIdentityResponse() {}
    /**
     * @return Specifies a user-assigned identity by client ID. For system-assigned, do not set this field.
     * 
     */
    public Optional clientId() {
        return Optional.ofNullable(this.clientId);
    }
    /**
     * @return Enum to determine identity framework.
     * Expected value is 'Managed'.
     * 
     */
    public String identityType() {
        return this.identityType;
    }
    /**
     * @return Specifies a user-assigned identity by object ID. For system-assigned, do not set this field.
     * 
     */
    public Optional objectId() {
        return Optional.ofNullable(this.objectId);
    }
    /**
     * @return Specifies a user-assigned identity by ARM resource ID. For system-assigned, do not set this field.
     * 
     */
    public Optional resourceId() {
        return Optional.ofNullable(this.resourceId);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ManagedIdentityResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String clientId;
        private String identityType;
        private @Nullable String objectId;
        private @Nullable String resourceId;
        public Builder() {}
        public Builder(ManagedIdentityResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.clientId = defaults.clientId;
    	      this.identityType = defaults.identityType;
    	      this.objectId = defaults.objectId;
    	      this.resourceId = defaults.resourceId;
        }

        @CustomType.Setter
        public Builder clientId(@Nullable String clientId) {

            this.clientId = clientId;
            return this;
        }
        @CustomType.Setter
        public Builder identityType(String identityType) {
            if (identityType == null) {
              throw new MissingRequiredPropertyException("ManagedIdentityResponse", "identityType");
            }
            this.identityType = identityType;
            return this;
        }
        @CustomType.Setter
        public Builder objectId(@Nullable String objectId) {

            this.objectId = objectId;
            return this;
        }
        @CustomType.Setter
        public Builder resourceId(@Nullable String resourceId) {

            this.resourceId = resourceId;
            return this;
        }
        public ManagedIdentityResponse build() {
            final var _resultValue = new ManagedIdentityResponse();
            _resultValue.clientId = clientId;
            _resultValue.identityType = identityType;
            _resultValue.objectId = objectId;
            _resultValue.resourceId = resourceId;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy