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

com.pulumi.azure.eventgrid.inputs.SystemTopicEventSubscriptionDeadLetterIdentityArgs Maven / Gradle / Ivy

// *** 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.azure.eventgrid.inputs;

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


public final class SystemTopicEventSubscriptionDeadLetterIdentityArgs extends com.pulumi.resources.ResourceArgs {

    public static final SystemTopicEventSubscriptionDeadLetterIdentityArgs Empty = new SystemTopicEventSubscriptionDeadLetterIdentityArgs();

    /**
     * Specifies the type of Managed Service Identity that is used for dead lettering. Allowed value is `SystemAssigned`, `UserAssigned`.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return Specifies the type of Managed Service Identity that is used for dead lettering. Allowed value is `SystemAssigned`, `UserAssigned`.
     * 
     */
    public Output type() {
        return this.type;
    }

    /**
     * The user identity associated with the resource.
     * 
     */
    @Import(name="userAssignedIdentity")
    private @Nullable Output userAssignedIdentity;

    /**
     * @return The user identity associated with the resource.
     * 
     */
    public Optional> userAssignedIdentity() {
        return Optional.ofNullable(this.userAssignedIdentity);
    }

    private SystemTopicEventSubscriptionDeadLetterIdentityArgs() {}

    private SystemTopicEventSubscriptionDeadLetterIdentityArgs(SystemTopicEventSubscriptionDeadLetterIdentityArgs $) {
        this.type = $.type;
        this.userAssignedIdentity = $.userAssignedIdentity;
    }

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

    public static final class Builder {
        private SystemTopicEventSubscriptionDeadLetterIdentityArgs $;

        public Builder() {
            $ = new SystemTopicEventSubscriptionDeadLetterIdentityArgs();
        }

        public Builder(SystemTopicEventSubscriptionDeadLetterIdentityArgs defaults) {
            $ = new SystemTopicEventSubscriptionDeadLetterIdentityArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param type Specifies the type of Managed Service Identity that is used for dead lettering. Allowed value is `SystemAssigned`, `UserAssigned`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Specifies the type of Managed Service Identity that is used for dead lettering. Allowed value is `SystemAssigned`, `UserAssigned`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        /**
         * @param userAssignedIdentity The user identity associated with the resource.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentity(@Nullable Output userAssignedIdentity) {
            $.userAssignedIdentity = userAssignedIdentity;
            return this;
        }

        /**
         * @param userAssignedIdentity The user identity associated with the resource.
         * 
         * @return builder
         * 
         */
        public Builder userAssignedIdentity(String userAssignedIdentity) {
            return userAssignedIdentity(Output.of(userAssignedIdentity));
        }

        public SystemTopicEventSubscriptionDeadLetterIdentityArgs build() {
            if ($.type == null) {
                throw new MissingRequiredPropertyException("SystemTopicEventSubscriptionDeadLetterIdentityArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy