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

com.pulumi.azure.containerservice.ClusterTrustedAccessRoleBindingArgs 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.containerservice;

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


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

    public static final ClusterTrustedAccessRoleBindingArgs Empty = new ClusterTrustedAccessRoleBindingArgs();

    /**
     * Specifies the Kubernetes Cluster Id within which this Kubernetes Cluster Trusted Access Role Binding should exist. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created.
     * 
     */
    @Import(name="kubernetesClusterId", required=true)
    private Output kubernetesClusterId;

    /**
     * @return Specifies the Kubernetes Cluster Id within which this Kubernetes Cluster Trusted Access Role Binding should exist. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created.
     * 
     */
    public Output kubernetesClusterId() {
        return this.kubernetesClusterId;
    }

    /**
     * Specifies the name of this Kubernetes Cluster Trusted Access Role Binding. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Specifies the name of this Kubernetes Cluster Trusted Access Role Binding. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A list of roles to bind, each item is a resource type qualified role name.
     * 
     */
    @Import(name="roles", required=true)
    private Output> roles;

    /**
     * @return A list of roles to bind, each item is a resource type qualified role name.
     * 
     */
    public Output> roles() {
        return this.roles;
    }

    /**
     * The ARM resource ID of source resource that trusted access is configured for. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created.
     * 
     */
    @Import(name="sourceResourceId", required=true)
    private Output sourceResourceId;

    /**
     * @return The ARM resource ID of source resource that trusted access is configured for. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created.
     * 
     */
    public Output sourceResourceId() {
        return this.sourceResourceId;
    }

    private ClusterTrustedAccessRoleBindingArgs() {}

    private ClusterTrustedAccessRoleBindingArgs(ClusterTrustedAccessRoleBindingArgs $) {
        this.kubernetesClusterId = $.kubernetesClusterId;
        this.name = $.name;
        this.roles = $.roles;
        this.sourceResourceId = $.sourceResourceId;
    }

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

    public static final class Builder {
        private ClusterTrustedAccessRoleBindingArgs $;

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

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

        /**
         * @param kubernetesClusterId Specifies the Kubernetes Cluster Id within which this Kubernetes Cluster Trusted Access Role Binding should exist. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created.
         * 
         * @return builder
         * 
         */
        public Builder kubernetesClusterId(Output kubernetesClusterId) {
            $.kubernetesClusterId = kubernetesClusterId;
            return this;
        }

        /**
         * @param kubernetesClusterId Specifies the Kubernetes Cluster Id within which this Kubernetes Cluster Trusted Access Role Binding should exist. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created.
         * 
         * @return builder
         * 
         */
        public Builder kubernetesClusterId(String kubernetesClusterId) {
            return kubernetesClusterId(Output.of(kubernetesClusterId));
        }

        /**
         * @param name Specifies the name of this Kubernetes Cluster Trusted Access Role Binding. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of this Kubernetes Cluster Trusted Access Role Binding. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param roles A list of roles to bind, each item is a resource type qualified role name.
         * 
         * @return builder
         * 
         */
        public Builder roles(Output> roles) {
            $.roles = roles;
            return this;
        }

        /**
         * @param roles A list of roles to bind, each item is a resource type qualified role name.
         * 
         * @return builder
         * 
         */
        public Builder roles(List roles) {
            return roles(Output.of(roles));
        }

        /**
         * @param roles A list of roles to bind, each item is a resource type qualified role name.
         * 
         * @return builder
         * 
         */
        public Builder roles(String... roles) {
            return roles(List.of(roles));
        }

        /**
         * @param sourceResourceId The ARM resource ID of source resource that trusted access is configured for. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created.
         * 
         * @return builder
         * 
         */
        public Builder sourceResourceId(Output sourceResourceId) {
            $.sourceResourceId = sourceResourceId;
            return this;
        }

        /**
         * @param sourceResourceId The ARM resource ID of source resource that trusted access is configured for. Changing this forces a new Kubernetes Cluster Trusted Access Role Binding to be created.
         * 
         * @return builder
         * 
         */
        public Builder sourceResourceId(String sourceResourceId) {
            return sourceResourceId(Output.of(sourceResourceId));
        }

        public ClusterTrustedAccessRoleBindingArgs build() {
            if ($.kubernetesClusterId == null) {
                throw new MissingRequiredPropertyException("ClusterTrustedAccessRoleBindingArgs", "kubernetesClusterId");
            }
            if ($.roles == null) {
                throw new MissingRequiredPropertyException("ClusterTrustedAccessRoleBindingArgs", "roles");
            }
            if ($.sourceResourceId == null) {
                throw new MissingRequiredPropertyException("ClusterTrustedAccessRoleBindingArgs", "sourceResourceId");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy