Package com.launchdarkly.api.model
Class DeploymentRep
- java.lang.Object
-
- com.launchdarkly.api.model.DeploymentRep
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-05-16T11:29:12.794018Z[Etc/UTC]") public class DeploymentRep extends java.lang.ObjectDeploymentRep
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeploymentRep.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static java.util.HashSet<java.lang.String>openapiFieldsstatic java.util.HashSet<java.lang.String>openapiRequiredFieldsstatic java.lang.StringSERIALIZED_NAME_ACTIVEstatic java.lang.StringSERIALIZED_NAME_APPLICATION_KEYstatic java.lang.StringSERIALIZED_NAME_APPLICATION_VERSIONstatic java.lang.StringSERIALIZED_NAME_ARCHIVEDstatic java.lang.StringSERIALIZED_NAME_DURATION_MSstatic java.lang.StringSERIALIZED_NAME_ENDED_ATstatic java.lang.StringSERIALIZED_NAME_ENVIRONMENT_KEYstatic java.lang.StringSERIALIZED_NAME_FLAG_REFERENCESstatic java.lang.StringSERIALIZED_NAME_IDstatic java.lang.StringSERIALIZED_NAME_KINDstatic java.lang.StringSERIALIZED_NAME_LEAD_TIMEstatic java.lang.StringSERIALIZED_NAME_LEAD_TIME_STAGESstatic java.lang.StringSERIALIZED_NAME_LINES_ADDEDstatic java.lang.StringSERIALIZED_NAME_LINES_DELETEDstatic java.lang.StringSERIALIZED_NAME_METADATAstatic java.lang.StringSERIALIZED_NAME_NUMBER_OF_CONTRIBUTORSstatic java.lang.StringSERIALIZED_NAME_NUMBER_OF_PULL_REQUESTSstatic java.lang.StringSERIALIZED_NAME_PULL_REQUESTSstatic java.lang.StringSERIALIZED_NAME_STARTED_ATstatic java.lang.StringSERIALIZED_NAME_STATUS
-
Constructor Summary
Constructors Constructor Description DeploymentRep()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeploymentRepactive(java.lang.Boolean active)DeploymentRepapplicationKey(java.lang.String applicationKey)DeploymentRepapplicationVersion(java.lang.String applicationVersion)DeploymentReparchived(java.lang.Boolean archived)DeploymentRepdurationMs(java.lang.Long durationMs)DeploymentRependedAt(java.lang.Long endedAt)DeploymentRepenvironmentKey(java.lang.String environmentKey)booleanequals(java.lang.Object o)DeploymentRepflagReferences(FlagReferenceCollectionRep flagReferences)static DeploymentRepfromJson(java.lang.String jsonString)Create an instance of DeploymentRep given an JSON stringjava.lang.BooleangetActive()Whether the deployment is activejava.util.Map<java.lang.String,java.lang.Object>getAdditionalProperties()Return the additional (undeclared) property.java.lang.ObjectgetAdditionalProperty(java.lang.String key)Return the additional (undeclared) property with the specified name.java.lang.StringgetApplicationKey()The application keyjava.lang.StringgetApplicationVersion()The application versionjava.lang.BooleangetArchived()Whether the deployment is archivedjava.lang.LonggetDurationMs()The duration of the deployment in millisecondsjava.lang.LonggetEndedAt()Get endedAtjava.lang.StringgetEnvironmentKey()The environment keyFlagReferenceCollectionRepgetFlagReferences()Get flagReferencesjava.util.UUIDgetId()The deployment IDjava.lang.StringgetKind()Get kindjava.lang.LonggetLeadTime()The total lead time from first commit to deployment end in millisecondsLeadTimeStagesRepgetLeadTimeStages()Get leadTimeStagesjava.lang.LonggetLinesAdded()The number of lines addedjava.lang.LonggetLinesDeleted()The number of lines deletedjava.util.Map<java.lang.String,java.lang.Object>getMetadata()The metadata associated with the deploymentjava.lang.IntegergetNumberOfContributors()The number of contributorsjava.lang.IntegergetNumberOfPullRequests()The number of pull requestsPullRequestCollectionRepgetPullRequests()Get pullRequestsjava.lang.LonggetStartedAt()Get startedAtjava.lang.StringgetStatus()Get statusinthashCode()DeploymentRepid(java.util.UUID id)DeploymentRepkind(java.lang.String kind)DeploymentRepleadTime(java.lang.Long leadTime)DeploymentRepleadTimeStages(LeadTimeStagesRep leadTimeStages)DeploymentReplinesAdded(java.lang.Long linesAdded)DeploymentReplinesDeleted(java.lang.Long linesDeleted)DeploymentRepmetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)DeploymentRepnumberOfContributors(java.lang.Integer numberOfContributors)DeploymentRepnumberOfPullRequests(java.lang.Integer numberOfPullRequests)DeploymentReppullRequests(PullRequestCollectionRep pullRequests)DeploymentRepputAdditionalProperty(java.lang.String key, java.lang.Object value)Set the additional (undeclared) property with the specified name and value.DeploymentRepputMetadataItem(java.lang.String key, java.lang.Object metadataItem)voidsetActive(java.lang.Boolean active)voidsetApplicationKey(java.lang.String applicationKey)voidsetApplicationVersion(java.lang.String applicationVersion)voidsetArchived(java.lang.Boolean archived)voidsetDurationMs(java.lang.Long durationMs)voidsetEndedAt(java.lang.Long endedAt)voidsetEnvironmentKey(java.lang.String environmentKey)voidsetFlagReferences(FlagReferenceCollectionRep flagReferences)voidsetId(java.util.UUID id)voidsetKind(java.lang.String kind)voidsetLeadTime(java.lang.Long leadTime)voidsetLeadTimeStages(LeadTimeStagesRep leadTimeStages)voidsetLinesAdded(java.lang.Long linesAdded)voidsetLinesDeleted(java.lang.Long linesDeleted)voidsetMetadata(java.util.Map<java.lang.String,java.lang.Object> metadata)voidsetNumberOfContributors(java.lang.Integer numberOfContributors)voidsetNumberOfPullRequests(java.lang.Integer numberOfPullRequests)voidsetPullRequests(PullRequestCollectionRep pullRequests)voidsetStartedAt(java.lang.Long startedAt)voidsetStatus(java.lang.String status)DeploymentRepstartedAt(java.lang.Long startedAt)DeploymentRepstatus(java.lang.String status)java.lang.StringtoJson()Convert an instance of DeploymentRep to an JSON stringjava.lang.StringtoString()static voidvalidateJsonObject(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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws java.io.IOExceptionValidates 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
-
-