Interface GetRecommendedPolicyV2Response.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetRecommendedPolicyV2Response.Builder,,GetRecommendedPolicyV2Response> SdkBuilder<GetRecommendedPolicyV2Response.Builder,,GetRecommendedPolicyV2Response> SdkPojo,SdkResponse.Builder,SecurityHubResponse.Builder
- Enclosing class:
GetRecommendedPolicyV2Response
-
Method Summary
Modifier and TypeMethodDescriptionerror(Consumer<RecommendationError.Builder> error) Detailed information for aFAILEDretrieval status.error(RecommendationError error) Detailed information for aFAILEDretrieval status.The pagination token to use to request the next page of results.recommendationSteps(Collection<RecommendationStep> recommendationSteps) The recommended steps to take to resolve the finding.recommendationSteps(Consumer<RecommendationStep.Builder>... recommendationSteps) The recommended steps to take to resolve the finding.recommendationSteps(RecommendationStep... recommendationSteps) The recommended steps to take to resolve the finding.recommendationType(String recommendationType) The type of recommendation for the finding.recommendationType(RecommendationType recommendationType) The type of recommendation for the finding.resourceArn(String resourceArn) The ARN of the resource of the finding.The current status of the recommended policy retrieval.status(RecommendationStatus status) The current status of the recommended policy retrieval.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.securityhub.model.SecurityHubResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
nextToken
The pagination token to use to request the next page of results.
- Parameters:
nextToken- The pagination token to use to request the next page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationType
The type of recommendation for the finding.
- Parameters:
recommendationType- The type of recommendation for the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recommendationType
The type of recommendation for the finding.
- Parameters:
recommendationType- The type of recommendation for the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
recommendationSteps
GetRecommendedPolicyV2Response.Builder recommendationSteps(Collection<RecommendationStep> recommendationSteps) The recommended steps to take to resolve the finding.
- Parameters:
recommendationSteps- The recommended steps to take to resolve the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationSteps
GetRecommendedPolicyV2Response.Builder recommendationSteps(RecommendationStep... recommendationSteps) The recommended steps to take to resolve the finding.
- Parameters:
recommendationSteps- The recommended steps to take to resolve the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
recommendationSteps
GetRecommendedPolicyV2Response.Builder recommendationSteps(Consumer<RecommendationStep.Builder>... recommendationSteps) The recommended steps to take to resolve the finding.
This is a convenience method that creates an instance of theRecommendationStep.Builderavoiding the need to create one manually viaRecommendationStep.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torecommendationSteps(List<RecommendationStep>).- Parameters:
recommendationSteps- a consumer that will call methods onRecommendationStep.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
error
Detailed information for a
FAILEDretrieval status.- Parameters:
error- Detailed information for aFAILEDretrieval status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
error
Detailed information for a
This is a convenience method that creates an instance of theFAILEDretrieval status.RecommendationError.Builderavoiding the need to create one manually viaRecommendationError.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toerror(RecommendationError).- Parameters:
error- a consumer that will call methods onRecommendationError.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the recommended policy retrieval.
- Parameters:
status- The current status of the recommended policy retrieval.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the recommended policy retrieval.
- Parameters:
status- The current status of the recommended policy retrieval.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceArn
The ARN of the resource of the finding.
- Parameters:
resourceArn- The ARN of the resource of the finding.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-