Class DefaultDetection
- java.lang.Object
-
- software.amazon.awssdk.services.macie2.model.DefaultDetection
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<DefaultDetection.Builder,DefaultDetection>
@Generated("software.amazon.awssdk:codegen") public final class DefaultDetection extends Object implements SdkPojo, Serializable, ToCopyableBuilder<DefaultDetection.Builder,DefaultDetection>
Provides information about a type of sensitive data that was detected by a managed data identifier and produced a sensitive data finding.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDefaultDetection.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DefaultDetection.Builderbuilder()Longcount()The total number of occurrences of the type of sensitive data that was detected.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Occurrencesoccurrences()The location of 1-15 occurrences of the sensitive data that was detected.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends DefaultDetection.Builder>serializableBuilderClass()DefaultDetection.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringtype()The type of sensitive data that was detected.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
count
public final Long count()
The total number of occurrences of the type of sensitive data that was detected.
- Returns:
- The total number of occurrences of the type of sensitive data that was detected.
-
occurrences
public final Occurrences occurrences()
The location of 1-15 occurrences of the sensitive data that was detected. A finding includes location data for a maximum of 15 occurrences of sensitive data.
- Returns:
- The location of 1-15 occurrences of the sensitive data that was detected. A finding includes location data for a maximum of 15 occurrences of sensitive data.
-
type
public final String type()
The type of sensitive data that was detected. For example, AWS_CREDENTIALS, PHONE_NUMBER, or ADDRESS.
- Returns:
- The type of sensitive data that was detected. For example, AWS_CREDENTIALS, PHONE_NUMBER, or ADDRESS.
-
toBuilder
public DefaultDetection.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DefaultDetection.Builder,DefaultDetection>
-
builder
public static DefaultDetection.Builder builder()
-
serializableBuilderClass
public static Class<? extends DefaultDetection.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-