Class PushOptions.Builder

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

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

      • Builder

        public Builder()
    • Method Detail

      • branches

        @Stability(Experimental)
        public PushOptions.Builder branches​(List<String> branches)
        Sets the value of PushOptions.getBranches()
        Parameters:
        branches - When using the push, pull_request and pull_request_target events, you can configure a workflow to run on specific branches or tags. For a pull_request event, only branches and tags on the base are evaluated. If you define only tags or only branches, the workflow won't run for events affecting the undefined Git ref.
        Returns:
        this
      • paths

        @Stability(Experimental)
        public PushOptions.Builder paths​(List<String> paths)
        Sets the value of PushOptions.getPaths()
        Parameters:
        paths - When using the push, pull_request and pull_request_target events, you can configure a workflow to run when at least one file does not match paths-ignore or at least one modified file matches the configured paths. Path filters are not evaluated for pushes to tags.
        Returns:
        this
      • tags

        @Stability(Experimental)
        public PushOptions.Builder tags​(List<String> tags)
        Sets the value of PushOptions.getTags()
        Parameters:
        tags - When using the push, pull_request and pull_request_target events, you can configure a workflow to run on specific branches or tags. For a pull_request event, only branches and tags on the base are evaluated. If you define only tags or only branches, the workflow won't run for events affecting the undefined Git ref.
        Returns:
        this
      • build

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