@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Detection extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about a type of sensitive data that Amazon Macie found in an S3 bucket while performing automated sensitive data discovery for an account. The information also specifies the custom or managed data identifier that detected the data. This information is available only if automated sensitive data discovery has been enabled for the account.
Constructor and Description |
---|
Detection() |
Modifier and Type | Method and Description |
---|---|
Detection |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
If the sensitive data was detected by a custom data identifier, the Amazon Resource Name (ARN) of the custom data
identifier that detected the data.
|
Long |
getCount()
The total number of occurrences of the sensitive data.
|
String |
getId()
The unique identifier for the custom data identifier or managed data identifier that detected the sensitive data.
|
String |
getName()
The name of the custom data identifier or managed data identifier that detected the sensitive data.
|
Boolean |
getSuppressed()
Specifies whether occurrences of this type of sensitive data are excluded (true) or included (false) in the
bucket's sensitivity score.
|
String |
getType()
The type of data identifier that detected the sensitive data.
|
int |
hashCode() |
Boolean |
isSuppressed()
Specifies whether occurrences of this type of sensitive data are excluded (true) or included (false) in the
bucket's sensitivity score.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
If the sensitive data was detected by a custom data identifier, the Amazon Resource Name (ARN) of the custom data
identifier that detected the data.
|
void |
setCount(Long count)
The total number of occurrences of the sensitive data.
|
void |
setId(String id)
The unique identifier for the custom data identifier or managed data identifier that detected the sensitive data.
|
void |
setName(String name)
The name of the custom data identifier or managed data identifier that detected the sensitive data.
|
void |
setSuppressed(Boolean suppressed)
Specifies whether occurrences of this type of sensitive data are excluded (true) or included (false) in the
bucket's sensitivity score.
|
void |
setType(String type)
The type of data identifier that detected the sensitive data.
|
String |
toString()
Returns a string representation of this object.
|
Detection |
withArn(String arn)
If the sensitive data was detected by a custom data identifier, the Amazon Resource Name (ARN) of the custom data
identifier that detected the data.
|
Detection |
withCount(Long count)
The total number of occurrences of the sensitive data.
|
Detection |
withId(String id)
The unique identifier for the custom data identifier or managed data identifier that detected the sensitive data.
|
Detection |
withName(String name)
The name of the custom data identifier or managed data identifier that detected the sensitive data.
|
Detection |
withSuppressed(Boolean suppressed)
Specifies whether occurrences of this type of sensitive data are excluded (true) or included (false) in the
bucket's sensitivity score.
|
Detection |
withType(DataIdentifierType type)
The type of data identifier that detected the sensitive data.
|
Detection |
withType(String type)
The type of data identifier that detected the sensitive data.
|
public void setArn(String arn)
If the sensitive data was detected by a custom data identifier, the Amazon Resource Name (ARN) of the custom data identifier that detected the data. Otherwise, this value is null.
arn
- If the sensitive data was detected by a custom data identifier, the Amazon Resource Name (ARN) of the
custom data identifier that detected the data. Otherwise, this value is null.public String getArn()
If the sensitive data was detected by a custom data identifier, the Amazon Resource Name (ARN) of the custom data identifier that detected the data. Otherwise, this value is null.
public Detection withArn(String arn)
If the sensitive data was detected by a custom data identifier, the Amazon Resource Name (ARN) of the custom data identifier that detected the data. Otherwise, this value is null.
arn
- If the sensitive data was detected by a custom data identifier, the Amazon Resource Name (ARN) of the
custom data identifier that detected the data. Otherwise, this value is null.public void setCount(Long count)
The total number of occurrences of the sensitive data.
count
- The total number of occurrences of the sensitive data.public Long getCount()
The total number of occurrences of the sensitive data.
public Detection withCount(Long count)
The total number of occurrences of the sensitive data.
count
- The total number of occurrences of the sensitive data.public void setId(String id)
The unique identifier for the custom data identifier or managed data identifier that detected the sensitive data. For additional details about a specified managed data identifier, see Using managed data identifiers in the Amazon Macie User Guide.
id
- The unique identifier for the custom data identifier or managed data identifier that detected the
sensitive data. For additional details about a specified managed data identifier, see Using managed data
identifiers in the Amazon Macie User Guide.public String getId()
The unique identifier for the custom data identifier or managed data identifier that detected the sensitive data. For additional details about a specified managed data identifier, see Using managed data identifiers in the Amazon Macie User Guide.
public Detection withId(String id)
The unique identifier for the custom data identifier or managed data identifier that detected the sensitive data. For additional details about a specified managed data identifier, see Using managed data identifiers in the Amazon Macie User Guide.
id
- The unique identifier for the custom data identifier or managed data identifier that detected the
sensitive data. For additional details about a specified managed data identifier, see Using managed data
identifiers in the Amazon Macie User Guide.public void setName(String name)
The name of the custom data identifier or managed data identifier that detected the sensitive data. For a managed data identifier, this value is the same as the unique identifier (id).
name
- The name of the custom data identifier or managed data identifier that detected the sensitive data. For a
managed data identifier, this value is the same as the unique identifier (id).public String getName()
The name of the custom data identifier or managed data identifier that detected the sensitive data. For a managed data identifier, this value is the same as the unique identifier (id).
public Detection withName(String name)
The name of the custom data identifier or managed data identifier that detected the sensitive data. For a managed data identifier, this value is the same as the unique identifier (id).
name
- The name of the custom data identifier or managed data identifier that detected the sensitive data. For a
managed data identifier, this value is the same as the unique identifier (id).public void setSuppressed(Boolean suppressed)
Specifies whether occurrences of this type of sensitive data are excluded (true) or included (false) in the bucket's sensitivity score.
suppressed
- Specifies whether occurrences of this type of sensitive data are excluded (true) or included (false) in
the bucket's sensitivity score.public Boolean getSuppressed()
Specifies whether occurrences of this type of sensitive data are excluded (true) or included (false) in the bucket's sensitivity score.
public Detection withSuppressed(Boolean suppressed)
Specifies whether occurrences of this type of sensitive data are excluded (true) or included (false) in the bucket's sensitivity score.
suppressed
- Specifies whether occurrences of this type of sensitive data are excluded (true) or included (false) in
the bucket's sensitivity score.public Boolean isSuppressed()
Specifies whether occurrences of this type of sensitive data are excluded (true) or included (false) in the bucket's sensitivity score.
public void setType(String type)
The type of data identifier that detected the sensitive data. Possible values are: CUSTOM, for a custom data identifier; and, MANAGED, for a managed data identifier.
type
- The type of data identifier that detected the sensitive data. Possible values are: CUSTOM, for a custom
data identifier; and, MANAGED, for a managed data identifier.DataIdentifierType
public String getType()
The type of data identifier that detected the sensitive data. Possible values are: CUSTOM, for a custom data identifier; and, MANAGED, for a managed data identifier.
DataIdentifierType
public Detection withType(String type)
The type of data identifier that detected the sensitive data. Possible values are: CUSTOM, for a custom data identifier; and, MANAGED, for a managed data identifier.
type
- The type of data identifier that detected the sensitive data. Possible values are: CUSTOM, for a custom
data identifier; and, MANAGED, for a managed data identifier.DataIdentifierType
public Detection withType(DataIdentifierType type)
The type of data identifier that detected the sensitive data. Possible values are: CUSTOM, for a custom data identifier; and, MANAGED, for a managed data identifier.
type
- The type of data identifier that detected the sensitive data. Possible values are: CUSTOM, for a custom
data identifier; and, MANAGED, for a managed data identifier.DataIdentifierType
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.