public static final class Resolution.Builder extends Object
Constructor and Description |
---|
Builder(String incidentKey)
Build data to resolve an incident with the specified
incidentKey . |
Modifier and Type | Method and Description |
---|---|
Resolution.Builder |
addDetails(Map<String,String> details)
Arbitrary name-value pairs which will be included in incident the log.
|
Resolution.Builder |
addDetails(String name,
String value)
An arbitrary name-value pair which will be included in incident the log.
|
Resolution |
build() |
Resolution.Builder |
withDescription(String description)
Text that will appear in the incident's log associated with this event.
|
public Builder(String incidentKey)
incidentKey
.incidentKey
- Identifies the incident to resolve. This should be the incident_key you
received back when the incident was first opened by a trigger event. Resolve events
referencing resolved or nonexistent incidents will be discarded.public Resolution.Builder withDescription(String description)
public Resolution.Builder addDetails(String name, String value)
public Resolution.Builder addDetails(Map<String,String> details)
public Resolution build()
Copyright © 2014 Square, Inc.. All Rights Reserved.