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

com.pulumi.alicloud.vpc.inputs.FlowLogState 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.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Object;
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 FlowLogState extends com.pulumi.resources.ResourceArgs {

    public static final FlowLogState Empty = new FlowLogState();

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

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

    /**
     * Business status.
     * 
     */
    @Import(name="businessStatus")
    private @Nullable Output businessStatus;

    /**
     * @return Business status.
     * 
     */
    public Optional> businessStatus() {
        return Optional.ofNullable(this.businessStatus);
    }

    /**
     * Creation time.
     * 
     */
    @Import(name="createTime")
    private @Nullable Output createTime;

    /**
     * @return Creation time.
     * 
     */
    public Optional> createTime() {
        return Optional.ofNullable(this.createTime);
    }

    /**
     * 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 flow log ID.
     * 
     */
    @Import(name="flowLogId")
    private @Nullable Output flowLogId;

    /**
     * @return The flow log ID.
     * 
     */
    public Optional> flowLogId() {
        return Optional.ofNullable(this.flowLogId);
    }

    /**
     * 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")
    private @Nullable Output logStoreName;

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

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

    /**
     * @return The name of the project.
     * 
     */
    public Optional> projectName() {
        return Optional.ofNullable(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")
    private @Nullable Output resourceId;

    /**
     * @return The ID of the resource.
     * 
     */
    public Optional> resourceId() {
        return Optional.ofNullable(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")
    private @Nullable 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 Optional> resourceType() {
        return Optional.ofNullable(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")
    private @Nullable Output trafficType;

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

    private FlowLogState() {}

    private FlowLogState(FlowLogState $) {
        this.aggregationInterval = $.aggregationInterval;
        this.businessStatus = $.businessStatus;
        this.createTime = $.createTime;
        this.description = $.description;
        this.flowLogId = $.flowLogId;
        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(FlowLogState defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private FlowLogState $;

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

        public Builder(FlowLogState defaults) {
            $ = new FlowLogState(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 businessStatus Business status.
         * 
         * @return builder
         * 
         */
        public Builder businessStatus(@Nullable Output businessStatus) {
            $.businessStatus = businessStatus;
            return this;
        }

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

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

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

        /**
         * @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 flowLogId The flow log ID.
         * 
         * @return builder
         * 
         */
        public Builder flowLogId(@Nullable Output flowLogId) {
            $.flowLogId = flowLogId;
            return this;
        }

        /**
         * @param flowLogId The flow log ID.
         * 
         * @return builder
         * 
         */
        public Builder flowLogId(String flowLogId) {
            return flowLogId(Output.of(flowLogId));
        }

        /**
         * @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(@Nullable 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(@Nullable 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(@Nullable 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(@Nullable 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(@Nullable 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 FlowLogState build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy