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

com.pulumi.azurenative.securityinsights.outputs.GetAnomalySecurityMLAnalyticsSettingsResult Maven / Gradle / Ivy

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

import com.pulumi.azurenative.securityinsights.outputs.SecurityMLAnalyticsSettingsDataSourceResponse;
import com.pulumi.azurenative.securityinsights.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetAnomalySecurityMLAnalyticsSettingsResult {
    /**
     * @return The anomaly settings version of the Anomaly security ml analytics settings that dictates whether job version gets updated or not.
     * 
     */
    private @Nullable Integer anomalySettingsVersion;
    /**
     * @return The anomaly version of the AnomalySecurityMLAnalyticsSettings.
     * 
     */
    private String anomalyVersion;
    /**
     * @return The customizable observations of the AnomalySecurityMLAnalyticsSettings.
     * 
     */
    private @Nullable Object customizableObservations;
    /**
     * @return The description of the SecurityMLAnalyticsSettings.
     * 
     */
    private @Nullable String description;
    /**
     * @return The display name for settings created by this SecurityMLAnalyticsSettings.
     * 
     */
    private String displayName;
    /**
     * @return Determines whether this settings is enabled or disabled.
     * 
     */
    private Boolean enabled;
    /**
     * @return Etag of the azure resource
     * 
     */
    private @Nullable String etag;
    /**
     * @return The frequency that this SecurityMLAnalyticsSettings will be run.
     * 
     */
    private String frequency;
    /**
     * @return Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
     * 
     */
    private String id;
    /**
     * @return Determines whether this anomaly security ml analytics settings is a default settings
     * 
     */
    private Boolean isDefaultSettings;
    /**
     * @return The kind of security ML analytics settings
     * Expected value is 'Anomaly'.
     * 
     */
    private String kind;
    /**
     * @return The last time that this SecurityMLAnalyticsSettings has been modified.
     * 
     */
    private String lastModifiedUtc;
    /**
     * @return The name of the resource
     * 
     */
    private String name;
    /**
     * @return The required data sources for this SecurityMLAnalyticsSettings
     * 
     */
    private @Nullable List requiredDataConnectors;
    /**
     * @return The anomaly settings definition Id
     * 
     */
    private @Nullable String settingsDefinitionId;
    /**
     * @return The anomaly SecurityMLAnalyticsSettings status
     * 
     */
    private String settingsStatus;
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The tactics of the SecurityMLAnalyticsSettings
     * 
     */
    private @Nullable List tactics;
    /**
     * @return The techniques of the SecurityMLAnalyticsSettings
     * 
     */
    private @Nullable List techniques;
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    private String type;

    private GetAnomalySecurityMLAnalyticsSettingsResult() {}
    /**
     * @return The anomaly settings version of the Anomaly security ml analytics settings that dictates whether job version gets updated or not.
     * 
     */
    public Optional anomalySettingsVersion() {
        return Optional.ofNullable(this.anomalySettingsVersion);
    }
    /**
     * @return The anomaly version of the AnomalySecurityMLAnalyticsSettings.
     * 
     */
    public String anomalyVersion() {
        return this.anomalyVersion;
    }
    /**
     * @return The customizable observations of the AnomalySecurityMLAnalyticsSettings.
     * 
     */
    public Optional customizableObservations() {
        return Optional.ofNullable(this.customizableObservations);
    }
    /**
     * @return The description of the SecurityMLAnalyticsSettings.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return The display name for settings created by this SecurityMLAnalyticsSettings.
     * 
     */
    public String displayName() {
        return this.displayName;
    }
    /**
     * @return Determines whether this settings is enabled or disabled.
     * 
     */
    public Boolean enabled() {
        return this.enabled;
    }
    /**
     * @return Etag of the azure resource
     * 
     */
    public Optional etag() {
        return Optional.ofNullable(this.etag);
    }
    /**
     * @return The frequency that this SecurityMLAnalyticsSettings will be run.
     * 
     */
    public String frequency() {
        return this.frequency;
    }
    /**
     * @return Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Determines whether this anomaly security ml analytics settings is a default settings
     * 
     */
    public Boolean isDefaultSettings() {
        return this.isDefaultSettings;
    }
    /**
     * @return The kind of security ML analytics settings
     * Expected value is 'Anomaly'.
     * 
     */
    public String kind() {
        return this.kind;
    }
    /**
     * @return The last time that this SecurityMLAnalyticsSettings has been modified.
     * 
     */
    public String lastModifiedUtc() {
        return this.lastModifiedUtc;
    }
    /**
     * @return The name of the resource
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The required data sources for this SecurityMLAnalyticsSettings
     * 
     */
    public List requiredDataConnectors() {
        return this.requiredDataConnectors == null ? List.of() : this.requiredDataConnectors;
    }
    /**
     * @return The anomaly settings definition Id
     * 
     */
    public Optional settingsDefinitionId() {
        return Optional.ofNullable(this.settingsDefinitionId);
    }
    /**
     * @return The anomaly SecurityMLAnalyticsSettings status
     * 
     */
    public String settingsStatus() {
        return this.settingsStatus;
    }
    /**
     * @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The tactics of the SecurityMLAnalyticsSettings
     * 
     */
    public List tactics() {
        return this.tactics == null ? List.of() : this.tactics;
    }
    /**
     * @return The techniques of the SecurityMLAnalyticsSettings
     * 
     */
    public List techniques() {
        return this.techniques == null ? List.of() : this.techniques;
    }
    /**
     * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetAnomalySecurityMLAnalyticsSettingsResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Integer anomalySettingsVersion;
        private String anomalyVersion;
        private @Nullable Object customizableObservations;
        private @Nullable String description;
        private String displayName;
        private Boolean enabled;
        private @Nullable String etag;
        private String frequency;
        private String id;
        private Boolean isDefaultSettings;
        private String kind;
        private String lastModifiedUtc;
        private String name;
        private @Nullable List requiredDataConnectors;
        private @Nullable String settingsDefinitionId;
        private String settingsStatus;
        private SystemDataResponse systemData;
        private @Nullable List tactics;
        private @Nullable List techniques;
        private String type;
        public Builder() {}
        public Builder(GetAnomalySecurityMLAnalyticsSettingsResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.anomalySettingsVersion = defaults.anomalySettingsVersion;
    	      this.anomalyVersion = defaults.anomalyVersion;
    	      this.customizableObservations = defaults.customizableObservations;
    	      this.description = defaults.description;
    	      this.displayName = defaults.displayName;
    	      this.enabled = defaults.enabled;
    	      this.etag = defaults.etag;
    	      this.frequency = defaults.frequency;
    	      this.id = defaults.id;
    	      this.isDefaultSettings = defaults.isDefaultSettings;
    	      this.kind = defaults.kind;
    	      this.lastModifiedUtc = defaults.lastModifiedUtc;
    	      this.name = defaults.name;
    	      this.requiredDataConnectors = defaults.requiredDataConnectors;
    	      this.settingsDefinitionId = defaults.settingsDefinitionId;
    	      this.settingsStatus = defaults.settingsStatus;
    	      this.systemData = defaults.systemData;
    	      this.tactics = defaults.tactics;
    	      this.techniques = defaults.techniques;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder anomalySettingsVersion(@Nullable Integer anomalySettingsVersion) {

            this.anomalySettingsVersion = anomalySettingsVersion;
            return this;
        }
        @CustomType.Setter
        public Builder anomalyVersion(String anomalyVersion) {
            if (anomalyVersion == null) {
              throw new MissingRequiredPropertyException("GetAnomalySecurityMLAnalyticsSettingsResult", "anomalyVersion");
            }
            this.anomalyVersion = anomalyVersion;
            return this;
        }
        @CustomType.Setter
        public Builder customizableObservations(@Nullable Object customizableObservations) {

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

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder displayName(String displayName) {
            if (displayName == null) {
              throw new MissingRequiredPropertyException("GetAnomalySecurityMLAnalyticsSettingsResult", "displayName");
            }
            this.displayName = displayName;
            return this;
        }
        @CustomType.Setter
        public Builder enabled(Boolean enabled) {
            if (enabled == null) {
              throw new MissingRequiredPropertyException("GetAnomalySecurityMLAnalyticsSettingsResult", "enabled");
            }
            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder etag(@Nullable String etag) {

            this.etag = etag;
            return this;
        }
        @CustomType.Setter
        public Builder frequency(String frequency) {
            if (frequency == null) {
              throw new MissingRequiredPropertyException("GetAnomalySecurityMLAnalyticsSettingsResult", "frequency");
            }
            this.frequency = frequency;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetAnomalySecurityMLAnalyticsSettingsResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder isDefaultSettings(Boolean isDefaultSettings) {
            if (isDefaultSettings == null) {
              throw new MissingRequiredPropertyException("GetAnomalySecurityMLAnalyticsSettingsResult", "isDefaultSettings");
            }
            this.isDefaultSettings = isDefaultSettings;
            return this;
        }
        @CustomType.Setter
        public Builder kind(String kind) {
            if (kind == null) {
              throw new MissingRequiredPropertyException("GetAnomalySecurityMLAnalyticsSettingsResult", "kind");
            }
            this.kind = kind;
            return this;
        }
        @CustomType.Setter
        public Builder lastModifiedUtc(String lastModifiedUtc) {
            if (lastModifiedUtc == null) {
              throw new MissingRequiredPropertyException("GetAnomalySecurityMLAnalyticsSettingsResult", "lastModifiedUtc");
            }
            this.lastModifiedUtc = lastModifiedUtc;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetAnomalySecurityMLAnalyticsSettingsResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder requiredDataConnectors(@Nullable List requiredDataConnectors) {

            this.requiredDataConnectors = requiredDataConnectors;
            return this;
        }
        public Builder requiredDataConnectors(SecurityMLAnalyticsSettingsDataSourceResponse... requiredDataConnectors) {
            return requiredDataConnectors(List.of(requiredDataConnectors));
        }
        @CustomType.Setter
        public Builder settingsDefinitionId(@Nullable String settingsDefinitionId) {

            this.settingsDefinitionId = settingsDefinitionId;
            return this;
        }
        @CustomType.Setter
        public Builder settingsStatus(String settingsStatus) {
            if (settingsStatus == null) {
              throw new MissingRequiredPropertyException("GetAnomalySecurityMLAnalyticsSettingsResult", "settingsStatus");
            }
            this.settingsStatus = settingsStatus;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetAnomalySecurityMLAnalyticsSettingsResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder tactics(@Nullable List tactics) {

            this.tactics = tactics;
            return this;
        }
        public Builder tactics(String... tactics) {
            return tactics(List.of(tactics));
        }
        @CustomType.Setter
        public Builder techniques(@Nullable List techniques) {

            this.techniques = techniques;
            return this;
        }
        public Builder techniques(String... techniques) {
            return techniques(List.of(techniques));
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetAnomalySecurityMLAnalyticsSettingsResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetAnomalySecurityMLAnalyticsSettingsResult build() {
            final var _resultValue = new GetAnomalySecurityMLAnalyticsSettingsResult();
            _resultValue.anomalySettingsVersion = anomalySettingsVersion;
            _resultValue.anomalyVersion = anomalyVersion;
            _resultValue.customizableObservations = customizableObservations;
            _resultValue.description = description;
            _resultValue.displayName = displayName;
            _resultValue.enabled = enabled;
            _resultValue.etag = etag;
            _resultValue.frequency = frequency;
            _resultValue.id = id;
            _resultValue.isDefaultSettings = isDefaultSettings;
            _resultValue.kind = kind;
            _resultValue.lastModifiedUtc = lastModifiedUtc;
            _resultValue.name = name;
            _resultValue.requiredDataConnectors = requiredDataConnectors;
            _resultValue.settingsDefinitionId = settingsDefinitionId;
            _resultValue.settingsStatus = settingsStatus;
            _resultValue.systemData = systemData;
            _resultValue.tactics = tactics;
            _resultValue.techniques = techniques;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}