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

com.pulumi.kubernetes.flowcontrol.v1beta3.outputs.ServiceAccountSubject 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.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;

@CustomType
public final class ServiceAccountSubject {
    /**
     * @return `name` is the name of matching ServiceAccount objects, or "*" to match regardless of name. Required.
     * 
     */
    private String name;
    /**
     * @return `namespace` is the namespace of matching ServiceAccount objects. Required.
     * 
     */
    private String namespace;

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

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

    public static Builder builder(ServiceAccountSubject defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String name;
        private String namespace;
        public Builder() {}
        public Builder(ServiceAccountSubject defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.name = defaults.name;
    	      this.namespace = defaults.namespace;
        }

        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("ServiceAccountSubject", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder namespace(String namespace) {
            if (namespace == null) {
              throw new MissingRequiredPropertyException("ServiceAccountSubject", "namespace");
            }
            this.namespace = namespace;
            return this;
        }
        public ServiceAccountSubject build() {
            final var _resultValue = new ServiceAccountSubject();
            _resultValue.name = name;
            _resultValue.namespace = namespace;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy