public class Deployment extends Resource
Modifier and Type | Method and Description |
---|---|
static DeploymentCreator |
creator(String pathServiceSid,
String pathEnvironmentSid)
Create a DeploymentCreator to execute create.
|
boolean |
equals(Object o) |
static DeploymentFetcher |
fetcher(String pathServiceSid,
String pathEnvironmentSid,
String pathSid)
Create a DeploymentFetcher to execute fetch.
|
static Deployment |
fromJson(InputStream json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON InputStream into a Deployment object using the provided
ObjectMapper.
|
static Deployment |
fromJson(String json,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Converts a JSON String into a Deployment object using the provided
ObjectMapper.
|
String |
getAccountSid()
Returns The SID of the Account that created the Deployment resource.
|
String |
getBuildSid()
Returns The SID of the Build for the deployment.
|
ZonedDateTime |
getDateCreated()
Returns The ISO 8601 date and time in GMT when the Deployment resource was
created.
|
ZonedDateTime |
getDateUpdated()
Returns The ISO 8601 date and time in GMT when the Deployment resource was
last updated.
|
String |
getEnvironmentSid()
Returns The SID of the Environment for the Deployment.
|
String |
getServiceSid()
Returns The SID of the Service that the Deployment resource is associated
with.
|
String |
getSid()
Returns The unique string that identifies the Deployment resource.
|
URI |
getUrl()
Returns The absolute URL of the Deployment resource.
|
int |
hashCode() |
static DeploymentReader |
reader(String pathServiceSid,
String pathEnvironmentSid)
Create a DeploymentReader to execute read.
|
public static DeploymentReader reader(String pathServiceSid, String pathEnvironmentSid)
pathServiceSid
- The SID of the Service to read the Deployment
resources frompathEnvironmentSid
- The SID of the Environment used by the Deployment
resources to readpublic static DeploymentFetcher fetcher(String pathServiceSid, String pathEnvironmentSid, String pathSid)
pathServiceSid
- The SID of the Service to fetch the Deployment
resource frompathEnvironmentSid
- The SID of the Environment used by the Deployment
to fetchpathSid
- The SID that identifies the Deployment resource to fetchpublic static DeploymentCreator creator(String pathServiceSid, String pathEnvironmentSid)
pathServiceSid
- The SID of the Service to create the Deployment
resource underpathEnvironmentSid
- The SID of the Environment for the Deploymentpublic static Deployment fromJson(String json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON StringobjectMapper
- Jackson ObjectMapperpublic static Deployment fromJson(InputStream json, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
json
- Raw JSON InputStreamobjectMapper
- Jackson ObjectMapperpublic final String getSid()
public final String getAccountSid()
public final String getServiceSid()
public final String getEnvironmentSid()
public final String getBuildSid()
public final ZonedDateTime getDateCreated()
public final ZonedDateTime getDateUpdated()
public final URI getUrl()
Copyright © 2019 Twilio, Inc. All Rights Reserved.