@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetFindingV2Result extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetFindingV2Result() |
Modifier and Type | Method and Description |
---|---|
GetFindingV2Result |
clone() |
boolean |
equals(Object obj) |
Date |
getAnalyzedAt()
The time at which the resource-based policy or IAM entity that generated the finding was analyzed.
|
Date |
getCreatedAt()
The time at which the finding was created.
|
String |
getError()
An error.
|
List<FindingDetails> |
getFindingDetails()
A localized message that explains the finding and provides guidance on how to address it.
|
String |
getFindingType()
The type of the finding.
|
String |
getId()
The ID of the finding to retrieve.
|
String |
getNextToken()
A token used for pagination of results returned.
|
String |
getResource()
The resource that generated the finding.
|
String |
getResourceOwnerAccount()
Tye Amazon Web Services account ID that owns the resource.
|
String |
getResourceType()
The type of the resource identified in the finding.
|
String |
getStatus()
The status of the finding.
|
Date |
getUpdatedAt()
The time at which the finding was updated.
|
int |
hashCode() |
void |
setAnalyzedAt(Date analyzedAt)
The time at which the resource-based policy or IAM entity that generated the finding was analyzed.
|
void |
setCreatedAt(Date createdAt)
The time at which the finding was created.
|
void |
setError(String error)
An error.
|
void |
setFindingDetails(Collection<FindingDetails> findingDetails)
A localized message that explains the finding and provides guidance on how to address it.
|
void |
setFindingType(String findingType)
The type of the finding.
|
void |
setId(String id)
The ID of the finding to retrieve.
|
void |
setNextToken(String nextToken)
A token used for pagination of results returned.
|
void |
setResource(String resource)
The resource that generated the finding.
|
void |
setResourceOwnerAccount(String resourceOwnerAccount)
Tye Amazon Web Services account ID that owns the resource.
|
void |
setResourceType(String resourceType)
The type of the resource identified in the finding.
|
void |
setStatus(String status)
The 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.
|
GetFindingV2Result |
withAnalyzedAt(Date analyzedAt)
The time at which the resource-based policy or IAM entity that generated the finding was analyzed.
|
GetFindingV2Result |
withCreatedAt(Date createdAt)
The time at which the finding was created.
|
GetFindingV2Result |
withError(String error)
An error.
|
GetFindingV2Result |
withFindingDetails(Collection<FindingDetails> findingDetails)
A localized message that explains the finding and provides guidance on how to address it.
|
GetFindingV2Result |
withFindingDetails(FindingDetails... findingDetails)
A localized message that explains the finding and provides guidance on how to address it.
|
GetFindingV2Result |
withFindingType(FindingType findingType)
The type of the finding.
|
GetFindingV2Result |
withFindingType(String findingType)
The type of the finding.
|
GetFindingV2Result |
withId(String id)
The ID of the finding to retrieve.
|
GetFindingV2Result |
withNextToken(String nextToken)
A token used for pagination of results returned.
|
GetFindingV2Result |
withResource(String resource)
The resource that generated the finding.
|
GetFindingV2Result |
withResourceOwnerAccount(String resourceOwnerAccount)
Tye Amazon Web Services account ID that owns the resource.
|
GetFindingV2Result |
withResourceType(ResourceType resourceType)
The type of the resource identified in the finding.
|
GetFindingV2Result |
withResourceType(String resourceType)
The type of the resource identified in the finding.
|
GetFindingV2Result |
withStatus(FindingStatus status)
The status of the finding.
|
GetFindingV2Result |
withStatus(String status)
The status of the finding.
|
GetFindingV2Result |
withUpdatedAt(Date updatedAt)
The time at which the finding was updated.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setAnalyzedAt(Date analyzedAt)
The time at which the resource-based policy or IAM entity that generated the finding was analyzed.
analyzedAt
- The time at which the resource-based policy or IAM entity that generated the finding was analyzed.public Date getAnalyzedAt()
The time at which the resource-based policy or IAM entity that generated the finding was analyzed.
public GetFindingV2Result withAnalyzedAt(Date analyzedAt)
The time at which the resource-based policy or IAM entity that generated the finding was analyzed.
analyzedAt
- The time at which the resource-based policy or IAM entity that generated the finding was analyzed.public void setCreatedAt(Date createdAt)
The time at which the finding was created.
createdAt
- The time at which the finding was created.public Date getCreatedAt()
The time at which the finding was created.
public GetFindingV2Result withCreatedAt(Date createdAt)
The time at which the finding was created.
createdAt
- The time at which the finding was created.public void setError(String error)
An error.
error
- An error.public String getError()
An error.
public GetFindingV2Result withError(String error)
An error.
error
- An error.public void setId(String id)
The ID of the finding to retrieve.
id
- The ID of the finding to retrieve.public String getId()
The ID of the finding to retrieve.
public GetFindingV2Result withId(String id)
The ID of the finding to retrieve.
id
- The ID of the finding to retrieve.public void setNextToken(String nextToken)
A token used for pagination of results returned.
nextToken
- A token used for pagination of results returned.public String getNextToken()
A token used for pagination of results returned.
public GetFindingV2Result withNextToken(String nextToken)
A token used for pagination of results returned.
nextToken
- A token used for pagination of results returned.public void setResource(String resource)
The resource that generated the finding.
resource
- The resource that generated the finding.public String getResource()
The resource that generated the finding.
public GetFindingV2Result withResource(String resource)
The resource that generated the finding.
resource
- The resource that generated the finding.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 GetFindingV2Result withResourceType(String resourceType)
The type of the resource identified in the finding.
resourceType
- The type of the resource identified in the finding.ResourceType
public GetFindingV2Result withResourceType(ResourceType resourceType)
The type of the resource identified in the finding.
resourceType
- The type of the resource identified in the finding.ResourceType
public void setResourceOwnerAccount(String resourceOwnerAccount)
Tye Amazon Web Services account ID that owns the resource.
resourceOwnerAccount
- Tye Amazon Web Services account ID that owns the resource.public String getResourceOwnerAccount()
Tye Amazon Web Services account ID that owns the resource.
public GetFindingV2Result withResourceOwnerAccount(String resourceOwnerAccount)
Tye Amazon Web Services account ID that owns the resource.
resourceOwnerAccount
- Tye Amazon Web Services account ID that owns the resource.public void setStatus(String status)
The status of the finding.
status
- The status of the finding.FindingStatus
public String getStatus()
The status of the finding.
FindingStatus
public GetFindingV2Result withStatus(String status)
The status of the finding.
status
- The status of the finding.FindingStatus
public GetFindingV2Result withStatus(FindingStatus status)
The status of the finding.
status
- The status of the finding.FindingStatus
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 GetFindingV2Result withUpdatedAt(Date updatedAt)
The time at which the finding was updated.
updatedAt
- The time at which the finding was updated.public List<FindingDetails> getFindingDetails()
A localized message that explains the finding and provides guidance on how to address it.
public void setFindingDetails(Collection<FindingDetails> findingDetails)
A localized message that explains the finding and provides guidance on how to address it.
findingDetails
- A localized message that explains the finding and provides guidance on how to address it.public GetFindingV2Result withFindingDetails(FindingDetails... findingDetails)
A localized message that explains the finding and provides guidance on how to address it.
NOTE: This method appends the values to the existing list (if any). Use
setFindingDetails(java.util.Collection)
or withFindingDetails(java.util.Collection)
if you want
to override the existing values.
findingDetails
- A localized message that explains the finding and provides guidance on how to address it.public GetFindingV2Result withFindingDetails(Collection<FindingDetails> findingDetails)
A localized message that explains the finding and provides guidance on how to address it.
findingDetails
- A localized message that explains the finding and provides guidance on how to address it.public void setFindingType(String findingType)
The type of the finding. For external access analyzers, the type is ExternalAccess
. For unused
access analyzers, the type can be UnusedIAMRole
, UnusedIAMUserAccessKey
,
UnusedIAMUserPassword
, or UnusedPermission
.
findingType
- The type of the finding. For external access analyzers, the type is ExternalAccess
. For
unused access analyzers, the type can be UnusedIAMRole
, UnusedIAMUserAccessKey
,
UnusedIAMUserPassword
, or UnusedPermission
.FindingType
public String getFindingType()
The type of the finding. For external access analyzers, the type is ExternalAccess
. For unused
access analyzers, the type can be UnusedIAMRole
, UnusedIAMUserAccessKey
,
UnusedIAMUserPassword
, or UnusedPermission
.
ExternalAccess
. For
unused access analyzers, the type can be UnusedIAMRole
, UnusedIAMUserAccessKey
,
UnusedIAMUserPassword
, or UnusedPermission
.FindingType
public GetFindingV2Result withFindingType(String findingType)
The type of the finding. For external access analyzers, the type is ExternalAccess
. For unused
access analyzers, the type can be UnusedIAMRole
, UnusedIAMUserAccessKey
,
UnusedIAMUserPassword
, or UnusedPermission
.
findingType
- The type of the finding. For external access analyzers, the type is ExternalAccess
. For
unused access analyzers, the type can be UnusedIAMRole
, UnusedIAMUserAccessKey
,
UnusedIAMUserPassword
, or UnusedPermission
.FindingType
public GetFindingV2Result withFindingType(FindingType findingType)
The type of the finding. For external access analyzers, the type is ExternalAccess
. For unused
access analyzers, the type can be UnusedIAMRole
, UnusedIAMUserAccessKey
,
UnusedIAMUserPassword
, or UnusedPermission
.
findingType
- The type of the finding. For external access analyzers, the type is ExternalAccess
. For
unused access analyzers, the type can be UnusedIAMRole
, UnusedIAMUserAccessKey
,
UnusedIAMUserPassword
, or UnusedPermission
.FindingType
public String toString()
toString
in class Object
Object.toString()
public GetFindingV2Result clone()