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

com.pulumi.kubernetes.flowcontrol.v1beta1.inputs.ServiceAccountSubjectPatchArgs 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.v1beta1.inputs;

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


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

    public static final ServiceAccountSubjectPatchArgs Empty = new ServiceAccountSubjectPatchArgs();

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

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

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

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

    private ServiceAccountSubjectPatchArgs() {}

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

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

    public static final class Builder {
        private ServiceAccountSubjectPatchArgs $;

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

        public Builder(ServiceAccountSubjectPatchArgs defaults) {
            $ = new ServiceAccountSubjectPatchArgs(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(@Nullable 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(@Nullable 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 ServiceAccountSubjectPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy