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

com.pulumi.azurenative.redhatopenshift.inputs.NetworkProfileArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.azurenative.redhatopenshift.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;


/**
 * NetworkProfile represents a network profile.
 * 
 */
public final class NetworkProfileArgs extends com.pulumi.resources.ResourceArgs {

    public static final NetworkProfileArgs Empty = new NetworkProfileArgs();

    /**
     * The CIDR used for OpenShift/Kubernetes Pods.
     * 
     */
    @Import(name="podCidr")
    private @Nullable Output podCidr;

    /**
     * @return The CIDR used for OpenShift/Kubernetes Pods.
     * 
     */
    public Optional> podCidr() {
        return Optional.ofNullable(this.podCidr);
    }

    /**
     * The CIDR used for OpenShift/Kubernetes Services.
     * 
     */
    @Import(name="serviceCidr")
    private @Nullable Output serviceCidr;

    /**
     * @return The CIDR used for OpenShift/Kubernetes Services.
     * 
     */
    public Optional> serviceCidr() {
        return Optional.ofNullable(this.serviceCidr);
    }

    private NetworkProfileArgs() {}

    private NetworkProfileArgs(NetworkProfileArgs $) {
        this.podCidr = $.podCidr;
        this.serviceCidr = $.serviceCidr;
    }

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

    public static final class Builder {
        private NetworkProfileArgs $;

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

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

        /**
         * @param podCidr The CIDR used for OpenShift/Kubernetes Pods.
         * 
         * @return builder
         * 
         */
        public Builder podCidr(@Nullable Output podCidr) {
            $.podCidr = podCidr;
            return this;
        }

        /**
         * @param podCidr The CIDR used for OpenShift/Kubernetes Pods.
         * 
         * @return builder
         * 
         */
        public Builder podCidr(String podCidr) {
            return podCidr(Output.of(podCidr));
        }

        /**
         * @param serviceCidr The CIDR used for OpenShift/Kubernetes Services.
         * 
         * @return builder
         * 
         */
        public Builder serviceCidr(@Nullable Output serviceCidr) {
            $.serviceCidr = serviceCidr;
            return this;
        }

        /**
         * @param serviceCidr The CIDR used for OpenShift/Kubernetes Services.
         * 
         * @return builder
         * 
         */
        public Builder serviceCidr(String serviceCidr) {
            return serviceCidr(Output.of(serviceCidr));
        }

        public NetworkProfileArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy