Package com.launchdarkly.api.model
Class DeploymentRep
- java.lang.Object
-
- com.launchdarkly.api.model.DeploymentRep
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-04-03T23:27:37.555894Z[Etc/UTC]") public class DeploymentRep extends java.lang.Object
DeploymentRep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeploymentRep.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_ACTIVE
static java.lang.String
SERIALIZED_NAME_APPLICATION_KEY
static java.lang.String
SERIALIZED_NAME_APPLICATION_VERSION
static java.lang.String
SERIALIZED_NAME_ARCHIVED
static java.lang.String
SERIALIZED_NAME_DURATION_MS
static java.lang.String
SERIALIZED_NAME_ENDED_AT
static java.lang.String
SERIALIZED_NAME_ENVIRONMENT_KEY
static java.lang.String
SERIALIZED_NAME_FLAG_REFERENCES
static java.lang.String
SERIALIZED_NAME_ID
static java.lang.String
SERIALIZED_NAME_KIND
static java.lang.String
SERIALIZED_NAME_LEAD_TIME
static java.lang.String
SERIALIZED_NAME_LEAD_TIME_STAGES
static java.lang.String
SERIALIZED_NAME_LINES_ADDED
static java.lang.String
SERIALIZED_NAME_LINES_DELETED
static java.lang.String
SERIALIZED_NAME_METADATA
static java.lang.String
SERIALIZED_NAME_NUMBER_OF_CONTRIBUTORS
static java.lang.String
SERIALIZED_NAME_NUMBER_OF_PULL_REQUESTS
static java.lang.String
SERIALIZED_NAME_PULL_REQUESTS
static java.lang.String
SERIALIZED_NAME_STARTED_AT
static java.lang.String
SERIALIZED_NAME_STATUS
-
Constructor Summary
Constructors Constructor Description DeploymentRep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentRep
active(java.lang.Boolean active)
DeploymentRep
applicationKey(java.lang.String applicationKey)
DeploymentRep
applicationVersion(java.lang.String applicationVersion)
DeploymentRep
archived(java.lang.Boolean archived)
DeploymentRep
durationMs(java.lang.Long durationMs)
DeploymentRep
endedAt(java.lang.Long endedAt)
DeploymentRep
environmentKey(java.lang.String environmentKey)
boolean
equals(java.lang.Object o)
DeploymentRep
flagReferences(FlagReferenceCollectionRep flagReferences)
static DeploymentRep
fromJson(java.lang.String jsonString)
Create an instance of DeploymentRep given an JSON stringjava.lang.Boolean
getActive()
Whether the deployment is activejava.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
getApplicationKey()
The application keyjava.lang.String
getApplicationVersion()
The application versionjava.lang.Boolean
getArchived()
Whether the deployment is archivedjava.lang.Long
getDurationMs()
The duration of the deployment in millisecondsjava.lang.Long
getEndedAt()
Get endedAtjava.lang.String
getEnvironmentKey()
The environment keyFlagReferenceCollectionRep
getFlagReferences()
Get flagReferencesjava.util.UUID
getId()
The deployment IDjava.lang.String
getKind()
Get kindjava.lang.Long
getLeadTime()
The total lead time from first commit to deployment end in millisecondsLeadTimeStagesRep
getLeadTimeStages()
Get leadTimeStagesjava.lang.Long
getLinesAdded()
The number of lines addedjava.lang.Long
getLinesDeleted()
The number of lines deletedjava.util.Map<java.lang.String,java.lang.Object>
getMetadata()
The metadata associated with the deploymentjava.lang.Integer
getNumberOfContributors()
The number of contributorsjava.lang.Integer
getNumberOfPullRequests()
The number of pull requestsPullRequestCollectionRep
getPullRequests()
Get pullRequestsjava.lang.Long
getStartedAt()
Get startedAtjava.lang.String
getStatus()
Get statusint
hashCode()
DeploymentRep
id(java.util.UUID id)
DeploymentRep
kind(java.lang.String kind)
DeploymentRep
leadTime(java.lang.Long leadTime)
DeploymentRep
leadTimeStages(LeadTimeStagesRep leadTimeStages)
DeploymentRep
linesAdded(java.lang.Long linesAdded)
DeploymentRep
linesDeleted(java.lang.Long linesDeleted)
DeploymentRep
metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
DeploymentRep
numberOfContributors(java.lang.Integer numberOfContributors)
DeploymentRep
numberOfPullRequests(java.lang.Integer numberOfPullRequests)
DeploymentRep
pullRequests(PullRequestCollectionRep pullRequests)
DeploymentRep
putAdditionalProperty(java.lang.String key, java.lang.Object value)
Set the additional (undeclared) property with the specified name and value.DeploymentRep
putMetadataItem(java.lang.String key, java.lang.Object metadataItem)
void
setActive(java.lang.Boolean active)
void
setApplicationKey(java.lang.String applicationKey)
void
setApplicationVersion(java.lang.String applicationVersion)
void
setArchived(java.lang.Boolean archived)
void
setDurationMs(java.lang.Long durationMs)
void
setEndedAt(java.lang.Long endedAt)
void
setEnvironmentKey(java.lang.String environmentKey)
void
setFlagReferences(FlagReferenceCollectionRep flagReferences)
void
setId(java.util.UUID id)
void
setKind(java.lang.String kind)
void
setLeadTime(java.lang.Long leadTime)
void
setLeadTimeStages(LeadTimeStagesRep leadTimeStages)
void
setLinesAdded(java.lang.Long linesAdded)
void
setLinesDeleted(java.lang.Long linesDeleted)
void
setMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
void
setNumberOfContributors(java.lang.Integer numberOfContributors)
void
setNumberOfPullRequests(java.lang.Integer numberOfPullRequests)
void
setPullRequests(PullRequestCollectionRep pullRequests)
void
setStartedAt(java.lang.Long startedAt)
void
setStatus(java.lang.String status)
DeploymentRep
startedAt(java.lang.Long startedAt)
DeploymentRep
status(java.lang.String status)
java.lang.String
toJson()
Convert an instance of DeploymentRep to an JSON stringjava.lang.String
toString()
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final java.lang.String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_APPLICATION_KEY
public static final java.lang.String SERIALIZED_NAME_APPLICATION_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_APPLICATION_VERSION
public static final java.lang.String SERIALIZED_NAME_APPLICATION_VERSION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STARTED_AT
public static final java.lang.String SERIALIZED_NAME_STARTED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENDED_AT
public static final java.lang.String SERIALIZED_NAME_ENDED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DURATION_MS
public static final java.lang.String SERIALIZED_NAME_DURATION_MS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATUS
public static final java.lang.String SERIALIZED_NAME_STATUS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_KIND
public static final java.lang.String SERIALIZED_NAME_KIND
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ACTIVE
public static final java.lang.String SERIALIZED_NAME_ACTIVE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_METADATA
public static final java.lang.String SERIALIZED_NAME_METADATA
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ARCHIVED
public static final java.lang.String SERIALIZED_NAME_ARCHIVED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENVIRONMENT_KEY
public static final java.lang.String SERIALIZED_NAME_ENVIRONMENT_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NUMBER_OF_CONTRIBUTORS
public static final java.lang.String SERIALIZED_NAME_NUMBER_OF_CONTRIBUTORS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NUMBER_OF_PULL_REQUESTS
public static final java.lang.String SERIALIZED_NAME_NUMBER_OF_PULL_REQUESTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINES_ADDED
public static final java.lang.String SERIALIZED_NAME_LINES_ADDED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LINES_DELETED
public static final java.lang.String SERIALIZED_NAME_LINES_DELETED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LEAD_TIME
public static final java.lang.String SERIALIZED_NAME_LEAD_TIME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PULL_REQUESTS
public static final java.lang.String SERIALIZED_NAME_PULL_REQUESTS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FLAG_REFERENCES
public static final java.lang.String SERIALIZED_NAME_FLAG_REFERENCES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LEAD_TIME_STAGES
public static final java.lang.String SERIALIZED_NAME_LEAD_TIME_STAGES
- 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
-
id
public DeploymentRep id(java.util.UUID id)
-
getId
@Nonnull public java.util.UUID getId()
The deployment ID- Returns:
- id
-
setId
public void setId(java.util.UUID id)
-
applicationKey
public DeploymentRep applicationKey(java.lang.String applicationKey)
-
getApplicationKey
@Nonnull public java.lang.String getApplicationKey()
The application key- Returns:
- applicationKey
-
setApplicationKey
public void setApplicationKey(java.lang.String applicationKey)
-
applicationVersion
public DeploymentRep applicationVersion(java.lang.String applicationVersion)
-
getApplicationVersion
@Nonnull public java.lang.String getApplicationVersion()
The application version- Returns:
- applicationVersion
-
setApplicationVersion
public void setApplicationVersion(java.lang.String applicationVersion)
-
startedAt
public DeploymentRep startedAt(java.lang.Long startedAt)
-
getStartedAt
@Nonnull public java.lang.Long getStartedAt()
Get startedAt- Returns:
- startedAt
-
setStartedAt
public void setStartedAt(java.lang.Long startedAt)
-
endedAt
public DeploymentRep endedAt(java.lang.Long endedAt)
-
getEndedAt
@Nullable public java.lang.Long getEndedAt()
Get endedAt- Returns:
- endedAt
-
setEndedAt
public void setEndedAt(java.lang.Long endedAt)
-
durationMs
public DeploymentRep durationMs(java.lang.Long durationMs)
-
getDurationMs
@Nullable public java.lang.Long getDurationMs()
The duration of the deployment in milliseconds- Returns:
- durationMs
-
setDurationMs
public void setDurationMs(java.lang.Long durationMs)
-
status
public DeploymentRep status(java.lang.String status)
-
getStatus
@Nonnull public java.lang.String getStatus()
Get status- Returns:
- status
-
setStatus
public void setStatus(java.lang.String status)
-
kind
public DeploymentRep kind(java.lang.String kind)
-
getKind
@Nonnull public java.lang.String getKind()
Get kind- Returns:
- kind
-
setKind
public void setKind(java.lang.String kind)
-
active
public DeploymentRep active(java.lang.Boolean active)
-
getActive
@Nonnull public java.lang.Boolean getActive()
Whether the deployment is active- Returns:
- active
-
setActive
public void setActive(java.lang.Boolean active)
-
metadata
public DeploymentRep metadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
-
putMetadataItem
public DeploymentRep putMetadataItem(java.lang.String key, java.lang.Object metadataItem)
-
getMetadata
@Nullable public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
The metadata associated with the deployment- Returns:
- metadata
-
setMetadata
public void setMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)
-
archived
public DeploymentRep archived(java.lang.Boolean archived)
-
getArchived
@Nonnull public java.lang.Boolean getArchived()
Whether the deployment is archived- Returns:
- archived
-
setArchived
public void setArchived(java.lang.Boolean archived)
-
environmentKey
public DeploymentRep environmentKey(java.lang.String environmentKey)
-
getEnvironmentKey
@Nonnull public java.lang.String getEnvironmentKey()
The environment key- Returns:
- environmentKey
-
setEnvironmentKey
public void setEnvironmentKey(java.lang.String environmentKey)
-
numberOfContributors
public DeploymentRep numberOfContributors(java.lang.Integer numberOfContributors)
-
getNumberOfContributors
@Nonnull public java.lang.Integer getNumberOfContributors()
The number of contributors- Returns:
- numberOfContributors
-
setNumberOfContributors
public void setNumberOfContributors(java.lang.Integer numberOfContributors)
-
numberOfPullRequests
public DeploymentRep numberOfPullRequests(java.lang.Integer numberOfPullRequests)
-
getNumberOfPullRequests
@Nonnull public java.lang.Integer getNumberOfPullRequests()
The number of pull requests- Returns:
- numberOfPullRequests
-
setNumberOfPullRequests
public void setNumberOfPullRequests(java.lang.Integer numberOfPullRequests)
-
linesAdded
public DeploymentRep linesAdded(java.lang.Long linesAdded)
-
getLinesAdded
@Nonnull public java.lang.Long getLinesAdded()
The number of lines added- Returns:
- linesAdded
-
setLinesAdded
public void setLinesAdded(java.lang.Long linesAdded)
-
linesDeleted
public DeploymentRep linesDeleted(java.lang.Long linesDeleted)
-
getLinesDeleted
@Nonnull public java.lang.Long getLinesDeleted()
The number of lines deleted- Returns:
- linesDeleted
-
setLinesDeleted
public void setLinesDeleted(java.lang.Long linesDeleted)
-
leadTime
public DeploymentRep leadTime(java.lang.Long leadTime)
-
getLeadTime
@Nonnull public java.lang.Long getLeadTime()
The total lead time from first commit to deployment end in milliseconds- Returns:
- leadTime
-
setLeadTime
public void setLeadTime(java.lang.Long leadTime)
-
pullRequests
public DeploymentRep pullRequests(PullRequestCollectionRep pullRequests)
-
getPullRequests
@Nullable public PullRequestCollectionRep getPullRequests()
Get pullRequests- Returns:
- pullRequests
-
setPullRequests
public void setPullRequests(PullRequestCollectionRep pullRequests)
-
flagReferences
public DeploymentRep flagReferences(FlagReferenceCollectionRep flagReferences)
-
getFlagReferences
@Nullable public FlagReferenceCollectionRep getFlagReferences()
Get flagReferences- Returns:
- flagReferences
-
setFlagReferences
public void setFlagReferences(FlagReferenceCollectionRep flagReferences)
-
leadTimeStages
public DeploymentRep leadTimeStages(LeadTimeStagesRep leadTimeStages)
-
getLeadTimeStages
@Nullable public LeadTimeStagesRep getLeadTimeStages()
Get leadTimeStages- Returns:
- leadTimeStages
-
setLeadTimeStages
public void setLeadTimeStages(LeadTimeStagesRep leadTimeStages)
-
putAdditionalProperty
public DeploymentRep 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 DeploymentRep
-
fromJson
public static DeploymentRep fromJson(java.lang.String jsonString) throws java.io.IOException
Create an instance of DeploymentRep given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of DeploymentRep
- Throws:
java.io.IOException
- if the JSON string is invalid with respect to DeploymentRep
-
toJson
public java.lang.String toJson()
Convert an instance of DeploymentRep to an JSON string- Returns:
- JSON string
-
-