// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.securityinsights.fluent.models;

import com.azure.core.annotation.Immutable;
import com.azure.resourcemanager.securityinsights.models.EntityCommonProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;

/** Mail cluster entity property bag. */
@Immutable
public final class MailClusterEntityProperties extends EntityCommonProperties {
    /*
     * The mail message IDs that are part of the mail cluster
     */
    @JsonProperty(value = "networkMessageIds", access = JsonProperty.Access.WRITE_ONLY)
    private List<String> networkMessageIds;

    /*
     * Count of mail messages by DeliveryStatus string representation
     */
    @JsonProperty(value = "countByDeliveryStatus", access = JsonProperty.Access.WRITE_ONLY)
    private Object countByDeliveryStatus;

    /*
     * Count of mail messages by ThreatType string representation
     */
    @JsonProperty(value = "countByThreatType", access = JsonProperty.Access.WRITE_ONLY)
    private Object countByThreatType;

    /*
     * Count of mail messages by ProtectionStatus string representation
     */
    @JsonProperty(value = "countByProtectionStatus", access = JsonProperty.Access.WRITE_ONLY)
    private Object countByProtectionStatus;

    /*
     * The threats of mail messages that are part of the mail cluster
     */
    @JsonProperty(value = "threats", access = JsonProperty.Access.WRITE_ONLY)
    private List<String> threats;

    /*
     * The query that was used to identify the messages of the mail cluster
     */
    @JsonProperty(value = "query", access = JsonProperty.Access.WRITE_ONLY)
    private String query;

    /*
     * The query time
     */
    @JsonProperty(value = "queryTime", access = JsonProperty.Access.WRITE_ONLY)
    private OffsetDateTime queryTime;

    /*
     * The number of mail messages that are part of the mail cluster
     */
    @JsonProperty(value = "mailCount", access = JsonProperty.Access.WRITE_ONLY)
    private Integer mailCount;

    /*
     * Is this a volume anomaly mail cluster
     */
    @JsonProperty(value = "isVolumeAnomaly", access = JsonProperty.Access.WRITE_ONLY)
    private Boolean isVolumeAnomaly;

    /*
     * The source of the mail cluster (default is 'O365 ATP')
     */
    @JsonProperty(value = "source", access = JsonProperty.Access.WRITE_ONLY)
    private String source;

    /*
     * The id of the cluster source
     */
    @JsonProperty(value = "clusterSourceIdentifier", access = JsonProperty.Access.WRITE_ONLY)
    private String clusterSourceIdentifier;

    /*
     * The type of the cluster source
     */
    @JsonProperty(value = "clusterSourceType", access = JsonProperty.Access.WRITE_ONLY)
    private String clusterSourceType;

    /*
     * The cluster query start time
     */
    @JsonProperty(value = "clusterQueryStartTime", access = JsonProperty.Access.WRITE_ONLY)
    private OffsetDateTime clusterQueryStartTime;

    /*
     * The cluster query end time
     */
    @JsonProperty(value = "clusterQueryEndTime", access = JsonProperty.Access.WRITE_ONLY)
    private OffsetDateTime clusterQueryEndTime;

    /*
     * The cluster group
     */
    @JsonProperty(value = "clusterGroup", access = JsonProperty.Access.WRITE_ONLY)
    private String clusterGroup;

    /**
     * Get the networkMessageIds property: The mail message IDs that are part of the mail cluster.
     *
     * @return the networkMessageIds value.
     */
    public List<String> networkMessageIds() {
        return this.networkMessageIds;
    }

    /**
     * Get the countByDeliveryStatus property: Count of mail messages by DeliveryStatus string representation.
     *
     * @return the countByDeliveryStatus value.
     */
    public Object countByDeliveryStatus() {
        return this.countByDeliveryStatus;
    }

    /**
     * Get the countByThreatType property: Count of mail messages by ThreatType string representation.
     *
     * @return the countByThreatType value.
     */
    public Object countByThreatType() {
        return this.countByThreatType;
    }

    /**
     * Get the countByProtectionStatus property: Count of mail messages by ProtectionStatus string representation.
     *
     * @return the countByProtectionStatus value.
     */
    public Object countByProtectionStatus() {
        return this.countByProtectionStatus;
    }

    /**
     * Get the threats property: The threats of mail messages that are part of the mail cluster.
     *
     * @return the threats value.
     */
    public List<String> threats() {
        return this.threats;
    }

    /**
     * Get the query property: The query that was used to identify the messages of the mail cluster.
     *
     * @return the query value.
     */
    public String query() {
        return this.query;
    }

    /**
     * Get the queryTime property: The query time.
     *
     * @return the queryTime value.
     */
    public OffsetDateTime queryTime() {
        return this.queryTime;
    }

    /**
     * Get the mailCount property: The number of mail messages that are part of the mail cluster.
     *
     * @return the mailCount value.
     */
    public Integer mailCount() {
        return this.mailCount;
    }

    /**
     * Get the isVolumeAnomaly property: Is this a volume anomaly mail cluster.
     *
     * @return the isVolumeAnomaly value.
     */
    public Boolean isVolumeAnomaly() {
        return this.isVolumeAnomaly;
    }

    /**
     * Get the source property: The source of the mail cluster (default is 'O365 ATP').
     *
     * @return the source value.
     */
    public String source() {
        return this.source;
    }

    /**
     * Get the clusterSourceIdentifier property: The id of the cluster source.
     *
     * @return the clusterSourceIdentifier value.
     */
    public String clusterSourceIdentifier() {
        return this.clusterSourceIdentifier;
    }

    /**
     * Get the clusterSourceType property: The type of the cluster source.
     *
     * @return the clusterSourceType value.
     */
    public String clusterSourceType() {
        return this.clusterSourceType;
    }

    /**
     * Get the clusterQueryStartTime property: The cluster query start time.
     *
     * @return the clusterQueryStartTime value.
     */
    public OffsetDateTime clusterQueryStartTime() {
        return this.clusterQueryStartTime;
    }

    /**
     * Get the clusterQueryEndTime property: The cluster query end time.
     *
     * @return the clusterQueryEndTime value.
     */
    public OffsetDateTime clusterQueryEndTime() {
        return this.clusterQueryEndTime;
    }

    /**
     * Get the clusterGroup property: The cluster group.
     *
     * @return the clusterGroup value.
     */
    public String clusterGroup() {
        return this.clusterGroup;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
