Class ResourceStatistics

java.lang.Object
software.amazon.awssdk.services.macie2.model.ResourceStatistics
All Implemented Interfaces:
Serializable, SdkPojo, ToCopyableBuilder<ResourceStatistics.Builder,ResourceStatistics>

@Generated("software.amazon.awssdk:codegen") public final class ResourceStatistics extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceStatistics.Builder,ResourceStatistics>

Provides statistical data for sensitive data discovery metrics that apply to an S3 bucket that Amazon Macie monitors and analyzes for an account, if automated sensitive data discovery has been enabled for the account. The data captures the results of automated sensitive data discovery activities that Macie has performed for the bucket.

See Also:
  • Method Details

    • totalBytesClassified

      public final Long totalBytesClassified()

      The total amount of data, in bytes, that Amazon Macie has analyzed in the bucket.

      Returns:
      The total amount of data, in bytes, that Amazon Macie has analyzed in the bucket.
    • totalDetections

      public final Long totalDetections()

      The total number of occurrences of sensitive data that Amazon Macie has found in the bucket's objects. This includes occurrences that are currently suppressed by the sensitivity scoring settings for the bucket (totalDetectionsSuppressed).

      Returns:
      The total number of occurrences of sensitive data that Amazon Macie has found in the bucket's objects. This includes occurrences that are currently suppressed by the sensitivity scoring settings for the bucket (totalDetectionsSuppressed).
    • totalDetectionsSuppressed

      public final Long totalDetectionsSuppressed()

      The total number of occurrences of sensitive data that are currently suppressed by the sensitivity scoring settings for the bucket. These represent occurrences of sensitive data that Amazon Macie found in the bucket's objects, but the occurrences were manually suppressed. By default, suppressed occurrences are excluded from the bucket's sensitivity score.

      Returns:
      The total number of occurrences of sensitive data that are currently suppressed by the sensitivity scoring settings for the bucket. These represent occurrences of sensitive data that Amazon Macie found in the bucket's objects, but the occurrences were manually suppressed. By default, suppressed occurrences are excluded from the bucket's sensitivity score.
    • totalItemsClassified

      public final Long totalItemsClassified()

      The total number of objects that Amazon Macie has analyzed in the bucket.

      Returns:
      The total number of objects that Amazon Macie has analyzed in the bucket.
    • totalItemsSensitive

      public final Long totalItemsSensitive()

      The total number of the bucket's objects that Amazon Macie has found sensitive data in.

      Returns:
      The total number of the bucket's objects that Amazon Macie has found sensitive data in.
    • totalItemsSkipped

      public final Long totalItemsSkipped()

      The total number of objects that Amazon Macie wasn't able to analyze in the bucket due to an object-level issue or error. For example, an object is a malformed file. This value includes objects that Macie wasn't able to analyze for reasons reported by other statistics in the ResourceStatistics object.

      Returns:
      The total number of objects that Amazon Macie wasn't able to analyze in the bucket due to an object-level issue or error. For example, an object is a malformed file. This value includes objects that Macie wasn't able to analyze for reasons reported by other statistics in the ResourceStatistics object.
    • totalItemsSkippedInvalidEncryption

      public final Long totalItemsSkippedInvalidEncryption()

      The total number of objects that Amazon Macie wasn't able to analyze in the bucket because the objects are encrypted with a key that Macie can't access. The objects use server-side encryption with customer-provided keys (SSE-C).

      Returns:
      The total number of objects that Amazon Macie wasn't able to analyze in the bucket because the objects are encrypted with a key that Macie can't access. The objects use server-side encryption with customer-provided keys (SSE-C).
    • totalItemsSkippedInvalidKms

      public final Long totalItemsSkippedInvalidKms()

      The total number of objects that Amazon Macie wasn't able to analyze in the bucket because the objects are encrypted with KMS keys that were disabled, are scheduled for deletion, or were deleted.

      Returns:
      The total number of objects that Amazon Macie wasn't able to analyze in the bucket because the objects are encrypted with KMS keys that were disabled, are scheduled for deletion, or were deleted.
    • totalItemsSkippedPermissionDenied

      public final Long totalItemsSkippedPermissionDenied()

      The total number of objects that Amazon Macie wasn't able to analyze in the bucket due to the permissions settings for the objects or the permissions settings for the keys that were used to encrypt the objects.

      Returns:
      The total number of objects that Amazon Macie wasn't able to analyze in the bucket due to the permissions settings for the objects or the permissions settings for the keys that were used to encrypt the objects.
    • toBuilder

      public ResourceStatistics.Builder toBuilder()
      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<ResourceStatistics.Builder,ResourceStatistics>
      Returns:
      a builder for type T
    • builder

      public static ResourceStatistics.Builder builder()
    • serializableBuilderClass

      public static Class<? extends ResourceStatistics.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class Object
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Description copied from interface: SdkPojo
      Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in an SdkPojo class, and is generated based on a service model.

      If an SdkPojo class does not have any inherited fields, equalsBySdkFields and equals are essentially the same.

      Specified by:
      equalsBySdkFields in interface SdkPojo
      Parameters:
      obj - the object to be compared with
      Returns:
      true if the other object equals to this object by sdk fields, false otherwise.
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
      Returns:
      List of SdkField in this POJO. May be empty list but should never be null.
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo
      Returns:
      The mapping between the field name and its corresponding field.