Class CfnContainer.EcrImagePullerRoleProperty.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.CfnContainer.EcrImagePullerRoleProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnContainer.EcrImagePullerRoleProperty>
- Enclosing interface:
CfnContainer.EcrImagePullerRoleProperty
@Stability(Stable)
public static final class CfnContainer.EcrImagePullerRoleProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnContainer.EcrImagePullerRoleProperty>
A builder for
CfnContainer.EcrImagePullerRoleProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnContainer.EcrImagePullerRoleProperty.getIsActive()isActive(IResolvable isActive) Sets the value ofCfnContainer.EcrImagePullerRoleProperty.getIsActive()principalArn(String principalArn) Sets the value ofCfnContainer.EcrImagePullerRoleProperty.getPrincipalArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
isActive
@Stability(Stable) public CfnContainer.EcrImagePullerRoleProperty.Builder isActive(Boolean isActive) Sets the value ofCfnContainer.EcrImagePullerRoleProperty.getIsActive()- Parameters:
isActive- A boolean value that indicates whether theECRImagePullerRoleis active.- Returns:
this
-
isActive
@Stability(Stable) public CfnContainer.EcrImagePullerRoleProperty.Builder isActive(IResolvable isActive) Sets the value ofCfnContainer.EcrImagePullerRoleProperty.getIsActive()- Parameters:
isActive- A boolean value that indicates whether theECRImagePullerRoleis active.- Returns:
this
-
principalArn
@Stability(Stable) public CfnContainer.EcrImagePullerRoleProperty.Builder principalArn(String principalArn) Sets the value ofCfnContainer.EcrImagePullerRoleProperty.getPrincipalArn()- Parameters:
principalArn- The principle Amazon Resource Name (ARN) of the role. This property is read-only.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnContainer.EcrImagePullerRoleProperty>- Returns:
- a new instance of
CfnContainer.EcrImagePullerRoleProperty - Throws:
NullPointerException- if any required attribute was not provided
-