Class Variable
- java.lang.Object
-
- com.twilio.base.Resource
-
- com.twilio.rest.serverless.v1.service.environment.Variable
-
- All Implemented Interfaces:
Serializable
public class Variable extends Resource
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VariableCreatorcreator(String pathServiceSid, String pathEnvironmentSid, String key, String value)static VariableDeleterdeleter(String pathServiceSid, String pathEnvironmentSid, String pathSid)booleanequals(Object o)static VariableFetcherfetcher(String pathServiceSid, String pathEnvironmentSid, String pathSid)static VariablefromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON InputStream into a Variable object using the provided ObjectMapper.static VariablefromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)Converts a JSON String into a Variable object using the provided ObjectMapper.inthashCode()static VariableReaderreader(String pathServiceSid, String pathEnvironmentSid)static StringtoJson(Object object, com.fasterxml.jackson.databind.ObjectMapper mapper)static VariableUpdaterupdater(String pathServiceSid, String pathEnvironmentSid, String pathSid)
-
-
-
Method Detail
-
creator
public static VariableCreator creator(String pathServiceSid, String pathEnvironmentSid, String key, String value)
-
deleter
public static VariableDeleter deleter(String pathServiceSid, String pathEnvironmentSid, String pathSid)
-
fetcher
public static VariableFetcher fetcher(String pathServiceSid, String pathEnvironmentSid, String pathSid)
-
reader
public static VariableReader reader(String pathServiceSid, String pathEnvironmentSid)
-
updater
public static VariableUpdater updater(String pathServiceSid, String pathEnvironmentSid, String pathSid)
-
fromJson
public static Variable fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Variable object using the provided ObjectMapper.- Parameters:
json- Raw JSON StringobjectMapper- Jackson ObjectMapper- Returns:
- Variable object represented by the provided JSON
-
fromJson
public static Variable fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Variable object using the provided ObjectMapper.- Parameters:
json- Raw JSON InputStreamobjectMapper- Jackson ObjectMapper- Returns:
- Variable object represented by the provided JSON
-
toJson
public static String toJson(Object object, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-