package io.apibuilder.api.v0.models; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import java.util.Date; import java.util.UUID; import lombok.Data; import me.geso.tinyvalidator.constraints.NotNull; /** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.12.14 * User agent: apibuilder app.apibuilder.io/apicollective/apibuilder-api/0.12.14/java_aws_lambda_pojo_client * * WARNING: not all features (notably unions) and data types work with the java generator yet. * Java POJO generator is designed to be used with AWS Lambdas. * If you are considering using this library, would like to request/discuss features, or would like to share how you're using it, please contact daniel.kirby@gilt.com * * Represents a single change from one version of a service to another */ @Data @JsonIgnoreProperties( ignoreUnknown = true ) public class Change { @NotNull protected UUID guid; @NotNull protected io.apibuilder.common.v0.models.Reference organization; @NotNull protected io.apibuilder.common.v0.models.Reference application; @NotNull protected ChangeVersion fromVersion; @NotNull protected ChangeVersion toVersion; @NotNull protected Diff diff; @NotNull protected Date changedAt; @NotNull protected UserSummary changedBy; @NotNull protected io.apibuilder.common.v0.models.Audit audit; public Change(UUID guid, io.apibuilder.common.v0.models.Reference organization, io.apibuilder.common.v0.models.Reference application, ChangeVersion fromVersion, ChangeVersion toVersion, Diff diff, Date changedAt, UserSummary changedBy, io.apibuilder.common.v0.models.Audit audit) { this.guid = guid; this.organization = organization; this.application = application; this.fromVersion = fromVersion; this.toVersion = toVersion; this.diff = diff; this.changedAt = changedAt; this.changedBy = changedBy; this.audit = audit; } public Change() { } public UUID getGuid() { return guid; } public void setGuid(UUID guid) { this.guid = guid; } public io.apibuilder.common.v0.models.Reference getOrganization() { return organization; } public void setOrganization(io.apibuilder.common.v0.models.Reference organization) { this.organization = organization; } public io.apibuilder.common.v0.models.Reference getApplication() { return application; } public void setApplication(io.apibuilder.common.v0.models.Reference application) { this.application = application; } public ChangeVersion getFromVersion() { return fromVersion; } public void setFromVersion(ChangeVersion fromVersion) { this.fromVersion = fromVersion; } public ChangeVersion getToVersion() { return toVersion; } public void setToVersion(ChangeVersion toVersion) { this.toVersion = toVersion; } public Diff getDiff() { return diff; } public void setDiff(Diff diff) { this.diff = diff; } /** * Records the timestamp of when the actual change occurred (vs. when we created the changed record) */ public Date getChangedAt() { return changedAt; } public void setChangedAt(Date changedAt) { this.changedAt = changedAt; } /** * Records who made the actual change */ public UserSummary getChangedBy() { return changedBy; } public void setChangedBy(UserSummary changedBy) { this.changedBy = changedBy; } public io.apibuilder.common.v0.models.Audit getAudit() { return audit; } public void setAudit(io.apibuilder.common.v0.models.Audit audit) { this.audit = audit; } }