Interface GetFindingV2Response.Builder
-
- All Superinterfaces:
AccessAnalyzerResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<GetFindingV2Response.Builder,GetFindingV2Response>,SdkBuilder<GetFindingV2Response.Builder,GetFindingV2Response>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetFindingV2Response
public static interface GetFindingV2Response.Builder extends AccessAnalyzerResponse.Builder, SdkPojo, CopyableBuilder<GetFindingV2Response.Builder,GetFindingV2Response>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetFindingV2Response.BuilderanalyzedAt(Instant analyzedAt)The time at which the resource-based policy or IAM entity that generated the finding was analyzed.GetFindingV2Response.BuildercreatedAt(Instant createdAt)The time at which the finding was created.GetFindingV2Response.Buildererror(String error)An error.GetFindingV2Response.BuilderfindingDetails(Collection<FindingDetails> findingDetails)A localized message that explains the finding and provides guidance on how to address it.GetFindingV2Response.BuilderfindingDetails(Consumer<FindingDetails.Builder>... findingDetails)A localized message that explains the finding and provides guidance on how to address it.GetFindingV2Response.BuilderfindingDetails(FindingDetails... findingDetails)A localized message that explains the finding and provides guidance on how to address it.GetFindingV2Response.BuilderfindingType(String findingType)The type of the finding.GetFindingV2Response.BuilderfindingType(FindingType findingType)The type of the finding.GetFindingV2Response.Builderid(String id)The ID of the finding to retrieve.GetFindingV2Response.BuildernextToken(String nextToken)A token used for pagination of results returned.GetFindingV2Response.Builderresource(String resource)The resource that generated the finding.GetFindingV2Response.BuilderresourceOwnerAccount(String resourceOwnerAccount)Tye Amazon Web Services account ID that owns the resource.GetFindingV2Response.BuilderresourceType(String resourceType)The type of the resource identified in the finding.GetFindingV2Response.BuilderresourceType(ResourceType resourceType)The type of the resource identified in the finding.GetFindingV2Response.Builderstatus(String status)The status of the finding.GetFindingV2Response.Builderstatus(FindingStatus status)The status of the finding.GetFindingV2Response.BuilderupdatedAt(Instant updatedAt)The time at which the finding was updated.-
Methods inherited from interface software.amazon.awssdk.services.accessanalyzer.model.AccessAnalyzerResponse.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
analyzedAt
GetFindingV2Response.Builder analyzedAt(Instant analyzedAt)
The time at which the resource-based policy or IAM entity that generated the finding was analyzed.
- Parameters:
analyzedAt- The time at which the resource-based policy or IAM entity that generated the finding was analyzed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
GetFindingV2Response.Builder createdAt(Instant createdAt)
The time at which the finding was created.
- Parameters:
createdAt- The time at which the finding was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
GetFindingV2Response.Builder error(String error)
An error.
- Parameters:
error- An error.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
id
GetFindingV2Response.Builder id(String id)
The ID of the finding to retrieve.
- Parameters:
id- The ID of the finding to retrieve.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
GetFindingV2Response.Builder nextToken(String nextToken)
A token used for pagination of results returned.
- Parameters:
nextToken- A token used for pagination of results returned.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
GetFindingV2Response.Builder resource(String resource)
The resource that generated the finding.
- Parameters:
resource- The resource that generated the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
GetFindingV2Response.Builder resourceType(String resourceType)
The type of the resource identified in the finding.
- Parameters:
resourceType- The type of the resource identified in the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
resourceType
GetFindingV2Response.Builder resourceType(ResourceType resourceType)
The type of the resource identified in the finding.
- Parameters:
resourceType- The type of the resource identified in the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
resourceOwnerAccount
GetFindingV2Response.Builder resourceOwnerAccount(String resourceOwnerAccount)
Tye Amazon Web Services account ID that owns the resource.
- Parameters:
resourceOwnerAccount- Tye Amazon Web Services account ID that owns the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
GetFindingV2Response.Builder status(String status)
The status of the finding.
- Parameters:
status- The status of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FindingStatus,FindingStatus
-
status
GetFindingV2Response.Builder status(FindingStatus status)
The status of the finding.
- Parameters:
status- The status of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FindingStatus,FindingStatus
-
updatedAt
GetFindingV2Response.Builder updatedAt(Instant updatedAt)
The time at which the finding was updated.
- Parameters:
updatedAt- The time at which the finding was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findingDetails
GetFindingV2Response.Builder findingDetails(Collection<FindingDetails> findingDetails)
A localized message that explains the finding and provides guidance on how to address it.
- Parameters:
findingDetails- A localized message that explains the finding and provides guidance on how to address it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findingDetails
GetFindingV2Response.Builder findingDetails(FindingDetails... findingDetails)
A localized message that explains the finding and provides guidance on how to address it.
- Parameters:
findingDetails- A localized message that explains the finding and provides guidance on how to address it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findingDetails
GetFindingV2Response.Builder findingDetails(Consumer<FindingDetails.Builder>... findingDetails)
A localized message that explains the finding and provides guidance on how to address it.
This is a convenience method that creates an instance of theFindingDetails.Builderavoiding the need to create one manually viaFindingDetails.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#findingDetails(List.) - Parameters:
findingDetails- a consumer that will call methods onFindingDetails.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#findingDetails(java.util.Collection)
-
findingType
GetFindingV2Response.Builder findingType(String findingType)
The type of the finding. For external access analyzers, the type is
ExternalAccess. For unused access analyzers, the type can beUnusedIAMRole,UnusedIAMUserAccessKey,UnusedIAMUserPassword, orUnusedPermission.- Parameters:
findingType- The type of the finding. For external access analyzers, the type isExternalAccess. For unused access analyzers, the type can beUnusedIAMRole,UnusedIAMUserAccessKey,UnusedIAMUserPassword, orUnusedPermission.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FindingType,FindingType
-
findingType
GetFindingV2Response.Builder findingType(FindingType findingType)
The type of the finding. For external access analyzers, the type is
ExternalAccess. For unused access analyzers, the type can beUnusedIAMRole,UnusedIAMUserAccessKey,UnusedIAMUserPassword, orUnusedPermission.- Parameters:
findingType- The type of the finding. For external access analyzers, the type isExternalAccess. For unused access analyzers, the type can beUnusedIAMRole,UnusedIAMUserAccessKey,UnusedIAMUserPassword, orUnusedPermission.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FindingType,FindingType
-
-