@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Finding extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a finding.
Constructor and Description |
---|
Finding() |
Modifier and Type | Method and Description |
---|---|
Finding |
addConditionEntry(String key,
String value)
Add a single Condition entry
|
Finding |
addPrincipalEntry(String key,
String value)
Add a single Principal entry
|
Finding |
clearConditionEntries()
Removes all the entries added into Condition.
|
Finding |
clearPrincipalEntries()
Removes all the entries added into Principal.
|
Finding |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAction()
The action in the analyzed policy statement that an external principal has permission to use.
|
Date |
getAnalyzedAt()
The time at which the resource was analyzed.
|
Map<String,String> |
getCondition()
The condition in the analyzed policy statement that resulted in a finding.
|
Date |
getCreatedAt()
The time at which the finding was generated.
|
String |
getError()
An error.
|
String |
getId()
The ID of the finding.
|
Boolean |
getIsPublic()
Indicates whether the policy that generated the finding allows public access to the resource.
|
Map<String,String> |
getPrincipal()
The external principal that has access to a resource within the zone of trust.
|
String |
getResource()
The resource that an external principal has access to.
|
String |
getResourceOwnerAccount()
The Amazon Web Services account ID that owns the resource.
|
String |
getResourceType()
The type of the resource identified in the finding.
|
List<FindingSource> |
getSources()
The sources of the finding.
|
String |
getStatus()
The current status of the finding.
|
Date |
getUpdatedAt()
The time at which the finding was updated.
|
int |
hashCode() |
Boolean |
isPublic()
Indicates whether the policy that generated the finding allows public access to the resource.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAction(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to use.
|
void |
setAnalyzedAt(Date analyzedAt)
The time at which the resource was analyzed.
|
void |
setCondition(Map<String,String> condition)
The condition in the analyzed policy statement that resulted in a finding.
|
void |
setCreatedAt(Date createdAt)
The time at which the finding was generated.
|
void |
setError(String error)
An error.
|
void |
setId(String id)
The ID of the finding.
|
void |
setIsPublic(Boolean isPublic)
Indicates whether the policy that generated the finding allows public access to the resource.
|
void |
setPrincipal(Map<String,String> principal)
The external principal that has access to a resource within the zone of trust.
|
void |
setResource(String resource)
The resource that an external principal has access to.
|
void |
setResourceOwnerAccount(String resourceOwnerAccount)
The Amazon Web Services account ID that owns the resource.
|
void |
setResourceType(String resourceType)
The type of the resource identified in the finding.
|
void |
setSources(Collection<FindingSource> sources)
The sources of the finding.
|
void |
setStatus(String status)
The current status of the finding.
|
void |
setUpdatedAt(Date updatedAt)
The time at which the finding was updated.
|
String |
toString()
Returns a string representation of this object.
|
Finding |
withAction(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to use.
|
Finding |
withAction(String... action)
The action in the analyzed policy statement that an external principal has permission to use.
|
Finding |
withAnalyzedAt(Date analyzedAt)
The time at which the resource was analyzed.
|
Finding |
withCondition(Map<String,String> condition)
The condition in the analyzed policy statement that resulted in a finding.
|
Finding |
withCreatedAt(Date createdAt)
The time at which the finding was generated.
|
Finding |
withError(String error)
An error.
|
Finding |
withId(String id)
The ID of the finding.
|
Finding |
withIsPublic(Boolean isPublic)
Indicates whether the policy that generated the finding allows public access to the resource.
|
Finding |
withPrincipal(Map<String,String> principal)
The external principal that has access to a resource within the zone of trust.
|
Finding |
withResource(String resource)
The resource that an external principal has access to.
|
Finding |
withResourceOwnerAccount(String resourceOwnerAccount)
The Amazon Web Services account ID that owns the resource.
|
Finding |
withResourceType(ResourceType resourceType)
The type of the resource identified in the finding.
|
Finding |
withResourceType(String resourceType)
The type of the resource identified in the finding.
|
Finding |
withSources(Collection<FindingSource> sources)
The sources of the finding.
|
Finding |
withSources(FindingSource... sources)
The sources of the finding.
|
Finding |
withStatus(FindingStatus status)
The current status of the finding.
|
Finding |
withStatus(String status)
The current status of the finding.
|
Finding |
withUpdatedAt(Date updatedAt)
The time at which the finding was updated.
|
public void setId(String id)
The ID of the finding.
id
- The ID of the finding.public String getId()
The ID of the finding.
public Finding withId(String id)
The ID of the finding.
id
- The ID of the finding.public Map<String,String> getPrincipal()
The external principal that has access to a resource within the zone of trust.
public void setPrincipal(Map<String,String> principal)
The external principal that has access to a resource within the zone of trust.
principal
- The external principal that has access to a resource within the zone of trust.public Finding withPrincipal(Map<String,String> principal)
The external principal that has access to a resource within the zone of trust.
principal
- The external principal that has access to a resource within the zone of trust.public Finding addPrincipalEntry(String key, String value)
public Finding clearPrincipalEntries()
public List<String> getAction()
The action in the analyzed policy statement that an external principal has permission to use.
public void setAction(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to use.
action
- The action in the analyzed policy statement that an external principal has permission to use.public Finding withAction(String... action)
The action in the analyzed policy statement that an external principal has permission to use.
NOTE: This method appends the values to the existing list (if any). Use
setAction(java.util.Collection)
or withAction(java.util.Collection)
if you want to override the
existing values.
action
- The action in the analyzed policy statement that an external principal has permission to use.public Finding withAction(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to use.
action
- The action in the analyzed policy statement that an external principal has permission to use.public void setResource(String resource)
The resource that an external principal has access to.
resource
- The resource that an external principal has access to.public String getResource()
The resource that an external principal has access to.
public Finding withResource(String resource)
The resource that an external principal has access to.
resource
- The resource that an external principal has access to.public void setIsPublic(Boolean isPublic)
Indicates whether the policy that generated the finding allows public access to the resource.
isPublic
- Indicates whether the policy that generated the finding allows public access to the resource.public Boolean getIsPublic()
Indicates whether the policy that generated the finding allows public access to the resource.
public Finding withIsPublic(Boolean isPublic)
Indicates whether the policy that generated the finding allows public access to the resource.
isPublic
- Indicates whether the policy that generated the finding allows public access to the resource.public Boolean isPublic()
Indicates whether the policy that generated the finding allows public access to the resource.
public void setResourceType(String resourceType)
The type of the resource identified in the finding.
resourceType
- The type of the resource identified in the finding.ResourceType
public String getResourceType()
The type of the resource identified in the finding.
ResourceType
public Finding withResourceType(String resourceType)
The type of the resource identified in the finding.
resourceType
- The type of the resource identified in the finding.ResourceType
public Finding withResourceType(ResourceType resourceType)
The type of the resource identified in the finding.
resourceType
- The type of the resource identified in the finding.ResourceType
public Map<String,String> getCondition()
The condition in the analyzed policy statement that resulted in a finding.
public void setCondition(Map<String,String> condition)
The condition in the analyzed policy statement that resulted in a finding.
condition
- The condition in the analyzed policy statement that resulted in a finding.public Finding withCondition(Map<String,String> condition)
The condition in the analyzed policy statement that resulted in a finding.
condition
- The condition in the analyzed policy statement that resulted in a finding.public Finding addConditionEntry(String key, String value)
public Finding clearConditionEntries()
public void setCreatedAt(Date createdAt)
The time at which the finding was generated.
createdAt
- The time at which the finding was generated.public Date getCreatedAt()
The time at which the finding was generated.
public Finding withCreatedAt(Date createdAt)
The time at which the finding was generated.
createdAt
- The time at which the finding was generated.public void setAnalyzedAt(Date analyzedAt)
The time at which the resource was analyzed.
analyzedAt
- The time at which the resource was analyzed.public Date getAnalyzedAt()
The time at which the resource was analyzed.
public Finding withAnalyzedAt(Date analyzedAt)
The time at which the resource was analyzed.
analyzedAt
- The time at which the resource was analyzed.public void setUpdatedAt(Date updatedAt)
The time at which the finding was updated.
updatedAt
- The time at which the finding was updated.public Date getUpdatedAt()
The time at which the finding was updated.
public Finding withUpdatedAt(Date updatedAt)
The time at which the finding was updated.
updatedAt
- The time at which the finding was updated.public void setStatus(String status)
The current status of the finding.
status
- The current status of the finding.FindingStatus
public String getStatus()
The current status of the finding.
FindingStatus
public Finding withStatus(String status)
The current status of the finding.
status
- The current status of the finding.FindingStatus
public Finding withStatus(FindingStatus status)
The current status of the finding.
status
- The current status of the finding.FindingStatus
public void setResourceOwnerAccount(String resourceOwnerAccount)
The Amazon Web Services account ID that owns the resource.
resourceOwnerAccount
- The Amazon Web Services account ID that owns the resource.public String getResourceOwnerAccount()
The Amazon Web Services account ID that owns the resource.
public Finding withResourceOwnerAccount(String resourceOwnerAccount)
The Amazon Web Services account ID that owns the resource.
resourceOwnerAccount
- The Amazon Web Services account ID that owns the resource.public void setError(String error)
An error.
error
- An error.public String getError()
An error.
public Finding withError(String error)
An error.
error
- An error.public List<FindingSource> getSources()
The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
public void setSources(Collection<FindingSource> sources)
The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
sources
- The sources of the finding. This indicates how the access that generated the finding is granted. It is
populated for Amazon S3 bucket findings.public Finding withSources(FindingSource... sources)
The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
NOTE: This method appends the values to the existing list (if any). Use
setSources(java.util.Collection)
or withSources(java.util.Collection)
if you want to override
the existing values.
sources
- The sources of the finding. This indicates how the access that generated the finding is granted. It is
populated for Amazon S3 bucket findings.public Finding withSources(Collection<FindingSource> sources)
The sources of the finding. This indicates how the access that generated the finding is granted. It is populated for Amazon S3 bucket findings.
sources
- The sources of the finding. This indicates how the access that generated the finding is granted. It is
populated for Amazon S3 bucket findings.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.Privacy | Site terms | Cookie preferences | © 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.