@Stability(value=Experimental) public static final class StaleBehavior.Builder extends Object implements software.amazon.jsii.Builder<StaleBehavior>
StaleBehavior| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
StaleBehavior |
build()
Builds the configured instance.
|
StaleBehavior.Builder |
closeMessage(String closeMessage)
Sets the value of
StaleBehavior.getCloseMessage() |
StaleBehavior.Builder |
daysBeforeClose(Number daysBeforeClose)
Sets the value of
StaleBehavior.getDaysBeforeClose() |
StaleBehavior.Builder |
daysBeforeStale(Number daysBeforeStale)
Sets the value of
StaleBehavior.getDaysBeforeStale() |
StaleBehavior.Builder |
enabled(Boolean enabled)
Sets the value of
StaleBehavior.getEnabled() |
StaleBehavior.Builder |
staleLabel(String staleLabel)
Sets the value of
StaleBehavior.getStaleLabel() |
StaleBehavior.Builder |
staleMessage(String staleMessage)
Sets the value of
StaleBehavior.getStaleMessage() |
@Stability(value=Experimental) public StaleBehavior.Builder closeMessage(String closeMessage)
StaleBehavior.getCloseMessage()closeMessage - The comment to add to the issue/PR when it's closed.this@Stability(value=Experimental) public StaleBehavior.Builder daysBeforeClose(Number daysBeforeClose)
StaleBehavior.getDaysBeforeClose()daysBeforeClose - Days until the issue/PR is closed after it is marked as "Stale".
Set to -1 to disable.this@Stability(value=Experimental) public StaleBehavior.Builder daysBeforeStale(Number daysBeforeStale)
StaleBehavior.getDaysBeforeStale()daysBeforeStale - How many days until the issue or pull request is marked as "Stale".
Set to -1 to disable.this@Stability(value=Experimental) public StaleBehavior.Builder enabled(Boolean enabled)
StaleBehavior.getEnabled()enabled - Determines if this behavior is enabled.
Same as setting daysBeforeStale and daysBeforeClose to -1.this@Stability(value=Experimental) public StaleBehavior.Builder staleLabel(String staleLabel)
StaleBehavior.getStaleLabel()staleLabel - The label to apply to the issue/PR when it becomes stale.this@Stability(value=Experimental) public StaleBehavior.Builder staleMessage(String staleMessage)
StaleBehavior.getStaleMessage()staleMessage - The comment to add to the issue/PR when it becomes stale.this@Stability(value=Experimental) public StaleBehavior build()
build in interface software.amazon.jsii.Builder<StaleBehavior>StaleBehaviorNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.