Class KubeRole.Builder

  • All Implemented Interfaces:
    software.amazon.jsii.Builder<KubeRole>
    Enclosing class:
    KubeRole

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

      • create

        @Stability(Stable)
        public static KubeRole.Builder create​(software.constructs.Construct scope,
                                              String id)
        Parameters:
        scope - the scope in which to define this object. This parameter is required.
        id - a scope-local name for the object. This parameter is required.
        Returns:
        a new instance of KubeRole.Builder.
      • metadata

        @Stability(Stable)
        public KubeRole.Builder metadata​(ObjectMeta metadata)
        Standard object's metadata.

        Parameters:
        metadata - Standard object's metadata. This parameter is required.
        Returns:
        this
      • rules

        @Stability(Stable)
        public KubeRole.Builder rules​(List<? extends PolicyRule> rules)
        Rules holds all the PolicyRules for this Role.

        Parameters:
        rules - Rules holds all the PolicyRules for this Role. This parameter is required.
        Returns:
        this
      • build

        @Stability(Stable)
        public KubeRole build()
        Specified by:
        build in interface software.amazon.jsii.Builder<KubeRole>
        Returns:
        a newly built instance of KubeRole.