com.github.dikhan.pagerduty.client.events.domain.LinkContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pagerduty-client Show documentation
Show all versions of pagerduty-client Show documentation
Simple Java PagerDuty client with full integration with PagerDuty Events APIs
package com.github.dikhan.pagerduty.client.events.domain;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* This link context is used to attach text links to the incident
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LinkContext {
@JsonProperty("href")
private final String href;
@JsonProperty("text")
private final String text;
/**
* @param href URL of the link to be attached.
* @param text Plain text that describes the purpose of the link, and can be used as the link's text.
*/
@JsonCreator
public LinkContext(String href, String text) {
this.href = href;
this.text = text;
}
public String getHref() {
return href;
}
public String getText() {
return text;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy