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

com.pulumi.azurenative.security.outputs.GetAutomationResult Maven / Gradle / Ivy

There is a newer version: 2.82.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.security.outputs;

import com.pulumi.azurenative.security.outputs.AutomationActionEventHubResponse;
import com.pulumi.azurenative.security.outputs.AutomationActionLogicAppResponse;
import com.pulumi.azurenative.security.outputs.AutomationActionWorkspaceResponse;
import com.pulumi.azurenative.security.outputs.AutomationScopeResponse;
import com.pulumi.azurenative.security.outputs.AutomationSourceResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
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;

@CustomType
public final class GetAutomationResult {
    /**
     * @return A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true.
     * 
     */
    private @Nullable List actions;
    /**
     * @return The security automation description.
     * 
     */
    private @Nullable String description;
    /**
     * @return Entity tag is used for comparing two or more entities from the same requested resource.
     * 
     */
    private @Nullable String etag;
    /**
     * @return Resource Id
     * 
     */
    private String id;
    /**
     * @return Indicates whether the security automation is enabled.
     * 
     */
    private @Nullable Boolean isEnabled;
    /**
     * @return Kind of the resource
     * 
     */
    private @Nullable String kind;
    /**
     * @return Location where the resource is stored
     * 
     */
    private @Nullable String location;
    /**
     * @return Resource name
     * 
     */
    private String name;
    /**
     * @return A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes.
     * 
     */
    private @Nullable List scopes;
    /**
     * @return A collection of the source event types which evaluate the security automation set of rules.
     * 
     */
    private @Nullable List sources;
    /**
     * @return A list of key value pairs that describe the resource.
     * 
     */
    private @Nullable Map tags;
    /**
     * @return Resource type
     * 
     */
    private String type;

    private GetAutomationResult() {}
    /**
     * @return A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true.
     * 
     */
    public List actions() {
        return this.actions == null ? List.of() : this.actions;
    }
    /**
     * @return The security automation description.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Entity tag is used for comparing two or more entities from the same requested resource.
     * 
     */
    public Optional etag() {
        return Optional.ofNullable(this.etag);
    }
    /**
     * @return Resource Id
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Indicates whether the security automation is enabled.
     * 
     */
    public Optional isEnabled() {
        return Optional.ofNullable(this.isEnabled);
    }
    /**
     * @return Kind of the resource
     * 
     */
    public Optional kind() {
        return Optional.ofNullable(this.kind);
    }
    /**
     * @return Location where the resource is stored
     * 
     */
    public Optional location() {
        return Optional.ofNullable(this.location);
    }
    /**
     * @return Resource name
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes.
     * 
     */
    public List scopes() {
        return this.scopes == null ? List.of() : this.scopes;
    }
    /**
     * @return A collection of the source event types which evaluate the security automation set of rules.
     * 
     */
    public List sources() {
        return this.sources == null ? List.of() : this.sources;
    }
    /**
     * @return A list of key value pairs that describe the resource.
     * 
     */
    public Map tags() {
        return this.tags == null ? Map.of() : this.tags;
    }
    /**
     * @return Resource type
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetAutomationResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List actions;
        private @Nullable String description;
        private @Nullable String etag;
        private String id;
        private @Nullable Boolean isEnabled;
        private @Nullable String kind;
        private @Nullable String location;
        private String name;
        private @Nullable List scopes;
        private @Nullable List sources;
        private @Nullable Map tags;
        private String type;
        public Builder() {}
        public Builder(GetAutomationResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.actions = defaults.actions;
    	      this.description = defaults.description;
    	      this.etag = defaults.etag;
    	      this.id = defaults.id;
    	      this.isEnabled = defaults.isEnabled;
    	      this.kind = defaults.kind;
    	      this.location = defaults.location;
    	      this.name = defaults.name;
    	      this.scopes = defaults.scopes;
    	      this.sources = defaults.sources;
    	      this.tags = defaults.tags;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder actions(@Nullable List actions) {

            this.actions = actions;
            return this;
        }
        public Builder actions(Object... actions) {
            return actions(List.of(actions));
        }
        @CustomType.Setter
        public Builder description(@Nullable String description) {

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

            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetAutomationResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder isEnabled(@Nullable Boolean isEnabled) {

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

            this.kind = kind;
            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("GetAutomationResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder scopes(@Nullable List scopes) {

            this.scopes = scopes;
            return this;
        }
        public Builder scopes(AutomationScopeResponse... scopes) {
            return scopes(List.of(scopes));
        }
        @CustomType.Setter
        public Builder sources(@Nullable List sources) {

            this.sources = sources;
            return this;
        }
        public Builder sources(AutomationSourceResponse... sources) {
            return sources(List.of(sources));
        }
        @CustomType.Setter
        public Builder tags(@Nullable Map tags) {

            this.tags = tags;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetAutomationResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetAutomationResult build() {
            final var _resultValue = new GetAutomationResult();
            _resultValue.actions = actions;
            _resultValue.description = description;
            _resultValue.etag = etag;
            _resultValue.id = id;
            _resultValue.isEnabled = isEnabled;
            _resultValue.kind = kind;
            _resultValue.location = location;
            _resultValue.name = name;
            _resultValue.scopes = scopes;
            _resultValue.sources = sources;
            _resultValue.tags = tags;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}