Interface PolicyGenerationAsset.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PolicyGenerationAsset.Builder,,PolicyGenerationAsset> SdkBuilder<PolicyGenerationAsset.Builder,,PolicyGenerationAsset> SdkPojo
- Enclosing class:
PolicyGenerationAsset
-
Method Summary
Modifier and TypeMethodDescriptiondefault PolicyGenerationAsset.Builderdefinition(Consumer<PolicyDefinition.Builder> definition) Sets the value of the Definition property for this object.definition(PolicyDefinition definition) Sets the value of the Definition property for this object.findings(Collection<Finding> findings) Analysis findings and insights related to this specific generated policy asset.findings(Consumer<Finding.Builder>... findings) Analysis findings and insights related to this specific generated policy asset.Analysis findings and insights related to this specific generated policy asset.policyGenerationAssetId(String policyGenerationAssetId) The unique identifier for this generated policy asset within the policy generation request.rawTextFragment(String rawTextFragment) The portion of the original natural language input that this generated policy asset addresses.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, sdkFields
-
Method Details
-
policyGenerationAssetId
The unique identifier for this generated policy asset within the policy generation request. This ID can be used to reference specific generated policy options when creating actual policies from the generation results.
- Parameters:
policyGenerationAssetId- The unique identifier for this generated policy asset within the policy generation request. This ID can be used to reference specific generated policy options when creating actual policies from the generation results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
Sets the value of the Definition property for this object.- Parameters:
definition- The new value for the Definition property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
Sets the value of the Definition property for this object. This is a convenience method that creates an instance of thePolicyDefinition.Builderavoiding the need to create one manually viaPolicyDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefinition(PolicyDefinition).- Parameters:
definition- a consumer that will call methods onPolicyDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rawTextFragment
The portion of the original natural language input that this generated policy asset addresses. This helps users understand which part of their policy description was translated into this specific Cedar policy statement, enabling better policy selection and refinement. When a single natural language input describes multiple authorization requirements, the generation process creates separate policy assets for each requirement, with each asset's rawTextFragment showing which requirement it addresses. Use this mapping to verify that all parts of your natural language input were correctly translated into Cedar policies.
- Parameters:
rawTextFragment- The portion of the original natural language input that this generated policy asset addresses. This helps users understand which part of their policy description was translated into this specific Cedar policy statement, enabling better policy selection and refinement. When a single natural language input describes multiple authorization requirements, the generation process creates separate policy assets for each requirement, with each asset's rawTextFragment showing which requirement it addresses. Use this mapping to verify that all parts of your natural language input were correctly translated into Cedar policies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findings
Analysis findings and insights related to this specific generated policy asset. These findings may include validation results, potential issues, or recommendations for improvement to help users evaluate the quality and appropriateness of the generated policy.
- Parameters:
findings- Analysis findings and insights related to this specific generated policy asset. These findings may include validation results, potential issues, or recommendations for improvement to help users evaluate the quality and appropriateness of the generated policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findings
Analysis findings and insights related to this specific generated policy asset. These findings may include validation results, potential issues, or recommendations for improvement to help users evaluate the quality and appropriateness of the generated policy.
- Parameters:
findings- Analysis findings and insights related to this specific generated policy asset. These findings may include validation results, potential issues, or recommendations for improvement to help users evaluate the quality and appropriateness of the generated policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
findings
Analysis findings and insights related to this specific generated policy asset. These findings may include validation results, potential issues, or recommendations for improvement to help users evaluate the quality and appropriateness of the generated policy.
This is a convenience method that creates an instance of theFinding.Builderavoiding the need to create one manually viaFinding.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofindings(List<Finding>).- Parameters:
findings- a consumer that will call methods onFinding.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-