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

com.pulumi.googlenative.gkehub.v1beta.BindingArgs 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.googlenative.gkehub.v1beta;

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


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

    public static final BindingArgs Empty = new BindingArgs();

    /**
     * Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet.
     * 
     */
    @Import(name="fleet")
    private @Nullable Output fleet;

    /**
     * @return Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet.
     * 
     */
    public Optional> fleet() {
        return Optional.ofNullable(this.fleet);
    }

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

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

    /**
     * Required. The ID to use for the MembershipBinding.
     * 
     */
    @Import(name="membershipBindingId", required=true)
    private Output membershipBindingId;

    /**
     * @return Required. The ID to use for the MembershipBinding.
     * 
     */
    public Output membershipBindingId() {
        return this.membershipBindingId;
    }

    @Import(name="membershipId", required=true)
    private Output membershipId;

    public Output membershipId() {
        return this.membershipId;
    }

    /**
     * The resource name for the membershipbinding itself `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The resource name for the membershipbinding itself `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

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

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

    /**
     * A Workspace resource name in the format `projects/*{@literal /}locations/*{@literal /}scopes/*`.
     * 
     */
    @Import(name="scope")
    private @Nullable Output scope;

    /**
     * @return A Workspace resource name in the format `projects/*{@literal /}locations/*{@literal /}scopes/*`.
     * 
     */
    public Optional> scope() {
        return Optional.ofNullable(this.scope);
    }

    private BindingArgs() {}

    private BindingArgs(BindingArgs $) {
        this.fleet = $.fleet;
        this.location = $.location;
        this.membershipBindingId = $.membershipBindingId;
        this.membershipId = $.membershipId;
        this.name = $.name;
        this.project = $.project;
        this.scope = $.scope;
    }

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

    public static final class Builder {
        private BindingArgs $;

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

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

        /**
         * @param fleet Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet.
         * 
         * @return builder
         * 
         */
        public Builder fleet(@Nullable Output fleet) {
            $.fleet = fleet;
            return this;
        }

        /**
         * @param fleet Whether the membershipbinding is Fleet-wide; true means that this Membership should be bound to all Namespaces in this entire Fleet.
         * 
         * @return builder
         * 
         */
        public Builder fleet(Boolean fleet) {
            return fleet(Output.of(fleet));
        }

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

        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param membershipBindingId Required. The ID to use for the MembershipBinding.
         * 
         * @return builder
         * 
         */
        public Builder membershipBindingId(Output membershipBindingId) {
            $.membershipBindingId = membershipBindingId;
            return this;
        }

        /**
         * @param membershipBindingId Required. The ID to use for the MembershipBinding.
         * 
         * @return builder
         * 
         */
        public Builder membershipBindingId(String membershipBindingId) {
            return membershipBindingId(Output.of(membershipBindingId));
        }

        public Builder membershipId(Output membershipId) {
            $.membershipId = membershipId;
            return this;
        }

        public Builder membershipId(String membershipId) {
            return membershipId(Output.of(membershipId));
        }

        /**
         * @param name The resource name for the membershipbinding itself `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The resource name for the membershipbinding itself `projects/{project}/locations/{location}/memberships/{membership}/bindings/{membershipbinding}`
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

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

        public Builder project(String project) {
            return project(Output.of(project));
        }

        /**
         * @param scope A Workspace resource name in the format `projects/*{@literal /}locations/*{@literal /}scopes/*`.
         * 
         * @return builder
         * 
         */
        public Builder scope(@Nullable Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope A Workspace resource name in the format `projects/*{@literal /}locations/*{@literal /}scopes/*`.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        public BindingArgs build() {
            $.membershipBindingId = Objects.requireNonNull($.membershipBindingId, "expected parameter 'membershipBindingId' to be non-null");
            $.membershipId = Objects.requireNonNull($.membershipId, "expected parameter 'membershipId' to be non-null");
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy