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

com.ovhcloud.pulumi.ovh.CloudProject.inputs.KubeCustomizationKubeProxyIptablesArgs Maven / Gradle / Ivy

There is a newer version: 1.1.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.ovhcloud.pulumi.ovh.CloudProject.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;


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

    public static final KubeCustomizationKubeProxyIptablesArgs Empty = new KubeCustomizationKubeProxyIptablesArgs();

    /**
     * Period that iptables rules are refreshed, in [RFC3339](https://www.rfc-editor.org/rfc/rfc3339) duration format (e.g. `PT60S`). Must be greater than 0.
     * 
     */
    @Import(name="minSyncPeriod")
    private @Nullable Output minSyncPeriod;

    /**
     * @return Period that iptables rules are refreshed, in [RFC3339](https://www.rfc-editor.org/rfc/rfc3339) duration format (e.g. `PT60S`). Must be greater than 0.
     * 
     */
    public Optional> minSyncPeriod() {
        return Optional.ofNullable(this.minSyncPeriod);
    }

    /**
     * Minimum period that iptables rules are refreshed, in [RFC3339](https://www.rfc-editor.org/rfc/rfc3339) duration format (e.g. `PT60S`).
     * 
     */
    @Import(name="syncPeriod")
    private @Nullable Output syncPeriod;

    /**
     * @return Minimum period that iptables rules are refreshed, in [RFC3339](https://www.rfc-editor.org/rfc/rfc3339) duration format (e.g. `PT60S`).
     * 
     */
    public Optional> syncPeriod() {
        return Optional.ofNullable(this.syncPeriod);
    }

    private KubeCustomizationKubeProxyIptablesArgs() {}

    private KubeCustomizationKubeProxyIptablesArgs(KubeCustomizationKubeProxyIptablesArgs $) {
        this.minSyncPeriod = $.minSyncPeriod;
        this.syncPeriod = $.syncPeriod;
    }

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

    public static final class Builder {
        private KubeCustomizationKubeProxyIptablesArgs $;

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

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

        /**
         * @param minSyncPeriod Period that iptables rules are refreshed, in [RFC3339](https://www.rfc-editor.org/rfc/rfc3339) duration format (e.g. `PT60S`). Must be greater than 0.
         * 
         * @return builder
         * 
         */
        public Builder minSyncPeriod(@Nullable Output minSyncPeriod) {
            $.minSyncPeriod = minSyncPeriod;
            return this;
        }

        /**
         * @param minSyncPeriod Period that iptables rules are refreshed, in [RFC3339](https://www.rfc-editor.org/rfc/rfc3339) duration format (e.g. `PT60S`). Must be greater than 0.
         * 
         * @return builder
         * 
         */
        public Builder minSyncPeriod(String minSyncPeriod) {
            return minSyncPeriod(Output.of(minSyncPeriod));
        }

        /**
         * @param syncPeriod Minimum period that iptables rules are refreshed, in [RFC3339](https://www.rfc-editor.org/rfc/rfc3339) duration format (e.g. `PT60S`).
         * 
         * @return builder
         * 
         */
        public Builder syncPeriod(@Nullable Output syncPeriod) {
            $.syncPeriod = syncPeriod;
            return this;
        }

        /**
         * @param syncPeriod Minimum period that iptables rules are refreshed, in [RFC3339](https://www.rfc-editor.org/rfc/rfc3339) duration format (e.g. `PT60S`).
         * 
         * @return builder
         * 
         */
        public Builder syncPeriod(String syncPeriod) {
            return syncPeriod(Output.of(syncPeriod));
        }

        public KubeCustomizationKubeProxyIptablesArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy