Class CfnRuntime.AllowedWorkloadConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.bedrockagentcore.CfnRuntime.AllowedWorkloadConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuntime.AllowedWorkloadConfigurationProperty>
- Enclosing interface:
CfnRuntime.AllowedWorkloadConfigurationProperty
@Stability(Stable)
public static final class CfnRuntime.AllowedWorkloadConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuntime.AllowedWorkloadConfigurationProperty>
A builder for
CfnRuntime.AllowedWorkloadConfigurationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.hostingEnvironments(List<? extends Object> hostingEnvironments) Sets the value ofCfnRuntime.AllowedWorkloadConfigurationProperty.getHostingEnvironments()hostingEnvironments(IResolvable hostingEnvironments) Sets the value ofCfnRuntime.AllowedWorkloadConfigurationProperty.getHostingEnvironments()workloadIdentities(List<String> workloadIdentities) Sets the value ofCfnRuntime.AllowedWorkloadConfigurationProperty.getWorkloadIdentities()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostingEnvironments
@Stability(Stable) public CfnRuntime.AllowedWorkloadConfigurationProperty.Builder hostingEnvironments(IResolvable hostingEnvironments) Sets the value ofCfnRuntime.AllowedWorkloadConfigurationProperty.getHostingEnvironments()- Parameters:
hostingEnvironments- List of allow-listed hosting environments.- Returns:
this
-
hostingEnvironments
@Stability(Stable) public CfnRuntime.AllowedWorkloadConfigurationProperty.Builder hostingEnvironments(List<? extends Object> hostingEnvironments) Sets the value ofCfnRuntime.AllowedWorkloadConfigurationProperty.getHostingEnvironments()- Parameters:
hostingEnvironments- List of allow-listed hosting environments.- Returns:
this
-
workloadIdentities
@Stability(Stable) public CfnRuntime.AllowedWorkloadConfigurationProperty.Builder workloadIdentities(List<String> workloadIdentities) Sets the value ofCfnRuntime.AllowedWorkloadConfigurationProperty.getWorkloadIdentities()- Parameters:
workloadIdentities- List of allow-listed workload identity names.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRuntime.AllowedWorkloadConfigurationProperty>- Returns:
- a new instance of
CfnRuntime.AllowedWorkloadConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-