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

com.pulumi.azurenative.cdn.inputs.EndpointPropertiesUpdateParametersDeliveryPolicyArgs Maven / Gradle / Ivy

There is a newer version: 2.72.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.cdn.inputs;

import com.pulumi.azurenative.cdn.inputs.DeliveryRuleArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * A policy that specifies the delivery rules to be used for an endpoint.
 * 
 */
public final class EndpointPropertiesUpdateParametersDeliveryPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final EndpointPropertiesUpdateParametersDeliveryPolicyArgs Empty = new EndpointPropertiesUpdateParametersDeliveryPolicyArgs();

    /**
     * User-friendly description of the policy.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return User-friendly description of the policy.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * A list of the delivery rules.
     * 
     */
    @Import(name="rules", required=true)
    private Output> rules;

    /**
     * @return A list of the delivery rules.
     * 
     */
    public Output> rules() {
        return this.rules;
    }

    private EndpointPropertiesUpdateParametersDeliveryPolicyArgs() {}

    private EndpointPropertiesUpdateParametersDeliveryPolicyArgs(EndpointPropertiesUpdateParametersDeliveryPolicyArgs $) {
        this.description = $.description;
        this.rules = $.rules;
    }

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

    public static final class Builder {
        private EndpointPropertiesUpdateParametersDeliveryPolicyArgs $;

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

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

        /**
         * @param description User-friendly description of the policy.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description User-friendly description of the policy.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param rules A list of the delivery rules.
         * 
         * @return builder
         * 
         */
        public Builder rules(Output> rules) {
            $.rules = rules;
            return this;
        }

        /**
         * @param rules A list of the delivery rules.
         * 
         * @return builder
         * 
         */
        public Builder rules(List rules) {
            return rules(Output.of(rules));
        }

        /**
         * @param rules A list of the delivery rules.
         * 
         * @return builder
         * 
         */
        public Builder rules(DeliveryRuleArgs... rules) {
            return rules(List.of(rules));
        }

        public EndpointPropertiesUpdateParametersDeliveryPolicyArgs build() {
            if ($.rules == null) {
                throw new MissingRequiredPropertyException("EndpointPropertiesUpdateParametersDeliveryPolicyArgs", "rules");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy