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

com.pulumi.cloudflare.inputs.ByoIpPrefixState 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.cloudflare.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 ByoIpPrefixState extends com.pulumi.resources.ResourceArgs {

    public static final ByoIpPrefixState Empty = new ByoIpPrefixState();

    /**
     * The account identifier to target for the resource.
     * 
     */
    @Import(name="accountId")
    private @Nullable Output accountId;

    /**
     * @return The account identifier to target for the resource.
     * 
     */
    public Optional> accountId() {
        return Optional.ofNullable(this.accountId);
    }

    /**
     * Whether or not the prefix shall be announced. A prefix can be activated or deactivated once every 15 minutes (attempting more regular updates will trigger rate limiting). Available values: `on`, `off`.
     * 
     */
    @Import(name="advertisement")
    private @Nullable Output advertisement;

    /**
     * @return Whether or not the prefix shall be announced. A prefix can be activated or deactivated once every 15 minutes (attempting more regular updates will trigger rate limiting). Available values: `on`, `off`.
     * 
     */
    public Optional> advertisement() {
        return Optional.ofNullable(this.advertisement);
    }

    /**
     * Description of the BYO IP prefix.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of the BYO IP prefix.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The assigned Bring-Your-Own-IP prefix ID. **Modifying this attribute will force creation of a new resource.**
     * 
     */
    @Import(name="prefixId")
    private @Nullable Output prefixId;

    /**
     * @return The assigned Bring-Your-Own-IP prefix ID. **Modifying this attribute will force creation of a new resource.**
     * 
     */
    public Optional> prefixId() {
        return Optional.ofNullable(this.prefixId);
    }

    private ByoIpPrefixState() {}

    private ByoIpPrefixState(ByoIpPrefixState $) {
        this.accountId = $.accountId;
        this.advertisement = $.advertisement;
        this.description = $.description;
        this.prefixId = $.prefixId;
    }

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

    public static final class Builder {
        private ByoIpPrefixState $;

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

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

        /**
         * @param accountId The account identifier to target for the resource.
         * 
         * @return builder
         * 
         */
        public Builder accountId(@Nullable Output accountId) {
            $.accountId = accountId;
            return this;
        }

        /**
         * @param accountId The account identifier to target for the resource.
         * 
         * @return builder
         * 
         */
        public Builder accountId(String accountId) {
            return accountId(Output.of(accountId));
        }

        /**
         * @param advertisement Whether or not the prefix shall be announced. A prefix can be activated or deactivated once every 15 minutes (attempting more regular updates will trigger rate limiting). Available values: `on`, `off`.
         * 
         * @return builder
         * 
         */
        public Builder advertisement(@Nullable Output advertisement) {
            $.advertisement = advertisement;
            return this;
        }

        /**
         * @param advertisement Whether or not the prefix shall be announced. A prefix can be activated or deactivated once every 15 minutes (attempting more regular updates will trigger rate limiting). Available values: `on`, `off`.
         * 
         * @return builder
         * 
         */
        public Builder advertisement(String advertisement) {
            return advertisement(Output.of(advertisement));
        }

        /**
         * @param description Description of the BYO IP prefix.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the BYO IP prefix.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param prefixId The assigned Bring-Your-Own-IP prefix ID. **Modifying this attribute will force creation of a new resource.**
         * 
         * @return builder
         * 
         */
        public Builder prefixId(@Nullable Output prefixId) {
            $.prefixId = prefixId;
            return this;
        }

        /**
         * @param prefixId The assigned Bring-Your-Own-IP prefix ID. **Modifying this attribute will force creation of a new resource.**
         * 
         * @return builder
         * 
         */
        public Builder prefixId(String prefixId) {
            return prefixId(Output.of(prefixId));
        }

        public ByoIpPrefixState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy