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

com.pulumi.kubernetes.flowcontrol.v1beta3.inputs.ServiceAccountSubjectArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0-alpha.1730750641
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.kubernetes.flowcontrol.v1beta3.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;


/**
 * ServiceAccountSubject holds detailed information for service-account-kind subject.
 * 
 */
public final class ServiceAccountSubjectArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServiceAccountSubjectArgs Empty = new ServiceAccountSubjectArgs();

    /**
     * `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * `namespace` is the namespace of matching ServiceAccount objects. Required.
     * 
     */
    @Import(name="namespace", required=true)
    private Output namespace;

    /**
     * @return `namespace` is the namespace of matching ServiceAccount objects. Required.
     * 
     */
    public Output namespace() {
        return this.namespace;
    }

    private ServiceAccountSubjectArgs() {}

    private ServiceAccountSubjectArgs(ServiceAccountSubjectArgs $) {
        this.name = $.name;
        this.namespace = $.namespace;
    }

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

    public static final class Builder {
        private ServiceAccountSubjectArgs $;

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

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

        /**
         * @param name `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param namespace `namespace` is the namespace of matching ServiceAccount objects. Required.
         * 
         * @return builder
         * 
         */
        public Builder namespace(Output namespace) {
            $.namespace = namespace;
            return this;
        }

        /**
         * @param namespace `namespace` is the namespace of matching ServiceAccount objects. Required.
         * 
         * @return builder
         * 
         */
        public Builder namespace(String namespace) {
            return namespace(Output.of(namespace));
        }

        public ServiceAccountSubjectArgs build() {
            if ($.name == null) {
                throw new MissingRequiredPropertyException("ServiceAccountSubjectArgs", "name");
            }
            if ($.namespace == null) {
                throw new MissingRequiredPropertyException("ServiceAccountSubjectArgs", "namespace");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy