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

com.ovhcloud.pulumi.ovh.Ip.inputs.IpServiceState 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.Ip.inputs;

import com.ovhcloud.pulumi.ovh.Ip.inputs.IpServiceOrderArgs;
import com.ovhcloud.pulumi.ovh.Ip.inputs.IpServicePlanArgs;
import com.ovhcloud.pulumi.ovh.Ip.inputs.IpServicePlanOptionArgs;
import com.ovhcloud.pulumi.ovh.Ip.inputs.IpServiceRoutedToArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final IpServiceState Empty = new IpServiceState();

    /**
     * can be terminated
     * 
     */
    @Import(name="canBeTerminated")
    private @Nullable Output canBeTerminated;

    /**
     * @return can be terminated
     * 
     */
    public Optional> canBeTerminated() {
        return Optional.ofNullable(this.canBeTerminated);
    }

    /**
     * country
     * 
     */
    @Import(name="country")
    private @Nullable Output country;

    /**
     * @return country
     * 
     */
    public Optional> country() {
        return Optional.ofNullable(this.country);
    }

    /**
     * Custom description on your ip.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Custom description on your ip.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * ip block
     * 
     */
    @Import(name="ip")
    private @Nullable Output ip;

    /**
     * @return ip block
     * 
     */
    public Optional> ip() {
        return Optional.ofNullable(this.ip);
    }

    /**
     * Details about an Order
     * 
     */
    @Import(name="orders")
    private @Nullable Output> orders;

    /**
     * @return Details about an Order
     * 
     */
    public Optional>> orders() {
        return Optional.ofNullable(this.orders);
    }

    /**
     * IP block organisation Id
     * 
     */
    @Import(name="organisationId")
    private @Nullable Output organisationId;

    /**
     * @return IP block organisation Id
     * 
     */
    public Optional> organisationId() {
        return Optional.ofNullable(this.organisationId);
    }

    /**
     * OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at [/1.0/me.json under `models.nichandle.OvhSubsidiaryEnum`](https://eu.api.ovh.com/1.0/me.json)
     * 
     */
    @Import(name="ovhSubsidiary")
    private @Nullable Output ovhSubsidiary;

    /**
     * @return OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at [/1.0/me.json under `models.nichandle.OvhSubsidiaryEnum`](https://eu.api.ovh.com/1.0/me.json)
     * 
     */
    public Optional> ovhSubsidiary() {
        return Optional.ofNullable(this.ovhSubsidiary);
    }

    /**
     * Ovh payment mode
     * 
     * @deprecated
     * This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.
     * 
     */
    @Deprecated /* This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used. */
    @Import(name="paymentMean")
    private @Nullable Output paymentMean;

    /**
     * @return Ovh payment mode
     * 
     * @deprecated
     * This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.
     * 
     */
    @Deprecated /* This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used. */
    public Optional> paymentMean() {
        return Optional.ofNullable(this.paymentMean);
    }

    /**
     * Product Plan to order
     * 
     */
    @Import(name="plan")
    private @Nullable Output plan;

    /**
     * @return Product Plan to order
     * 
     */
    public Optional> plan() {
        return Optional.ofNullable(this.plan);
    }

    /**
     * Product Plan to order
     * 
     */
    @Import(name="planOptions")
    private @Nullable Output> planOptions;

    /**
     * @return Product Plan to order
     * 
     */
    public Optional>> planOptions() {
        return Optional.ofNullable(this.planOptions);
    }

    /**
     * Routage information
     * 
     */
    @Import(name="routedTos")
    private @Nullable Output> routedTos;

    /**
     * @return Routage information
     * 
     */
    public Optional>> routedTos() {
        return Optional.ofNullable(this.routedTos);
    }

    /**
     * service name
     * 
     */
    @Import(name="serviceName")
    private @Nullable Output serviceName;

    /**
     * @return service name
     * 
     */
    public Optional> serviceName() {
        return Optional.ofNullable(this.serviceName);
    }

    /**
     * Possible values for ip type
     * 
     */
    @Import(name="type")
    private @Nullable Output type;

    /**
     * @return Possible values for ip type
     * 
     */
    public Optional> type() {
        return Optional.ofNullable(this.type);
    }

    private IpServiceState() {}

    private IpServiceState(IpServiceState $) {
        this.canBeTerminated = $.canBeTerminated;
        this.country = $.country;
        this.description = $.description;
        this.ip = $.ip;
        this.orders = $.orders;
        this.organisationId = $.organisationId;
        this.ovhSubsidiary = $.ovhSubsidiary;
        this.paymentMean = $.paymentMean;
        this.plan = $.plan;
        this.planOptions = $.planOptions;
        this.routedTos = $.routedTos;
        this.serviceName = $.serviceName;
        this.type = $.type;
    }

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

    public static final class Builder {
        private IpServiceState $;

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

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

        /**
         * @param canBeTerminated can be terminated
         * 
         * @return builder
         * 
         */
        public Builder canBeTerminated(@Nullable Output canBeTerminated) {
            $.canBeTerminated = canBeTerminated;
            return this;
        }

        /**
         * @param canBeTerminated can be terminated
         * 
         * @return builder
         * 
         */
        public Builder canBeTerminated(Boolean canBeTerminated) {
            return canBeTerminated(Output.of(canBeTerminated));
        }

        /**
         * @param country country
         * 
         * @return builder
         * 
         */
        public Builder country(@Nullable Output country) {
            $.country = country;
            return this;
        }

        /**
         * @param country country
         * 
         * @return builder
         * 
         */
        public Builder country(String country) {
            return country(Output.of(country));
        }

        /**
         * @param description Custom description on your ip.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Custom description on your ip.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param ip ip block
         * 
         * @return builder
         * 
         */
        public Builder ip(@Nullable Output ip) {
            $.ip = ip;
            return this;
        }

        /**
         * @param ip ip block
         * 
         * @return builder
         * 
         */
        public Builder ip(String ip) {
            return ip(Output.of(ip));
        }

        /**
         * @param orders Details about an Order
         * 
         * @return builder
         * 
         */
        public Builder orders(@Nullable Output> orders) {
            $.orders = orders;
            return this;
        }

        /**
         * @param orders Details about an Order
         * 
         * @return builder
         * 
         */
        public Builder orders(List orders) {
            return orders(Output.of(orders));
        }

        /**
         * @param orders Details about an Order
         * 
         * @return builder
         * 
         */
        public Builder orders(IpServiceOrderArgs... orders) {
            return orders(List.of(orders));
        }

        /**
         * @param organisationId IP block organisation Id
         * 
         * @return builder
         * 
         */
        public Builder organisationId(@Nullable Output organisationId) {
            $.organisationId = organisationId;
            return this;
        }

        /**
         * @param organisationId IP block organisation Id
         * 
         * @return builder
         * 
         */
        public Builder organisationId(String organisationId) {
            return organisationId(Output.of(organisationId));
        }

        /**
         * @param ovhSubsidiary OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at [/1.0/me.json under `models.nichandle.OvhSubsidiaryEnum`](https://eu.api.ovh.com/1.0/me.json)
         * 
         * @return builder
         * 
         */
        public Builder ovhSubsidiary(@Nullable Output ovhSubsidiary) {
            $.ovhSubsidiary = ovhSubsidiary;
            return this;
        }

        /**
         * @param ovhSubsidiary OVHcloud Subsidiary. Country of OVHcloud legal entity you'll be billed by. List of supported subsidiaries available on API at [/1.0/me.json under `models.nichandle.OvhSubsidiaryEnum`](https://eu.api.ovh.com/1.0/me.json)
         * 
         * @return builder
         * 
         */
        public Builder ovhSubsidiary(String ovhSubsidiary) {
            return ovhSubsidiary(Output.of(ovhSubsidiary));
        }

        /**
         * @param paymentMean Ovh payment mode
         * 
         * @return builder
         * 
         * @deprecated
         * This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.
         * 
         */
        @Deprecated /* This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used. */
        public Builder paymentMean(@Nullable Output paymentMean) {
            $.paymentMean = paymentMean;
            return this;
        }

        /**
         * @param paymentMean Ovh payment mode
         * 
         * @return builder
         * 
         * @deprecated
         * This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used.
         * 
         */
        @Deprecated /* This field is not anymore used since the API has been deprecated in favor of /payment/mean. Now, the default payment mean is used. */
        public Builder paymentMean(String paymentMean) {
            return paymentMean(Output.of(paymentMean));
        }

        /**
         * @param plan Product Plan to order
         * 
         * @return builder
         * 
         */
        public Builder plan(@Nullable Output plan) {
            $.plan = plan;
            return this;
        }

        /**
         * @param plan Product Plan to order
         * 
         * @return builder
         * 
         */
        public Builder plan(IpServicePlanArgs plan) {
            return plan(Output.of(plan));
        }

        /**
         * @param planOptions Product Plan to order
         * 
         * @return builder
         * 
         */
        public Builder planOptions(@Nullable Output> planOptions) {
            $.planOptions = planOptions;
            return this;
        }

        /**
         * @param planOptions Product Plan to order
         * 
         * @return builder
         * 
         */
        public Builder planOptions(List planOptions) {
            return planOptions(Output.of(planOptions));
        }

        /**
         * @param planOptions Product Plan to order
         * 
         * @return builder
         * 
         */
        public Builder planOptions(IpServicePlanOptionArgs... planOptions) {
            return planOptions(List.of(planOptions));
        }

        /**
         * @param routedTos Routage information
         * 
         * @return builder
         * 
         */
        public Builder routedTos(@Nullable Output> routedTos) {
            $.routedTos = routedTos;
            return this;
        }

        /**
         * @param routedTos Routage information
         * 
         * @return builder
         * 
         */
        public Builder routedTos(List routedTos) {
            return routedTos(Output.of(routedTos));
        }

        /**
         * @param routedTos Routage information
         * 
         * @return builder
         * 
         */
        public Builder routedTos(IpServiceRoutedToArgs... routedTos) {
            return routedTos(List.of(routedTos));
        }

        /**
         * @param serviceName service name
         * 
         * @return builder
         * 
         */
        public Builder serviceName(@Nullable Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName service name
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param type Possible values for ip type
         * 
         * @return builder
         * 
         */
        public Builder type(@Nullable Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type Possible values for ip type
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public IpServiceState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy