@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Finding extends Object implements Serializable, Cloneable, StructuredPojo
Provides the details of a finding.
Constructor and Description |
---|
Finding() |
Modifier and Type | Method and Description |
---|---|
Finding |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The unique identifier for the Amazon Web Services account that the finding applies to.
|
Boolean |
getArchived()
Specifies whether the finding is archived (suppressed).
|
String |
getCategory()
The category of the finding.
|
ClassificationDetails |
getClassificationDetails()
The details of a sensitive data finding.
|
Long |
getCount()
The total number of occurrences of the finding.
|
Date |
getCreatedAt()
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.
|
String |
getDescription()
The description of the finding.
|
String |
getId()
The unique identifier for the finding.
|
String |
getPartition()
The Amazon Web Services partition that Amazon Macie created the finding in.
|
PolicyDetails |
getPolicyDetails()
The details of a policy finding.
|
String |
getRegion()
The Amazon Web Services Region that Amazon Macie created the finding in.
|
ResourcesAffected |
getResourcesAffected()
The resources that the finding applies to.
|
Boolean |
getSample()
Specifies whether the finding is a sample finding.
|
String |
getSchemaVersion()
The version of the schema that was used to define the data structures in the finding.
|
Severity |
getSeverity()
The severity level and score for the finding.
|
String |
getTitle()
The brief description of the finding.
|
String |
getType()
The type of the finding.
|
Date |
getUpdatedAt()
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding.
|
int |
hashCode() |
Boolean |
isArchived()
Specifies whether the finding is archived (suppressed).
|
Boolean |
isSample()
Specifies whether the finding is a sample finding.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The unique identifier for the Amazon Web Services account that the finding applies to.
|
void |
setArchived(Boolean archived)
Specifies whether the finding is archived (suppressed).
|
void |
setCategory(String category)
The category of the finding.
|
void |
setClassificationDetails(ClassificationDetails classificationDetails)
The details of a sensitive data finding.
|
void |
setCount(Long count)
The total number of occurrences of the finding.
|
void |
setCreatedAt(Date createdAt)
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.
|
void |
setDescription(String description)
The description of the finding.
|
void |
setId(String id)
The unique identifier for the finding.
|
void |
setPartition(String partition)
The Amazon Web Services partition that Amazon Macie created the finding in.
|
void |
setPolicyDetails(PolicyDetails policyDetails)
The details of a policy finding.
|
void |
setRegion(String region)
The Amazon Web Services Region that Amazon Macie created the finding in.
|
void |
setResourcesAffected(ResourcesAffected resourcesAffected)
The resources that the finding applies to.
|
void |
setSample(Boolean sample)
Specifies whether the finding is a sample finding.
|
void |
setSchemaVersion(String schemaVersion)
The version of the schema that was used to define the data structures in the finding.
|
void |
setSeverity(Severity severity)
The severity level and score for the finding.
|
void |
setTitle(String title)
The brief description of the finding.
|
void |
setType(String type)
The type of the finding.
|
void |
setUpdatedAt(Date updatedAt)
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding.
|
String |
toString()
Returns a string representation of this object.
|
Finding |
withAccountId(String accountId)
The unique identifier for the Amazon Web Services account that the finding applies to.
|
Finding |
withArchived(Boolean archived)
Specifies whether the finding is archived (suppressed).
|
Finding |
withCategory(FindingCategory category)
The category of the finding.
|
Finding |
withCategory(String category)
The category of the finding.
|
Finding |
withClassificationDetails(ClassificationDetails classificationDetails)
The details of a sensitive data finding.
|
Finding |
withCount(Long count)
The total number of occurrences of the finding.
|
Finding |
withCreatedAt(Date createdAt)
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.
|
Finding |
withDescription(String description)
The description of the finding.
|
Finding |
withId(String id)
The unique identifier for the finding.
|
Finding |
withPartition(String partition)
The Amazon Web Services partition that Amazon Macie created the finding in.
|
Finding |
withPolicyDetails(PolicyDetails policyDetails)
The details of a policy finding.
|
Finding |
withRegion(String region)
The Amazon Web Services Region that Amazon Macie created the finding in.
|
Finding |
withResourcesAffected(ResourcesAffected resourcesAffected)
The resources that the finding applies to.
|
Finding |
withSample(Boolean sample)
Specifies whether the finding is a sample finding.
|
Finding |
withSchemaVersion(String schemaVersion)
The version of the schema that was used to define the data structures in the finding.
|
Finding |
withSeverity(Severity severity)
The severity level and score for the finding.
|
Finding |
withTitle(String title)
The brief description of the finding.
|
Finding |
withType(FindingType type)
The type of the finding.
|
Finding |
withType(String type)
The type of the finding.
|
Finding |
withUpdatedAt(Date updatedAt)
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding.
|
public void setAccountId(String accountId)
The unique identifier for the Amazon Web Services account that the finding applies to. This is typically the account that owns the affected resource.
accountId
- The unique identifier for the Amazon Web Services account that the finding applies to. This is typically
the account that owns the affected resource.public String getAccountId()
The unique identifier for the Amazon Web Services account that the finding applies to. This is typically the account that owns the affected resource.
public Finding withAccountId(String accountId)
The unique identifier for the Amazon Web Services account that the finding applies to. This is typically the account that owns the affected resource.
accountId
- The unique identifier for the Amazon Web Services account that the finding applies to. This is typically
the account that owns the affected resource.public void setArchived(Boolean archived)
Specifies whether the finding is archived (suppressed).
archived
- Specifies whether the finding is archived (suppressed).public Boolean getArchived()
Specifies whether the finding is archived (suppressed).
public Finding withArchived(Boolean archived)
Specifies whether the finding is archived (suppressed).
archived
- Specifies whether the finding is archived (suppressed).public Boolean isArchived()
Specifies whether the finding is archived (suppressed).
public void setCategory(String category)
The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.
category
- The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and,
POLICY, for a policy finding.FindingCategory
public String getCategory()
The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.
FindingCategory
public Finding withCategory(String category)
The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.
category
- The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and,
POLICY, for a policy finding.FindingCategory
public Finding withCategory(FindingCategory category)
The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and, POLICY, for a policy finding.
category
- The category of the finding. Possible values are: CLASSIFICATION, for a sensitive data finding; and,
POLICY, for a policy finding.FindingCategory
public void setClassificationDetails(ClassificationDetails classificationDetails)
The details of a sensitive data finding. This value is null for a policy finding.
classificationDetails
- The details of a sensitive data finding. This value is null for a policy finding.public ClassificationDetails getClassificationDetails()
The details of a sensitive data finding. This value is null for a policy finding.
public Finding withClassificationDetails(ClassificationDetails classificationDetails)
The details of a sensitive data finding. This value is null for a policy finding.
classificationDetails
- The details of a sensitive data finding. This value is null for a policy finding.public void setCount(Long count)
The total number of occurrences of the finding. For sensitive data findings, this value is always 1. All sensitive data findings are considered unique.
count
- The total number of occurrences of the finding. For sensitive data findings, this value is always 1. All
sensitive data findings are considered unique.public Long getCount()
The total number of occurrences of the finding. For sensitive data findings, this value is always 1. All sensitive data findings are considered unique.
public Finding withCount(Long count)
The total number of occurrences of the finding. For sensitive data findings, this value is always 1. All sensitive data findings are considered unique.
count
- The total number of occurrences of the finding. For sensitive data findings, this value is always 1. All
sensitive data findings are considered unique.public void setCreatedAt(Date createdAt)
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.
createdAt
- The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.public Date getCreatedAt()
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.
public Finding withCreatedAt(Date createdAt)
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.
createdAt
- The date and time, in UTC and extended ISO 8601 format, when Amazon Macie created the finding.public void setDescription(String description)
The description of the finding.
description
- The description of the finding.public String getDescription()
The description of the finding.
public Finding withDescription(String description)
The description of the finding.
description
- The description of the finding.public void setId(String id)
The unique identifier for the finding. This is a random string that Amazon Macie generates and assigns to a finding when it creates the finding.
id
- The unique identifier for the finding. This is a random string that Amazon Macie generates and assigns to
a finding when it creates the finding.public String getId()
The unique identifier for the finding. This is a random string that Amazon Macie generates and assigns to a finding when it creates the finding.
public Finding withId(String id)
The unique identifier for the finding. This is a random string that Amazon Macie generates and assigns to a finding when it creates the finding.
id
- The unique identifier for the finding. This is a random string that Amazon Macie generates and assigns to
a finding when it creates the finding.public void setPartition(String partition)
The Amazon Web Services partition that Amazon Macie created the finding in.
partition
- The Amazon Web Services partition that Amazon Macie created the finding in.public String getPartition()
The Amazon Web Services partition that Amazon Macie created the finding in.
public Finding withPartition(String partition)
The Amazon Web Services partition that Amazon Macie created the finding in.
partition
- The Amazon Web Services partition that Amazon Macie created the finding in.public void setPolicyDetails(PolicyDetails policyDetails)
The details of a policy finding. This value is null for a sensitive data finding.
policyDetails
- The details of a policy finding. This value is null for a sensitive data finding.public PolicyDetails getPolicyDetails()
The details of a policy finding. This value is null for a sensitive data finding.
public Finding withPolicyDetails(PolicyDetails policyDetails)
The details of a policy finding. This value is null for a sensitive data finding.
policyDetails
- The details of a policy finding. This value is null for a sensitive data finding.public void setRegion(String region)
The Amazon Web Services Region that Amazon Macie created the finding in.
region
- The Amazon Web Services Region that Amazon Macie created the finding in.public String getRegion()
The Amazon Web Services Region that Amazon Macie created the finding in.
public Finding withRegion(String region)
The Amazon Web Services Region that Amazon Macie created the finding in.
region
- The Amazon Web Services Region that Amazon Macie created the finding in.public void setResourcesAffected(ResourcesAffected resourcesAffected)
The resources that the finding applies to.
resourcesAffected
- The resources that the finding applies to.public ResourcesAffected getResourcesAffected()
The resources that the finding applies to.
public Finding withResourcesAffected(ResourcesAffected resourcesAffected)
The resources that the finding applies to.
resourcesAffected
- The resources that the finding applies to.public void setSample(Boolean sample)
Specifies whether the finding is a sample finding. A sample finding is a finding that uses example data to demonstrate what a finding might contain.
sample
- Specifies whether the finding is a sample finding. A sample finding is a finding that uses example
data to demonstrate what a finding might contain.public Boolean getSample()
Specifies whether the finding is a sample finding. A sample finding is a finding that uses example data to demonstrate what a finding might contain.
public Finding withSample(Boolean sample)
Specifies whether the finding is a sample finding. A sample finding is a finding that uses example data to demonstrate what a finding might contain.
sample
- Specifies whether the finding is a sample finding. A sample finding is a finding that uses example
data to demonstrate what a finding might contain.public Boolean isSample()
Specifies whether the finding is a sample finding. A sample finding is a finding that uses example data to demonstrate what a finding might contain.
public void setSchemaVersion(String schemaVersion)
The version of the schema that was used to define the data structures in the finding.
schemaVersion
- The version of the schema that was used to define the data structures in the finding.public String getSchemaVersion()
The version of the schema that was used to define the data structures in the finding.
public Finding withSchemaVersion(String schemaVersion)
The version of the schema that was used to define the data structures in the finding.
schemaVersion
- The version of the schema that was used to define the data structures in the finding.public void setSeverity(Severity severity)
The severity level and score for the finding.
severity
- The severity level and score for the finding.public Severity getSeverity()
The severity level and score for the finding.
public Finding withSeverity(Severity severity)
The severity level and score for the finding.
severity
- The severity level and score for the finding.public void setTitle(String title)
The brief description of the finding.
title
- The brief description of the finding.public String getTitle()
The brief description of the finding.
public Finding withTitle(String title)
The brief description of the finding.
title
- The brief description of the finding.public void setType(String type)
The type of the finding.
type
- The type of the finding.FindingType
public String getType()
The type of the finding.
FindingType
public Finding withType(String type)
The type of the finding.
type
- The type of the finding.FindingType
public Finding withType(FindingType type)
The type of the finding.
type
- The type of the finding.FindingType
public void setUpdatedAt(Date updatedAt)
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding. For sensitive data findings, this value is the same as the value for the createdAt property. All sensitive data findings are considered new.
updatedAt
- The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding. For
sensitive data findings, this value is the same as the value for the createdAt property. All sensitive
data findings are considered new.public Date getUpdatedAt()
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding. For sensitive data findings, this value is the same as the value for the createdAt property. All sensitive data findings are considered new.
public Finding withUpdatedAt(Date updatedAt)
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding. For sensitive data findings, this value is the same as the value for the createdAt property. All sensitive data findings are considered new.
updatedAt
- The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last updated the finding. For
sensitive data findings, this value is the same as the value for the createdAt property. All sensitive
data findings are considered new.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.