Class NagResult.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • resource

        @Stability(Stable)
        public NagResult.Builder resource​(String resource)
        Sets the value of NagResult.getResource()
        Parameters:
        resource - Resource which triggered the message. This parameter is required.
        Returns:
        this
      • build

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