Interface SupplyChainPolicyException.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SupplyChainPolicyException.Builder,,SupplyChainPolicyException> SdkBuilder<SupplyChainPolicyException.Builder,,SupplyChainPolicyException> SdkPojo
- Enclosing class:
SupplyChainPolicyException
-
Method Summary
Modifier and TypeMethodDescriptionMust be in the future and no later than 365 days after the exception was originally created.justification(String justification) Why the exception is needed.Customer-chosen display name.packageValue(Consumer<PackageIdentity.Builder> packageValue) The package that the exception applies to.packageValue(PackageIdentity packageValue) The package that the exception applies to.The ARN of the policy that the exception applies to, either a customer-managed or a service-managed policy in the same account and Region.The IDs of the rules in that policy to suppress.ruleIds(Collection<String> ruleIds) The IDs of the rules in that policy to suppress.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
-
name
Customer-chosen display name.
- Parameters:
name- Customer-chosen display name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyArn
The ARN of the policy that the exception applies to, either a customer-managed or a service-managed policy in the same account and Region.
- Parameters:
policyArn- The ARN of the policy that the exception applies to, either a customer-managed or a service-managed policy in the same account and Region.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleIds
The IDs of the rules in that policy to suppress.
- Parameters:
ruleIds- The IDs of the rules in that policy to suppress.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleIds
The IDs of the rules in that policy to suppress.
- Parameters:
ruleIds- The IDs of the rules in that policy to suppress.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageValue
The package that the exception applies to. Rules are suppressed only for packages that match this identity.
- Parameters:
packageValue- The package that the exception applies to. Rules are suppressed only for packages that match this identity.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
packageValue
default SupplyChainPolicyException.Builder packageValue(Consumer<PackageIdentity.Builder> packageValue) The package that the exception applies to. Rules are suppressed only for packages that match this identity.
This is a convenience method that creates an instance of thePackageIdentity.Builderavoiding the need to create one manually viaPackageIdentity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topackageValue(PackageIdentity).- Parameters:
packageValue- a consumer that will call methods onPackageIdentity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
justification
Why the exception is needed.
- Parameters:
justification- Why the exception is needed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
expiresAt
Must be in the future and no later than 365 days after the exception was originally created.
- Parameters:
expiresAt- Must be in the future and no later than 365 days after the exception was originally created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-