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

com.pulumi.googlenative.composer.v1beta1.inputs.CidrBlockArgs 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.composer.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;


/**
 * CIDR block with an optional name.
 * 
 */
public final class CidrBlockArgs extends com.pulumi.resources.ResourceArgs {

    public static final CidrBlockArgs Empty = new CidrBlockArgs();

    /**
     * CIDR block that must be specified in CIDR notation.
     * 
     */
    @Import(name="cidrBlock")
    private @Nullable Output cidrBlock;

    /**
     * @return CIDR block that must be specified in CIDR notation.
     * 
     */
    public Optional> cidrBlock() {
        return Optional.ofNullable(this.cidrBlock);
    }

    /**
     * User-defined name that identifies the CIDR block.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output displayName;

    /**
     * @return User-defined name that identifies the CIDR block.
     * 
     */
    public Optional> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    private CidrBlockArgs() {}

    private CidrBlockArgs(CidrBlockArgs $) {
        this.cidrBlock = $.cidrBlock;
        this.displayName = $.displayName;
    }

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

    public static final class Builder {
        private CidrBlockArgs $;

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

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

        /**
         * @param cidrBlock CIDR block that must be specified in CIDR notation.
         * 
         * @return builder
         * 
         */
        public Builder cidrBlock(@Nullable Output cidrBlock) {
            $.cidrBlock = cidrBlock;
            return this;
        }

        /**
         * @param cidrBlock CIDR block that must be specified in CIDR notation.
         * 
         * @return builder
         * 
         */
        public Builder cidrBlock(String cidrBlock) {
            return cidrBlock(Output.of(cidrBlock));
        }

        /**
         * @param displayName User-defined name that identifies the CIDR block.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName User-defined name that identifies the CIDR block.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        public CidrBlockArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy