Class RoleRef.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • apiGroup

        @Stability(Stable)
        public RoleRef.Builder apiGroup​(String apiGroup)
        Sets the value of RoleRef.getApiGroup()
        Parameters:
        apiGroup - APIGroup is the group for the resource being referenced. This parameter is required.
        Returns:
        this
      • kind

        @Stability(Stable)
        public RoleRef.Builder kind​(String kind)
        Sets the value of RoleRef.getKind()
        Parameters:
        kind - Kind is the type of resource being referenced. This parameter is required.
        Returns:
        this
      • name

        @Stability(Stable)
        public RoleRef.Builder name​(String name)
        Sets the value of RoleRef.getName()
        Parameters:
        name - Name is the name of resource being referenced. This parameter is required.
        Returns:
        this
      • build

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