Interface FindingSummary.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<FindingSummary.Builder,FindingSummary>,SdkBuilder<FindingSummary.Builder,FindingSummary>,SdkPojo
- Enclosing class:
- FindingSummary
public static interface FindingSummary.Builder extends SdkPojo, CopyableBuilder<FindingSummary.Builder,FindingSummary>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FindingSummary.Builderaction(String... action)The action in the analyzed policy statement that an external principal has permission to use.FindingSummary.Builderaction(Collection<String> action)The action in the analyzed policy statement that an external principal has permission to use.FindingSummary.BuilderanalyzedAt(Instant analyzedAt)The time at which the resource-based policy that generated the finding was analyzed.FindingSummary.Buildercondition(Map<String,String> condition)The condition in the analyzed policy statement that resulted in a finding.FindingSummary.BuildercreatedAt(Instant createdAt)The time at which the finding was created.FindingSummary.Buildererror(String error)The error that resulted in an Error finding.FindingSummary.Builderid(String id)The ID of the finding.FindingSummary.BuilderisPublic(Boolean isPublic)Indicates whether the finding reports a resource that has a policy that allows public access.FindingSummary.Builderprincipal(Map<String,String> principal)The external principal that has access to a resource within the zone of trust.FindingSummary.Builderresource(String resource)The resource that the external principal has access to.FindingSummary.BuilderresourceOwnerAccount(String resourceOwnerAccount)The Amazon Web Services account ID that owns the resource.FindingSummary.BuilderresourceType(String resourceType)The type of the resource that the external principal has access to.FindingSummary.BuilderresourceType(ResourceType resourceType)The type of the resource that the external principal has access to.FindingSummary.Buildersources(Collection<FindingSource> sources)The sources of the finding.FindingSummary.Buildersources(Consumer<FindingSource.Builder>... sources)The sources of the finding.FindingSummary.Buildersources(FindingSource... sources)The sources of the finding.FindingSummary.Builderstatus(String status)The status of the finding.FindingSummary.Builderstatus(FindingStatus status)The status of the finding.FindingSummary.BuilderupdatedAt(Instant updatedAt)The time at which the finding was most recently 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
FindingSummary.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
FindingSummary.Builder principal(Map<String,String> principal)
The external principal that has access to a resource within the zone of trust.
- Parameters:
principal- The external principal that has 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
FindingSummary.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
FindingSummary.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
FindingSummary.Builder resource(String resource)
The resource that the external principal has access to.
- Parameters:
resource- The resource that the external principal has access to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPublic
FindingSummary.Builder isPublic(Boolean isPublic)
Indicates whether the finding reports a resource that has a policy that allows public access.
- Parameters:
isPublic- Indicates whether the finding reports a resource that has a policy that allows public access.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
FindingSummary.Builder resourceType(String resourceType)
The type of the resource that the external principal has access to.
- Parameters:
resourceType- The type of the resource that the external principal has access to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
resourceType
FindingSummary.Builder resourceType(ResourceType resourceType)
The type of the resource that the external principal has access to.
- Parameters:
resourceType- The type of the resource that the external principal has access to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
condition
FindingSummary.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
FindingSummary.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.
-
analyzedAt
FindingSummary.Builder analyzedAt(Instant analyzedAt)
The time at which the resource-based policy that generated the finding was analyzed.
- Parameters:
analyzedAt- The time at which the resource-based policy that generated the finding was analyzed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
FindingSummary.Builder updatedAt(Instant updatedAt)
The time at which the finding was most recently updated.
- Parameters:
updatedAt- The time at which the finding was most recently updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
FindingSummary.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
FindingSummary.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
-
resourceOwnerAccount
FindingSummary.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
FindingSummary.Builder error(String error)
The error that resulted in an Error finding.
- Parameters:
error- The error that resulted in an Error finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sources
FindingSummary.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
FindingSummary.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
FindingSummary.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)
-
-