Interface Finding.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Finding.Builder,Finding>,SdkBuilder<Finding.Builder,Finding>,SdkPojo
- Enclosing class:
- Finding
public static interface Finding.Builder extends SdkPojo, CopyableBuilder<Finding.Builder,Finding>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Finding.Builderaction(String... action)The action in the analyzed policy statement that an external principal has permission to use.Finding.Builderaction(Collection<String> action)The action in the analyzed policy statement that an external principal has permission to use.Finding.BuilderanalyzedAt(Instant analyzedAt)The time at which the resource was analyzed.Finding.Buildercondition(Map<String,String> condition)The condition in the analyzed policy statement that resulted in a finding.Finding.BuildercreatedAt(Instant createdAt)The time at which the finding was generated.Finding.Buildererror(String error)An error.Finding.Builderid(String id)The ID of the finding.Finding.BuilderisPublic(Boolean isPublic)Indicates whether the policy that generated the finding allows public access to the resource.Finding.Builderprincipal(Map<String,String> principal)The external principal that access to a resource within the zone of trust.Finding.Builderresource(String resource)The resource that an external principal has access to.Finding.BuilderresourceOwnerAccount(String resourceOwnerAccount)The Amazon Web Services account ID that owns the resource.Finding.BuilderresourceType(String resourceType)The type of the resource identified in the finding.Finding.BuilderresourceType(ResourceType resourceType)The type of the resource identified in the finding.Finding.Buildersources(Collection<FindingSource> sources)The sources of the finding.Finding.Buildersources(Consumer<FindingSource.Builder>... sources)The sources of the finding.Finding.Buildersources(FindingSource... sources)The sources of the finding.Finding.Builderstatus(String status)The current status of the finding.Finding.Builderstatus(FindingStatus status)The current status of the finding.Finding.BuilderupdatedAt(Instant updatedAt)The time at which the finding was updated.-
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
-
-
-
-
Method Detail
-
id
Finding.Builder id(String id)
The ID of the finding.
- Parameters:
id- The ID of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
principal
Finding.Builder principal(Map<String,String> principal)
The external principal that access to a resource within the zone of trust.
- Parameters:
principal- The external principal that access to a resource within the zone of trust.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
Finding.Builder action(Collection<String> action)
The action in the analyzed policy statement that an external principal has permission to use.
- Parameters:
action- The action in the analyzed policy statement that an external principal has permission to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
action
Finding.Builder action(String... action)
The action in the analyzed policy statement that an external principal has permission to use.
- Parameters:
action- The action in the analyzed policy statement that an external principal has permission to use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resource
Finding.Builder resource(String resource)
The resource that an external principal has access to.
- Parameters:
resource- The resource that an external principal has access to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPublic
Finding.Builder isPublic(Boolean isPublic)
Indicates whether the policy that generated the finding allows public access to the resource.
- Parameters:
isPublic- Indicates whether the policy that generated the finding allows public access to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
Finding.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
Finding.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
-
condition
Finding.Builder condition(Map<String,String> condition)
The condition in the analyzed policy statement that resulted in a finding.
- Parameters:
condition- The condition in the analyzed policy statement that resulted in a finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
Finding.Builder createdAt(Instant createdAt)
The time at which the finding was generated.
- Parameters:
createdAt- The time at which the finding was generated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
analyzedAt
Finding.Builder analyzedAt(Instant analyzedAt)
The time at which the resource was analyzed.
- Parameters:
analyzedAt- The time at which the resource was analyzed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
Finding.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.
-
status
Finding.Builder status(String status)
The current status of the finding.
- Parameters:
status- The current status of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FindingStatus,FindingStatus
-
status
Finding.Builder status(FindingStatus status)
The current status of the finding.
- Parameters:
status- The current status of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FindingStatus,FindingStatus
-
resourceOwnerAccount
Finding.Builder resourceOwnerAccount(String resourceOwnerAccount)
The Amazon Web Services account ID that owns the resource.
- Parameters:
resourceOwnerAccount- The Amazon Web Services account ID that owns the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
Finding.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.
-
sources
Finding.Builder sources(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
Finding.Builder sources(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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
Finding.Builder sources(Consumer<FindingSource.Builder>... 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.
This is a convenience method that creates an instance of theFindingSource.Builderavoiding the need to create one manually viaFindingSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#sources(List.) - Parameters:
sources- a consumer that will call methods onFindingSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#sources(java.util.Collection)
-
-