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

com.pulumi.azurenative.networkfunction.CollectorPolicyArgs Maven / Gradle / Ivy

There is a newer version: 2.78.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.networkfunction;

import com.pulumi.azurenative.networkfunction.inputs.EmissionPoliciesPropertiesFormatArgs;
import com.pulumi.azurenative.networkfunction.inputs.IngestionPolicyPropertiesFormatArgs;
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.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CollectorPolicyArgs Empty = new CollectorPolicyArgs();

    /**
     * Azure Traffic Collector name
     * 
     */
    @Import(name="azureTrafficCollectorName", required=true)
    private Output azureTrafficCollectorName;

    /**
     * @return Azure Traffic Collector name
     * 
     */
    public Output azureTrafficCollectorName() {
        return this.azureTrafficCollectorName;
    }

    /**
     * Collector Policy Name
     * 
     */
    @Import(name="collectorPolicyName")
    private @Nullable Output collectorPolicyName;

    /**
     * @return Collector Policy Name
     * 
     */
    public Optional> collectorPolicyName() {
        return Optional.ofNullable(this.collectorPolicyName);
    }

    /**
     * Emission policies.
     * 
     */
    @Import(name="emissionPolicies")
    private @Nullable Output> emissionPolicies;

    /**
     * @return Emission policies.
     * 
     */
    public Optional>> emissionPolicies() {
        return Optional.ofNullable(this.emissionPolicies);
    }

    /**
     * Ingestion policies.
     * 
     */
    @Import(name="ingestionPolicy")
    private @Nullable Output ingestionPolicy;

    /**
     * @return Ingestion policies.
     * 
     */
    public Optional> ingestionPolicy() {
        return Optional.ofNullable(this.ingestionPolicy);
    }

    /**
     * Resource location.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

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

    /**
     * The name of the resource group.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

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

    private CollectorPolicyArgs() {}

    private CollectorPolicyArgs(CollectorPolicyArgs $) {
        this.azureTrafficCollectorName = $.azureTrafficCollectorName;
        this.collectorPolicyName = $.collectorPolicyName;
        this.emissionPolicies = $.emissionPolicies;
        this.ingestionPolicy = $.ingestionPolicy;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private CollectorPolicyArgs $;

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

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

        /**
         * @param azureTrafficCollectorName Azure Traffic Collector name
         * 
         * @return builder
         * 
         */
        public Builder azureTrafficCollectorName(Output azureTrafficCollectorName) {
            $.azureTrafficCollectorName = azureTrafficCollectorName;
            return this;
        }

        /**
         * @param azureTrafficCollectorName Azure Traffic Collector name
         * 
         * @return builder
         * 
         */
        public Builder azureTrafficCollectorName(String azureTrafficCollectorName) {
            return azureTrafficCollectorName(Output.of(azureTrafficCollectorName));
        }

        /**
         * @param collectorPolicyName Collector Policy Name
         * 
         * @return builder
         * 
         */
        public Builder collectorPolicyName(@Nullable Output collectorPolicyName) {
            $.collectorPolicyName = collectorPolicyName;
            return this;
        }

        /**
         * @param collectorPolicyName Collector Policy Name
         * 
         * @return builder
         * 
         */
        public Builder collectorPolicyName(String collectorPolicyName) {
            return collectorPolicyName(Output.of(collectorPolicyName));
        }

        /**
         * @param emissionPolicies Emission policies.
         * 
         * @return builder
         * 
         */
        public Builder emissionPolicies(@Nullable Output> emissionPolicies) {
            $.emissionPolicies = emissionPolicies;
            return this;
        }

        /**
         * @param emissionPolicies Emission policies.
         * 
         * @return builder
         * 
         */
        public Builder emissionPolicies(List emissionPolicies) {
            return emissionPolicies(Output.of(emissionPolicies));
        }

        /**
         * @param emissionPolicies Emission policies.
         * 
         * @return builder
         * 
         */
        public Builder emissionPolicies(EmissionPoliciesPropertiesFormatArgs... emissionPolicies) {
            return emissionPolicies(List.of(emissionPolicies));
        }

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

        /**
         * @param ingestionPolicy Ingestion policies.
         * 
         * @return builder
         * 
         */
        public Builder ingestionPolicy(IngestionPolicyPropertiesFormatArgs ingestionPolicy) {
            return ingestionPolicy(Output.of(ingestionPolicy));
        }

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

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

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public CollectorPolicyArgs build() {
            if ($.azureTrafficCollectorName == null) {
                throw new MissingRequiredPropertyException("CollectorPolicyArgs", "azureTrafficCollectorName");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("CollectorPolicyArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy