Interface AnalyzedResource.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AnalyzedResource.Builder,AnalyzedResource>,SdkBuilder<AnalyzedResource.Builder,AnalyzedResource>,SdkPojo
- Enclosing class:
- AnalyzedResource
public static interface AnalyzedResource.Builder extends SdkPojo, CopyableBuilder<AnalyzedResource.Builder,AnalyzedResource>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AnalyzedResource.Builderactions(String... actions)The actions that an external principal is granted permission to use by the policy that generated the finding.AnalyzedResource.Builderactions(Collection<String> actions)The actions that an external principal is granted permission to use by the policy that generated the finding.AnalyzedResource.BuilderanalyzedAt(Instant analyzedAt)The time at which the resource was analyzed.AnalyzedResource.BuildercreatedAt(Instant createdAt)The time at which the finding was created.AnalyzedResource.Buildererror(String error)An error message.AnalyzedResource.BuilderisPublic(Boolean isPublic)Indicates whether the policy that generated the finding grants public access to the resource.AnalyzedResource.BuilderresourceArn(String resourceArn)The ARN of the resource that was analyzed.AnalyzedResource.BuilderresourceOwnerAccount(String resourceOwnerAccount)The Amazon Web Services account ID that owns the resource.AnalyzedResource.BuilderresourceType(String resourceType)The type of the resource that was analyzed.AnalyzedResource.BuilderresourceType(ResourceType resourceType)The type of the resource that was analyzed.AnalyzedResource.BuildersharedVia(String... sharedVia)Indicates how the access that generated the finding is granted.AnalyzedResource.BuildersharedVia(Collection<String> sharedVia)Indicates how the access that generated the finding is granted.AnalyzedResource.Builderstatus(String status)The current status of the finding generated from the analyzed resource.AnalyzedResource.Builderstatus(FindingStatus status)The current status of the finding generated from the analyzed resource.AnalyzedResource.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
-
resourceArn
AnalyzedResource.Builder resourceArn(String resourceArn)
The ARN of the resource that was analyzed.
- Parameters:
resourceArn- The ARN of the resource that was analyzed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceType
AnalyzedResource.Builder resourceType(String resourceType)
The type of the resource that was analyzed.
- Parameters:
resourceType- The type of the resource that was analyzed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
resourceType
AnalyzedResource.Builder resourceType(ResourceType resourceType)
The type of the resource that was analyzed.
- Parameters:
resourceType- The type of the resource that was analyzed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ResourceType,ResourceType
-
createdAt
AnalyzedResource.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
AnalyzedResource.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
AnalyzedResource.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.
-
isPublic
AnalyzedResource.Builder isPublic(Boolean isPublic)
Indicates whether the policy that generated the finding grants public access to the resource.
- Parameters:
isPublic- Indicates whether the policy that generated the finding grants public access to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
AnalyzedResource.Builder actions(Collection<String> actions)
The actions that an external principal is granted permission to use by the policy that generated the finding.
- Parameters:
actions- The actions that an external principal is granted permission to use by the policy that generated the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
AnalyzedResource.Builder actions(String... actions)
The actions that an external principal is granted permission to use by the policy that generated the finding.
- Parameters:
actions- The actions that an external principal is granted permission to use by the policy that generated the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sharedVia
AnalyzedResource.Builder sharedVia(Collection<String> sharedVia)
Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
- Parameters:
sharedVia- Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sharedVia
AnalyzedResource.Builder sharedVia(String... sharedVia)
Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.
- Parameters:
sharedVia- Indicates how the access that generated the finding is granted. This is populated for Amazon S3 bucket findings.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
AnalyzedResource.Builder status(String status)
The current status of the finding generated from the analyzed resource.
- Parameters:
status- The current status of the finding generated from the analyzed resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FindingStatus,FindingStatus
-
status
AnalyzedResource.Builder status(FindingStatus status)
The current status of the finding generated from the analyzed resource.
- Parameters:
status- The current status of the finding generated from the analyzed resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
FindingStatus,FindingStatus
-
resourceOwnerAccount
AnalyzedResource.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
AnalyzedResource.Builder error(String error)
An error message.
- Parameters:
error- An error message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-