Class RoleProps.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<RoleProps>
    Enclosing interface:
    RoleProps

    @Stability(Stable)
    public static final class RoleProps.Builder
    extends Object
    implements software.amazon.jsii.Builder<RoleProps>
    A builder for RoleProps
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • metadata

        @Stability(Stable)
        public RoleProps.Builder metadata​(org.cdk8s.ApiObjectMetadata metadata)
        Sets the value of ResourceProps.getMetadata()
        Parameters:
        metadata - Metadata that all persisted resources must have, which includes all objects users must create.
        Returns:
        this
      • build

        @Stability(Stable)
        public RoleProps build()
        Builds the configured instance.
        Specified by:
        build in interface software.amazon.jsii.Builder<RoleProps>
        Returns:
        a new instance of RoleProps
        Throws:
        NullPointerException - if any required attribute was not provided