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

com.pulumi.azurenative.network.outputs.GetFlowLogResult 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.network.outputs;

import com.pulumi.azurenative.network.outputs.FlowLogFormatParametersResponse;
import com.pulumi.azurenative.network.outputs.RetentionPolicyParametersResponse;
import com.pulumi.azurenative.network.outputs.TrafficAnalyticsPropertiesResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetFlowLogResult {
    /**
     * @return Flag to enable/disable flow logging.
     * 
     */
    private @Nullable Boolean enabled;
    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    private String etag;
    /**
     * @return Parameters that define the configuration of traffic analytics.
     * 
     */
    private @Nullable TrafficAnalyticsPropertiesResponse flowAnalyticsConfiguration;
    /**
     * @return Parameters that define the flow log format.
     * 
     */
    private @Nullable FlowLogFormatParametersResponse format;
    /**
     * @return Resource ID.
     * 
     */
    private @Nullable String id;
    /**
     * @return Resource location.
     * 
     */
    private @Nullable String location;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return The provisioning state of the flow log.
     * 
     */
    private String provisioningState;
    /**
     * @return Parameters that define the retention policy for flow log.
     * 
     */
    private @Nullable RetentionPolicyParametersResponse retentionPolicy;
    /**
     * @return ID of the storage account which is used to store the flow log.
     * 
     */
    private String storageId;
    /**
     * @return Resource tags.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Guid of network security group to which flow log will be applied.
     * 
     */
    private String targetResourceGuid;
    /**
     * @return ID of network security group to which flow log will be applied.
     * 
     */
    private String targetResourceId;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetFlowLogResult() {}
    /**
     * @return Flag to enable/disable flow logging.
     * 
     */
    public Optional enabled() {
        return Optional.ofNullable(this.enabled);
    }
    /**
     * @return A unique read-only string that changes whenever the resource is updated.
     * 
     */
    public String etag() {
        return this.etag;
    }
    /**
     * @return Parameters that define the configuration of traffic analytics.
     * 
     */
    public Optional flowAnalyticsConfiguration() {
        return Optional.ofNullable(this.flowAnalyticsConfiguration);
    }
    /**
     * @return Parameters that define the flow log format.
     * 
     */
    public Optional format() {
        return Optional.ofNullable(this.format);
    }
    /**
     * @return Resource ID.
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return Resource location.
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The provisioning state of the flow log.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Parameters that define the retention policy for flow log.
     * 
     */
    public Optional retentionPolicy() {
        return Optional.ofNullable(this.retentionPolicy);
    }
    /**
     * @return ID of the storage account which is used to store the flow log.
     * 
     */
    public String storageId() {
        return this.storageId;
    }
    /**
     * @return Resource tags.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Guid of network security group to which flow log will be applied.
     * 
     */
    public String targetResourceGuid() {
        return this.targetResourceGuid;
    }
    /**
     * @return ID of network security group to which flow log will be applied.
     * 
     */
    public String targetResourceId() {
        return this.targetResourceId;
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetFlowLogResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean enabled;
        private String etag;
        private @Nullable TrafficAnalyticsPropertiesResponse flowAnalyticsConfiguration;
        private @Nullable FlowLogFormatParametersResponse format;
        private @Nullable String id;
        private @Nullable String location;
        private String name;
        private String provisioningState;
        private @Nullable RetentionPolicyParametersResponse retentionPolicy;
        private String storageId;
        private @Nullable Map tags;
        private String targetResourceGuid;
        private String targetResourceId;
        private String type;
        public Builder() {}
        public Builder(GetFlowLogResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.enabled = defaults.enabled;
    	      this.etag = defaults.etag;
    	      this.flowAnalyticsConfiguration = defaults.flowAnalyticsConfiguration;
    	      this.format = defaults.format;
    	      this.id = defaults.id;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.retentionPolicy = defaults.retentionPolicy;
    	      this.storageId = defaults.storageId;
    	      this.tags = defaults.tags;
    	      this.targetResourceGuid = defaults.targetResourceGuid;
    	      this.targetResourceId = defaults.targetResourceId;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder enabled(@Nullable Boolean enabled) {

            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder etag(String etag) {
            if (etag == null) {
              throw new MissingRequiredPropertyException("GetFlowLogResult", "etag");
            }
            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder flowAnalyticsConfiguration(@Nullable TrafficAnalyticsPropertiesResponse flowAnalyticsConfiguration) {

            this.flowAnalyticsConfiguration = flowAnalyticsConfiguration;
            return this;
        }
        @CustomType.Setter
        public Builder format(@Nullable FlowLogFormatParametersResponse format) {

            this.format = format;
            return this;
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {

            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder location(@Nullable String location) {

            this.location = location;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetFlowLogResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetFlowLogResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder retentionPolicy(@Nullable RetentionPolicyParametersResponse retentionPolicy) {

            this.retentionPolicy = retentionPolicy;
            return this;
        }
        @CustomType.Setter
        public Builder storageId(String storageId) {
            if (storageId == null) {
              throw new MissingRequiredPropertyException("GetFlowLogResult", "storageId");
            }
            this.storageId = storageId;
            return this;
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder targetResourceGuid(String targetResourceGuid) {
            if (targetResourceGuid == null) {
              throw new MissingRequiredPropertyException("GetFlowLogResult", "targetResourceGuid");
            }
            this.targetResourceGuid = targetResourceGuid;
            return this;
        }
        @CustomType.Setter
        public Builder targetResourceId(String targetResourceId) {
            if (targetResourceId == null) {
              throw new MissingRequiredPropertyException("GetFlowLogResult", "targetResourceId");
            }
            this.targetResourceId = targetResourceId;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetFlowLogResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetFlowLogResult build() {
            final var _resultValue = new GetFlowLogResult();
            _resultValue.enabled = enabled;
            _resultValue.etag = etag;
            _resultValue.flowAnalyticsConfiguration = flowAnalyticsConfiguration;
            _resultValue.format = format;
            _resultValue.id = id;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.retentionPolicy = retentionPolicy;
            _resultValue.storageId = storageId;
            _resultValue.tags = tags;
            _resultValue.targetResourceGuid = targetResourceGuid;
            _resultValue.targetResourceId = targetResourceId;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy