Class KubeNode.Builder

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

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

      • create

        @Stability(Stable)
        public static KubeNode.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 KubeNode.Builder.
      • metadata

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

        More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

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

        @Stability(Stable)
        public KubeNode.Builder spec​(NodeSpec spec)
        Spec defines the behavior of a node.

        https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status

        Parameters:
        spec - Spec defines the behavior of a node. This parameter is required.
        Returns:
        this
      • build

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