Package com.launchdarkly.api.model
Class Webhook
- java.lang.Object
-
- com.launchdarkly.api.model.Webhook
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-04-19T22:24:20.163470Z[Etc/UTC]") public class Webhook extends java.lang.ObjectWebhook
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhook.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>openapiFieldsstatic java.util.HashSet<java.lang.String>openapiRequiredFieldsstatic java.lang.StringSERIALIZED_NAME_ACCESSstatic java.lang.StringSERIALIZED_NAME_IDstatic java.lang.StringSERIALIZED_NAME_LINKSstatic java.lang.StringSERIALIZED_NAME_NAMEstatic java.lang.StringSERIALIZED_NAME_ONstatic java.lang.StringSERIALIZED_NAME_SECRETstatic java.lang.StringSERIALIZED_NAME_STATEMENTSstatic java.lang.StringSERIALIZED_NAME_TAGSstatic java.lang.StringSERIALIZED_NAME_URL
-
Constructor Summary
Constructors Constructor Description Webhook()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Webhookaccess(Access access)WebhookaddStatementsItem(Statement statementsItem)WebhookaddTagsItem(java.lang.String tagsItem)booleanequals(java.lang.Object o)static WebhookfromJson(java.lang.String jsonString)Create an instance of Webhook given an JSON stringAccessgetAccess()Get accessjava.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()Return the additional (undeclared) property.java.lang.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.java.lang.StringgetId()The ID of this webhookjava.util.Map<java.lang.String,Link>getLinks()The location and content type of related resourcesjava.lang.StringgetName()A human-readable name for this webhookjava.lang.BooleangetOn()Whether or not this webhook is enabledjava.lang.StringgetSecret()The secret for this webhookjava.util.List<Statement>getStatements()Represents a Custom role policy, defining a resource kinds filter the webhook responds to.java.util.List<java.lang.String>getTags()List of tags for this webhookjava.lang.StringgetUrl()The URL to which LaunchDarkly sends an HTTP POST payload for this webhookinthashCode()Webhookid(java.lang.String id)Webhooklinks(java.util.Map<java.lang.String,Link> links)Webhookname(java.lang.String name)Webhookon(java.lang.Boolean on)WebhookputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.WebhookputLinksItem(java.lang.String key, Link linksItem)Webhooksecret(java.lang.String secret)voidsetAccess(Access access)voidsetId(java.lang.String id)voidsetLinks(java.util.Map<java.lang.String,Link> links)voidsetName(java.lang.String name)voidsetOn(java.lang.Boolean on)voidsetSecret(java.lang.String secret)voidsetStatements(java.util.List<Statement> statements)voidsetTags(java.util.List<java.lang.String> tags)voidsetUrl(java.lang.String url)Webhookstatements(java.util.List<Statement> statements)Webhooktags(java.util.List<java.lang.String> tags)java.lang.StringtoJson()Convert an instance of Webhook to an JSON stringjava.lang.StringtoString()Webhookurl(java.lang.String url)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_LINKS
public static final java.lang.String SERIALIZED_NAME_LINKS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final java.lang.String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NAME
public static final java.lang.String SERIALIZED_NAME_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_URL
public static final java.lang.String SERIALIZED_NAME_URL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SECRET
public static final java.lang.String SERIALIZED_NAME_SECRET
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATEMENTS
public static final java.lang.String SERIALIZED_NAME_STATEMENTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ON
public static final java.lang.String SERIALIZED_NAME_ON
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TAGS
public static final java.lang.String SERIALIZED_NAME_TAGS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACCESS
public static final java.lang.String SERIALIZED_NAME_ACCESS
- See Also:
- Constant Field Values
-
openapiFields
public static java.util.HashSet<java.lang.String> openapiFields
-
openapiRequiredFields
public static java.util.HashSet<java.lang.String> openapiRequiredFields
-
-
Method Detail
-
getLinks
@Nonnull public java.util.Map<java.lang.String,Link> getLinks()
The location and content type of related resources- Returns:
- links
-
setLinks
public void setLinks(java.util.Map<java.lang.String,Link> links)
-
id
public Webhook id(java.lang.String id)
-
getId
@Nonnull public java.lang.String getId()
The ID of this webhook- Returns:
- id
-
setId
public void setId(java.lang.String id)
-
name
public Webhook name(java.lang.String name)
-
getName
@Nullable public java.lang.String getName()
A human-readable name for this webhook- Returns:
- name
-
setName
public void setName(java.lang.String name)
-
url
public Webhook url(java.lang.String url)
-
getUrl
@Nonnull public java.lang.String getUrl()
The URL to which LaunchDarkly sends an HTTP POST payload for this webhook- Returns:
- url
-
setUrl
public void setUrl(java.lang.String url)
-
secret
public Webhook secret(java.lang.String secret)
-
getSecret
@Nullable public java.lang.String getSecret()
The secret for this webhook- Returns:
- secret
-
setSecret
public void setSecret(java.lang.String secret)
-
getStatements
@Nullable public java.util.List<Statement> getStatements()
Represents a Custom role policy, defining a resource kinds filter the webhook responds to.- Returns:
- statements
-
setStatements
public void setStatements(java.util.List<Statement> statements)
-
on
public Webhook on(java.lang.Boolean on)
-
getOn
@Nonnull public java.lang.Boolean getOn()
Whether or not this webhook is enabled- Returns:
- on
-
setOn
public void setOn(java.lang.Boolean on)
-
tags
public Webhook tags(java.util.List<java.lang.String> tags)
-
addTagsItem
public Webhook addTagsItem(java.lang.String tagsItem)
-
getTags
@Nonnull public java.util.List<java.lang.String> getTags()
List of tags for this webhook- Returns:
- tags
-
setTags
public void setTags(java.util.List<java.lang.String> tags)
-
getAccess
@Nullable public Access getAccess()
Get access- Returns:
- access
-
setAccess
public void setAccess(Access access)
-
putAdditionalProperty
public Webhook putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
-
getAdditionalProperties
public java.util.Map<java.lang.String,java.lang.Object> getAdditionalProperties()
Return the additional (undeclared) property.
-
getAdditionalProperty
public java.lang.Object getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
java.io.IOException- if the JSON Object is invalid with respect to Webhook
-
fromJson
public static Webhook fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of Webhook given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Webhook
- Throws:
java.io.IOException- if the JSON string is invalid with respect to Webhook
-
toJson
public java.lang.String toJson()
Convert an instance of Webhook to an JSON string- Returns:
- JSON string
-
-