Package com.launchdarkly.api.model
Class Webhook
- java.lang.Object
-
- com.launchdarkly.api.model.Webhook
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2022-07-11T22:46:03.646077Z[Etc/UTC]") public class Webhook extends java.lang.Object
Webhook
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Webhook.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>
openapiFields
static java.util.HashSet<java.lang.String>
openapiRequiredFields
static java.lang.String
SERIALIZED_NAME_ACCESS
static java.lang.String
SERIALIZED_NAME_ID
static java.lang.String
SERIALIZED_NAME_LINKS
static java.lang.String
SERIALIZED_NAME_NAME
static java.lang.String
SERIALIZED_NAME_ON
static java.lang.String
SERIALIZED_NAME_SECRET
static java.lang.String
SERIALIZED_NAME_STATEMENTS
static java.lang.String
SERIALIZED_NAME_TAGS
static java.lang.String
SERIALIZED_NAME_URL
-
Constructor Summary
Constructors Constructor Description Webhook()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Webhook
access(Access access)
Webhook
addStatementsItem(Statement statementsItem)
Webhook
addTagsItem(java.lang.String tagsItem)
boolean
equals(java.lang.Object o)
static Webhook
fromJson(java.lang.String jsonString)
Create an instance of Webhook given an JSON stringAccess
getAccess()
Get accessjava.util.Map<java.lang.String,java.lang.Object>
getAdditionalProperties()
Return the additional (undeclared) property.java.lang.Object
getAdditionalProperty(java.lang.String key)
Return the additional (undeclared) property with the specified name.java.lang.String
getId()
The ID of this webhookjava.util.Map<java.lang.String,Link>
getLinks()
Links to other resources within the API.java.lang.String
getName()
A human-readable name for this webhookjava.lang.Boolean
getOn()
Whether or not this webhook is enabledjava.lang.String
getSecret()
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.String
getUrl()
The URL to which LaunchDarkly sends an HTTP POST payload for this webhookint
hashCode()
Webhook
id(java.lang.String id)
Webhook
links(java.util.Map<java.lang.String,Link> links)
Webhook
name(java.lang.String name)
Webhook
on(java.lang.Boolean on)
Webhook
putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value.Webhook
putLinksItem(java.lang.String key, Link linksItem)
Webhook
secret(java.lang.String secret)
void
setAccess(Access access)
void
setId(java.lang.String id)
void
setLinks(java.util.Map<java.lang.String,Link> links)
void
setName(java.lang.String name)
void
setOn(java.lang.Boolean on)
void
setSecret(java.lang.String secret)
void
setStatements(java.util.List<Statement> statements)
void
setTags(java.util.List<java.lang.String> tags)
void
setUrl(java.lang.String url)
Webhook
statements(java.util.List<Statement> statements)
Webhook
tags(java.util.List<java.lang.String> tags)
java.lang.String
toJson()
Convert an instance of Webhook to an JSON stringjava.lang.String
toString()
Webhook
url(java.lang.String url)
static void
validateJsonObject(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()
Links to other resources within the API. Includes the URL and content type of those 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOException
Validates 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
-
-