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

com.pulumi.alicloud.vpc.FlowLogArgs Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.vpc;

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 FlowLogArgs extends com.pulumi.resources.ResourceArgs {

    public static final FlowLogArgs Empty = new FlowLogArgs();

    /**
     * Data aggregation interval.
     * 
     */
    @Import(name="aggregationInterval")
    private @Nullable Output aggregationInterval;

    /**
     * @return Data aggregation interval.
     * 
     */
    public Optional> aggregationInterval() {
        return Optional.ofNullable(this.aggregationInterval);
    }

    /**
     * The Description of the VPC Flow Log.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return The Description of the VPC Flow Log.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * The Name of the VPC Flow Log.
     * 
     */
    @Import(name="flowLogName")
    private @Nullable Output flowLogName;

    /**
     * @return The Name of the VPC Flow Log.
     * 
     */
    public Optional> flowLogName() {
        return Optional.ofNullable(this.flowLogName);
    }

    /**
     * The name of the logstore.
     * 
     */
    @Import(name="logStoreName", required=true)
    private Output logStoreName;

    /**
     * @return The name of the logstore.
     * 
     */
    public Output logStoreName() {
        return this.logStoreName;
    }

    /**
     * The name of the project.
     * 
     */
    @Import(name="projectName", required=true)
    private Output projectName;

    /**
     * @return The name of the project.
     * 
     */
    public Output projectName() {
        return this.projectName;
    }

    /**
     * The ID of the resource group.
     * 
     */
    @Import(name="resourceGroupId")
    private @Nullable Output resourceGroupId;

    /**
     * @return The ID of the resource group.
     * 
     */
    public Optional> resourceGroupId() {
        return Optional.ofNullable(this.resourceGroupId);
    }

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

    /**
     * @return The ID of the resource.
     * 
     */
    public Output resourceId() {
        return this.resourceId;
    }

    /**
     * The resource type of the traffic captured by the flow log:-**NetworkInterface**: ENI.-**VSwitch**: All ENIs in the VSwitch.-**VPC**: All ENIs in the VPC.
     * 
     */
    @Import(name="resourceType", required=true)
    private Output resourceType;

    /**
     * @return The resource type of the traffic captured by the flow log:-**NetworkInterface**: ENI.-**VSwitch**: All ENIs in the VSwitch.-**VPC**: All ENIs in the VPC.
     * 
     */
    public Output resourceType() {
        return this.resourceType;
    }

    /**
     * The status of the VPC Flow Log. Valid values: **Active** and **Inactive**.
     * 
     */
    @Import(name="status")
    private @Nullable Output status;

    /**
     * @return The status of the VPC Flow Log. Valid values: **Active** and **Inactive**.
     * 
     */
    public Optional> status() {
        return Optional.ofNullable(this.status);
    }

    /**
     * The tag of the current instance resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return The tag of the current instance resource.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    /**
     * The collected flow path. Value:**all**: indicates full acquisition.**internetGateway**: indicates public network traffic collection.
     * 
     */
    @Import(name="trafficPaths")
    private @Nullable Output> trafficPaths;

    /**
     * @return The collected flow path. Value:**all**: indicates full acquisition.**internetGateway**: indicates public network traffic collection.
     * 
     */
    public Optional>> trafficPaths() {
        return Optional.ofNullable(this.trafficPaths);
    }

    /**
     * The type of traffic collected. Valid values:**All**: All traffic.**Allow**: Access control allowedtraffic.**Drop**: Access control denied traffic.
     * 
     */
    @Import(name="trafficType", required=true)
    private Output trafficType;

    /**
     * @return The type of traffic collected. Valid values:**All**: All traffic.**Allow**: Access control allowedtraffic.**Drop**: Access control denied traffic.
     * 
     */
    public Output trafficType() {
        return this.trafficType;
    }

    private FlowLogArgs() {}

    private FlowLogArgs(FlowLogArgs $) {
        this.aggregationInterval = $.aggregationInterval;
        this.description = $.description;
        this.flowLogName = $.flowLogName;
        this.logStoreName = $.logStoreName;
        this.projectName = $.projectName;
        this.resourceGroupId = $.resourceGroupId;
        this.resourceId = $.resourceId;
        this.resourceType = $.resourceType;
        this.status = $.status;
        this.tags = $.tags;
        this.trafficPaths = $.trafficPaths;
        this.trafficType = $.trafficType;
    }

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

    public static final class Builder {
        private FlowLogArgs $;

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

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

        /**
         * @param aggregationInterval Data aggregation interval.
         * 
         * @return builder
         * 
         */
        public Builder aggregationInterval(@Nullable Output aggregationInterval) {
            $.aggregationInterval = aggregationInterval;
            return this;
        }

        /**
         * @param aggregationInterval Data aggregation interval.
         * 
         * @return builder
         * 
         */
        public Builder aggregationInterval(String aggregationInterval) {
            return aggregationInterval(Output.of(aggregationInterval));
        }

        /**
         * @param description The Description of the VPC Flow Log.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description The Description of the VPC Flow Log.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param flowLogName The Name of the VPC Flow Log.
         * 
         * @return builder
         * 
         */
        public Builder flowLogName(@Nullable Output flowLogName) {
            $.flowLogName = flowLogName;
            return this;
        }

        /**
         * @param flowLogName The Name of the VPC Flow Log.
         * 
         * @return builder
         * 
         */
        public Builder flowLogName(String flowLogName) {
            return flowLogName(Output.of(flowLogName));
        }

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

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

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

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

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

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

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

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

        /**
         * @param resourceType The resource type of the traffic captured by the flow log:-**NetworkInterface**: ENI.-**VSwitch**: All ENIs in the VSwitch.-**VPC**: All ENIs in the VPC.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(Output resourceType) {
            $.resourceType = resourceType;
            return this;
        }

        /**
         * @param resourceType The resource type of the traffic captured by the flow log:-**NetworkInterface**: ENI.-**VSwitch**: All ENIs in the VSwitch.-**VPC**: All ENIs in the VPC.
         * 
         * @return builder
         * 
         */
        public Builder resourceType(String resourceType) {
            return resourceType(Output.of(resourceType));
        }

        /**
         * @param status The status of the VPC Flow Log. Valid values: **Active** and **Inactive**.
         * 
         * @return builder
         * 
         */
        public Builder status(@Nullable Output status) {
            $.status = status;
            return this;
        }

        /**
         * @param status The status of the VPC Flow Log. Valid values: **Active** and **Inactive**.
         * 
         * @return builder
         * 
         */
        public Builder status(String status) {
            return status(Output.of(status));
        }

        /**
         * @param tags The tag of the current instance resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags The tag of the current instance resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        /**
         * @param trafficPaths The collected flow path. Value:**all**: indicates full acquisition.**internetGateway**: indicates public network traffic collection.
         * 
         * @return builder
         * 
         */
        public Builder trafficPaths(@Nullable Output> trafficPaths) {
            $.trafficPaths = trafficPaths;
            return this;
        }

        /**
         * @param trafficPaths The collected flow path. Value:**all**: indicates full acquisition.**internetGateway**: indicates public network traffic collection.
         * 
         * @return builder
         * 
         */
        public Builder trafficPaths(List trafficPaths) {
            return trafficPaths(Output.of(trafficPaths));
        }

        /**
         * @param trafficPaths The collected flow path. Value:**all**: indicates full acquisition.**internetGateway**: indicates public network traffic collection.
         * 
         * @return builder
         * 
         */
        public Builder trafficPaths(String... trafficPaths) {
            return trafficPaths(List.of(trafficPaths));
        }

        /**
         * @param trafficType The type of traffic collected. Valid values:**All**: All traffic.**Allow**: Access control allowedtraffic.**Drop**: Access control denied traffic.
         * 
         * @return builder
         * 
         */
        public Builder trafficType(Output trafficType) {
            $.trafficType = trafficType;
            return this;
        }

        /**
         * @param trafficType The type of traffic collected. Valid values:**All**: All traffic.**Allow**: Access control allowedtraffic.**Drop**: Access control denied traffic.
         * 
         * @return builder
         * 
         */
        public Builder trafficType(String trafficType) {
            return trafficType(Output.of(trafficType));
        }

        public FlowLogArgs build() {
            if ($.logStoreName == null) {
                throw new MissingRequiredPropertyException("FlowLogArgs", "logStoreName");
            }
            if ($.projectName == null) {
                throw new MissingRequiredPropertyException("FlowLogArgs", "projectName");
            }
            if ($.resourceId == null) {
                throw new MissingRequiredPropertyException("FlowLogArgs", "resourceId");
            }
            if ($.resourceType == null) {
                throw new MissingRequiredPropertyException("FlowLogArgs", "resourceType");
            }
            if ($.trafficType == null) {
                throw new MissingRequiredPropertyException("FlowLogArgs", "trafficType");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy