@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class WebhooksIntegration extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_CUSTOM_HEADERS |
static String |
JSON_PROPERTY_ENCODE_AS |
static String |
JSON_PROPERTY_NAME |
static String |
JSON_PROPERTY_PAYLOAD |
static String |
JSON_PROPERTY_URL |
boolean |
unparsed |
| Constructor and Description |
|---|
WebhooksIntegration() |
WebhooksIntegration(String name,
String url) |
| Modifier and Type | Method and Description |
|---|---|
WebhooksIntegration |
customHeaders(String customHeaders) |
WebhooksIntegration |
encodeAs(WebhooksIntegrationEncoding encodeAs) |
boolean |
equals(Object o)
Return true if this WebhooksIntegration object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
org.openapitools.jackson.nullable.JsonNullable<String> |
getCustomHeaders_JsonNullable() |
String |
getCustomHeaders()
If
null, uses no header. |
WebhooksIntegrationEncoding |
getEncodeAs()
Encoding type.
|
String |
getName()
The name of the webhook.
|
org.openapitools.jackson.nullable.JsonNullable<String> |
getPayload_JsonNullable() |
String |
getPayload()
If
null, uses the default payload. |
String |
getUrl()
URL of the webhook.
|
int |
hashCode() |
WebhooksIntegration |
name(String name) |
WebhooksIntegration |
payload(String payload) |
WebhooksIntegration |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
void |
setCustomHeaders_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> customHeaders) |
void |
setCustomHeaders(String customHeaders) |
void |
setEncodeAs(WebhooksIntegrationEncoding encodeAs) |
void |
setName(String name) |
void |
setPayload_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> payload) |
void |
setPayload(String payload) |
void |
setUrl(String url) |
String |
toString() |
WebhooksIntegration |
url(String url) |
public boolean unparsed
public static final String JSON_PROPERTY_CUSTOM_HEADERS
public static final String JSON_PROPERTY_ENCODE_AS
public static final String JSON_PROPERTY_NAME
public static final String JSON_PROPERTY_PAYLOAD
public static final String JSON_PROPERTY_URL
public WebhooksIntegration customHeaders(String customHeaders)
@Nullable public String getCustomHeaders()
null, uses no header. If given a JSON payload, these will be headers attached
to your webhook.public org.openapitools.jackson.nullable.JsonNullable<String> getCustomHeaders_JsonNullable()
public void setCustomHeaders_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> customHeaders)
public void setCustomHeaders(String customHeaders)
public WebhooksIntegration encodeAs(WebhooksIntegrationEncoding encodeAs)
@Nullable public WebhooksIntegrationEncoding getEncodeAs()
json or form.public void setEncodeAs(WebhooksIntegrationEncoding encodeAs)
public WebhooksIntegration name(String name)
public String getName()
<WEBHOOK_NAME>. Learn more on
how to use it in monitor
notifications.public void setName(String name)
public WebhooksIntegration payload(String payload)
@Nullable public String getPayload()
null, uses the default payload. If given a JSON payload, the webhook returns
the payload specified by the given payload. Webhooks variable usage.public org.openapitools.jackson.nullable.JsonNullable<String> getPayload_JsonNullable()
public void setPayload_JsonNullable(org.openapitools.jackson.nullable.JsonNullable<String> payload)
public void setPayload(String payload)
public WebhooksIntegration url(String url)
public String getUrl()
public void setUrl(String url)
public WebhooksIntegration putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2024. All rights reserved.