Package com.launchdarkly.api.model
Class ViewLinkRequest
- java.lang.Object
-
- com.launchdarkly.api.model.AbstractOpenApiSchema
-
- com.launchdarkly.api.model.ViewLinkRequest
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-05T10:45:26.516033Z[Etc/UTC]", comments="Generator version: 7.18.0") public class ViewLinkRequest extends AbstractOpenApiSchema
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classViewLinkRequest.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<java.lang.String,java.lang.Class<?>>schemas
-
Constructor Summary
Constructors Constructor Description ViewLinkRequest()ViewLinkRequest(java.lang.Object o)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ViewLinkRequestfromJson(java.lang.String jsonString)Create an instance of ViewLinkRequest given an JSON stringjava.lang.ObjectgetActualInstance()Get the actual instance, which can be the following: ViewLinkRequestFilter, ViewLinkRequestKeys, ViewLinkRequestSegmentIdentifiersjava.util.Map<java.lang.String,java.lang.Class<?>>getSchemas()Get the list of oneOf/anyOf composed schemas allowed to be stored in this objectViewLinkRequestFiltergetViewLinkRequestFilter()Get the actual instance of `ViewLinkRequestFilter`.ViewLinkRequestKeysgetViewLinkRequestKeys()Get the actual instance of `ViewLinkRequestKeys`.ViewLinkRequestSegmentIdentifiersgetViewLinkRequestSegmentIdentifiers()Get the actual instance of `ViewLinkRequestSegmentIdentifiers`.voidsetActualInstance(java.lang.Object instance)Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: ViewLinkRequestFilter, ViewLinkRequestKeys, ViewLinkRequestSegmentIdentifiers It could be an instance of the 'oneOf' schemas.java.lang.StringtoJson()Convert an instance of ViewLinkRequest to an JSON stringstatic voidvalidateJsonElement(com.google.gson.JsonElement jsonElement)Validates the JSON Element and throws an exception if issues found-
Methods inherited from class com.launchdarkly.api.model.AbstractOpenApiSchema
equals, getActualInstanceRecursively, getSchemaType, hashCode, isNullable, toString
-
-
-
-
Method Detail
-
getSchemas
public java.util.Map<java.lang.String,java.lang.Class<?>> getSchemas()
Description copied from class:AbstractOpenApiSchemaGet the list of oneOf/anyOf composed schemas allowed to be stored in this object- Specified by:
getSchemasin classAbstractOpenApiSchema- Returns:
- an instance of the actual schema/object
-
setActualInstance
public void setActualInstance(java.lang.Object instance)
Set the instance that matches the oneOf child schema, check the instance parameter is valid against the oneOf child schemas: ViewLinkRequestFilter, ViewLinkRequestKeys, ViewLinkRequestSegmentIdentifiers It could be an instance of the 'oneOf' schemas.- Overrides:
setActualInstancein classAbstractOpenApiSchema- Parameters:
instance- the actual instance of the schema/object
-
getActualInstance
public java.lang.Object getActualInstance()
Get the actual instance, which can be the following: ViewLinkRequestFilter, ViewLinkRequestKeys, ViewLinkRequestSegmentIdentifiers- Overrides:
getActualInstancein classAbstractOpenApiSchema- Returns:
- The actual instance (ViewLinkRequestFilter, ViewLinkRequestKeys, ViewLinkRequestSegmentIdentifiers)
-
getViewLinkRequestKeys
public ViewLinkRequestKeys getViewLinkRequestKeys() throws java.lang.ClassCastException
Get the actual instance of `ViewLinkRequestKeys`. If the actual instance is not `ViewLinkRequestKeys`, the ClassCastException will be thrown.- Returns:
- The actual instance of `ViewLinkRequestKeys`
- Throws:
java.lang.ClassCastException- if the instance is not `ViewLinkRequestKeys`
-
getViewLinkRequestSegmentIdentifiers
public ViewLinkRequestSegmentIdentifiers getViewLinkRequestSegmentIdentifiers() throws java.lang.ClassCastException
Get the actual instance of `ViewLinkRequestSegmentIdentifiers`. If the actual instance is not `ViewLinkRequestSegmentIdentifiers`, the ClassCastException will be thrown.- Returns:
- The actual instance of `ViewLinkRequestSegmentIdentifiers`
- Throws:
java.lang.ClassCastException- if the instance is not `ViewLinkRequestSegmentIdentifiers`
-
getViewLinkRequestFilter
public ViewLinkRequestFilter getViewLinkRequestFilter() throws java.lang.ClassCastException
Get the actual instance of `ViewLinkRequestFilter`. If the actual instance is not `ViewLinkRequestFilter`, the ClassCastException will be thrown.- Returns:
- The actual instance of `ViewLinkRequestFilter`
- Throws:
java.lang.ClassCastException- if the instance is not `ViewLinkRequestFilter`
-
validateJsonElement
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws java.io.IOExceptionValidates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
java.io.IOException- if the JSON Element is invalid with respect to ViewLinkRequest
-
fromJson
public static ViewLinkRequest fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of ViewLinkRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ViewLinkRequest
- Throws:
java.io.IOException- if the JSON string is invalid with respect to ViewLinkRequest
-
toJson
public java.lang.String toJson()
Convert an instance of ViewLinkRequest to an JSON string- Returns:
- JSON string
-
-