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

com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.SubjectPatchArgs Maven / Gradle / Ivy

There is a newer version: 4.19.0
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.v1alpha1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.GroupSubjectPatchArgs;
import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.ServiceAccountSubjectPatchArgs;
import com.pulumi.kubernetes.flowcontrol.v1alpha1.inputs.UserSubjectPatchArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Subject matches the originator of a request, as identified by the request authentication system. There are three ways of matching an originator; by user, group, or service account.
 * 
 */
public final class SubjectPatchArgs extends com.pulumi.resources.ResourceArgs {

    public static final SubjectPatchArgs Empty = new SubjectPatchArgs();

    @Import(name="group")
    private @Nullable Output group;

    public Optional> group() {
        return Optional.ofNullable(this.group);
    }

    /**
     * Required
     * 
     */
    @Import(name="kind")
    private @Nullable Output kind;

    /**
     * @return Required
     * 
     */
    public Optional> kind() {
        return Optional.ofNullable(this.kind);
    }

    @Import(name="serviceAccount")
    private @Nullable Output serviceAccount;

    public Optional> serviceAccount() {
        return Optional.ofNullable(this.serviceAccount);
    }

    @Import(name="user")
    private @Nullable Output user;

    public Optional> user() {
        return Optional.ofNullable(this.user);
    }

    private SubjectPatchArgs() {}

    private SubjectPatchArgs(SubjectPatchArgs $) {
        this.group = $.group;
        this.kind = $.kind;
        this.serviceAccount = $.serviceAccount;
        this.user = $.user;
    }

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

    public static final class Builder {
        private SubjectPatchArgs $;

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

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

        public Builder group(@Nullable Output group) {
            $.group = group;
            return this;
        }

        public Builder group(GroupSubjectPatchArgs group) {
            return group(Output.of(group));
        }

        /**
         * @param kind Required
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Required
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Output.of(kind));
        }

        public Builder serviceAccount(@Nullable Output serviceAccount) {
            $.serviceAccount = serviceAccount;
            return this;
        }

        public Builder serviceAccount(ServiceAccountSubjectPatchArgs serviceAccount) {
            return serviceAccount(Output.of(serviceAccount));
        }

        public Builder user(@Nullable Output user) {
            $.user = user;
            return this;
        }

        public Builder user(UserSubjectPatchArgs user) {
            return user(Output.of(user));
        }

        public SubjectPatchArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy