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

com.pulumi.azurenative.iotoperations.inputs.PrincipalDefinitionArgs Maven / Gradle / Ivy

The 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.iotoperations.inputs;

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


/**
 * PrincipalDefinition properties of Rule
 * 
 */
public final class PrincipalDefinitionArgs extends com.pulumi.resources.ResourceArgs {

    public static final PrincipalDefinitionArgs Empty = new PrincipalDefinitionArgs();

    /**
     * A list of key-value pairs that match the attributes of the clients. The attributes are case-sensitive and must match the attributes provided by the clients during authentication.
     * 
     */
    @Import(name="attributes")
    private @Nullable Output>> attributes;

    /**
     * @return A list of key-value pairs that match the attributes of the clients. The attributes are case-sensitive and must match the attributes provided by the clients during authentication.
     * 
     */
    public Optional>>> attributes() {
        return Optional.ofNullable(this.attributes);
    }

    /**
     * A list of client IDs that match the clients. The client IDs are case-sensitive and must match the client IDs provided by the clients during connection.
     * 
     */
    @Import(name="clientIds")
    private @Nullable Output> clientIds;

    /**
     * @return A list of client IDs that match the clients. The client IDs are case-sensitive and must match the client IDs provided by the clients during connection.
     * 
     */
    public Optional>> clientIds() {
        return Optional.ofNullable(this.clientIds);
    }

    /**
     * A list of usernames that match the clients. The usernames are case-sensitive and must match the usernames provided by the clients during authentication.
     * 
     */
    @Import(name="usernames")
    private @Nullable Output> usernames;

    /**
     * @return A list of usernames that match the clients. The usernames are case-sensitive and must match the usernames provided by the clients during authentication.
     * 
     */
    public Optional>> usernames() {
        return Optional.ofNullable(this.usernames);
    }

    private PrincipalDefinitionArgs() {}

    private PrincipalDefinitionArgs(PrincipalDefinitionArgs $) {
        this.attributes = $.attributes;
        this.clientIds = $.clientIds;
        this.usernames = $.usernames;
    }

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

    public static final class Builder {
        private PrincipalDefinitionArgs $;

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

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

        /**
         * @param attributes A list of key-value pairs that match the attributes of the clients. The attributes are case-sensitive and must match the attributes provided by the clients during authentication.
         * 
         * @return builder
         * 
         */
        public Builder attributes(@Nullable Output>> attributes) {
            $.attributes = attributes;
            return this;
        }

        /**
         * @param attributes A list of key-value pairs that match the attributes of the clients. The attributes are case-sensitive and must match the attributes provided by the clients during authentication.
         * 
         * @return builder
         * 
         */
        public Builder attributes(List> attributes) {
            return attributes(Output.of(attributes));
        }

        /**
         * @param attributes A list of key-value pairs that match the attributes of the clients. The attributes are case-sensitive and must match the attributes provided by the clients during authentication.
         * 
         * @return builder
         * 
         */
        public Builder attributes(Map... attributes) {
            return attributes(List.of(attributes));
        }

        /**
         * @param clientIds A list of client IDs that match the clients. The client IDs are case-sensitive and must match the client IDs provided by the clients during connection.
         * 
         * @return builder
         * 
         */
        public Builder clientIds(@Nullable Output> clientIds) {
            $.clientIds = clientIds;
            return this;
        }

        /**
         * @param clientIds A list of client IDs that match the clients. The client IDs are case-sensitive and must match the client IDs provided by the clients during connection.
         * 
         * @return builder
         * 
         */
        public Builder clientIds(List clientIds) {
            return clientIds(Output.of(clientIds));
        }

        /**
         * @param clientIds A list of client IDs that match the clients. The client IDs are case-sensitive and must match the client IDs provided by the clients during connection.
         * 
         * @return builder
         * 
         */
        public Builder clientIds(String... clientIds) {
            return clientIds(List.of(clientIds));
        }

        /**
         * @param usernames A list of usernames that match the clients. The usernames are case-sensitive and must match the usernames provided by the clients during authentication.
         * 
         * @return builder
         * 
         */
        public Builder usernames(@Nullable Output> usernames) {
            $.usernames = usernames;
            return this;
        }

        /**
         * @param usernames A list of usernames that match the clients. The usernames are case-sensitive and must match the usernames provided by the clients during authentication.
         * 
         * @return builder
         * 
         */
        public Builder usernames(List usernames) {
            return usernames(Output.of(usernames));
        }

        /**
         * @param usernames A list of usernames that match the clients. The usernames are case-sensitive and must match the usernames provided by the clients during authentication.
         * 
         * @return builder
         * 
         */
        public Builder usernames(String... usernames) {
            return usernames(List.of(usernames));
        }

        public PrincipalDefinitionArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy