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

com.pulumi.azurenative.datafactory.outputs.ManagedIdentityCredentialResponse Maven / Gradle / Ivy

There is a newer version: 2.72.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.datafactory.outputs;

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

@CustomType
public final class ManagedIdentityCredentialResponse {
    /**
     * @return List of tags that can be used for describing the Credential.
     * 
     */
    private @Nullable List annotations;
    /**
     * @return Credential description.
     * 
     */
    private @Nullable String description;
    /**
     * @return The resource id of user assigned managed identity
     * 
     */
    private @Nullable String resourceId;
    /**
     * @return Type of credential.
     * Expected value is 'ManagedIdentity'.
     * 
     */
    private String type;

    private ManagedIdentityCredentialResponse() {}
    /**
     * @return List of tags that can be used for describing the Credential.
     * 
     */
    public List annotations() {
        return this.annotations == null ? List.of() : this.annotations;
    }
    /**
     * @return Credential description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The resource id of user assigned managed identity
     * 
     */
    public Optional resourceId() {
        return Optional.ofNullable(this.resourceId);
    }
    /**
     * @return Type of credential.
     * Expected value is 'ManagedIdentity'.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(ManagedIdentityCredentialResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List annotations;
        private @Nullable String description;
        private @Nullable String resourceId;
        private String type;
        public Builder() {}
        public Builder(ManagedIdentityCredentialResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.annotations = defaults.annotations;
    	      this.description = defaults.description;
    	      this.resourceId = defaults.resourceId;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder annotations(@Nullable List annotations) {

            this.annotations = annotations;
            return this;
        }
        public Builder annotations(Object... annotations) {
            return annotations(List.of(annotations));
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

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

            this.resourceId = resourceId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("ManagedIdentityCredentialResponse", "type");
            }
            this.type = type;
            return this;
        }
        public ManagedIdentityCredentialResponse build() {
            final var _resultValue = new ManagedIdentityCredentialResponse();
            _resultValue.annotations = annotations;
            _resultValue.description = description;
            _resultValue.resourceId = resourceId;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}