|
| 1 | +/* |
| 2 | + * Copyright 2026 Flamingock (https://www.flamingock.io) |
| 3 | + * |
| 4 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + * you may not use this file except in compliance with the License. |
| 6 | + * You may obtain a copy of the License at |
| 7 | + * |
| 8 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | + * |
| 10 | + * Unless required by applicable law or agreed to in writing, software |
| 11 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + * See the License for the specific language governing permissions and |
| 14 | + * limitations under the License. |
| 15 | + */ |
| 16 | +package io.flamingock.cloud.api.response; |
| 17 | + |
| 18 | +import io.flamingock.cloud.api.request.ClientSubmission; |
| 19 | + |
| 20 | +import java.time.Instant; |
| 21 | + |
| 22 | +public class ExecutionFullResponse { |
| 23 | + |
| 24 | + private String executionId; |
| 25 | + private long environmentId; |
| 26 | + private long serviceId; |
| 27 | + private String runnerId; |
| 28 | + private Instant startedAt; |
| 29 | + private ClientSubmission clientSubmission; |
| 30 | + private PipelineResponse pipeline; |
| 31 | + |
| 32 | + public ExecutionFullResponse() { |
| 33 | + } |
| 34 | + |
| 35 | + public ExecutionFullResponse(String executionId, long environmentId, long serviceId, String runnerId, |
| 36 | + Instant startedAt, ClientSubmission clientSubmission, PipelineResponse pipeline) { |
| 37 | + this.executionId = executionId; |
| 38 | + this.environmentId = environmentId; |
| 39 | + this.serviceId = serviceId; |
| 40 | + this.runnerId = runnerId; |
| 41 | + this.startedAt = startedAt; |
| 42 | + this.clientSubmission = clientSubmission; |
| 43 | + this.pipeline = pipeline; |
| 44 | + } |
| 45 | + |
| 46 | + public String getExecutionId() { return executionId; } |
| 47 | + public void setExecutionId(String executionId) { this.executionId = executionId; } |
| 48 | + |
| 49 | + public long getEnvironmentId() { return environmentId; } |
| 50 | + public void setEnvironmentId(long environmentId) { this.environmentId = environmentId; } |
| 51 | + |
| 52 | + public long getServiceId() { return serviceId; } |
| 53 | + public void setServiceId(long serviceId) { this.serviceId = serviceId; } |
| 54 | + |
| 55 | + public String getRunnerId() { return runnerId; } |
| 56 | + public void setRunnerId(String runnerId) { this.runnerId = runnerId; } |
| 57 | + |
| 58 | + public Instant getStartedAt() { return startedAt; } |
| 59 | + public void setStartedAt(Instant startedAt) { this.startedAt = startedAt; } |
| 60 | + |
| 61 | + public ClientSubmission getClientSubmission() { return clientSubmission; } |
| 62 | + public void setClientSubmission(ClientSubmission clientSubmission) { this.clientSubmission = clientSubmission; } |
| 63 | + |
| 64 | + public PipelineResponse getPipeline() { return pipeline; } |
| 65 | + public void setPipeline(PipelineResponse pipeline) { this.pipeline = pipeline; } |
| 66 | + |
| 67 | + @Override |
| 68 | + public boolean equals(Object o) { |
| 69 | + if (this == o) return true; |
| 70 | + if (o == null || getClass() != o.getClass()) return false; |
| 71 | + ExecutionFullResponse that = (ExecutionFullResponse) o; |
| 72 | + return environmentId == that.environmentId && serviceId == that.serviceId |
| 73 | + && java.util.Objects.equals(executionId, that.executionId) |
| 74 | + && java.util.Objects.equals(runnerId, that.runnerId) |
| 75 | + && java.util.Objects.equals(startedAt, that.startedAt) |
| 76 | + && java.util.Objects.equals(clientSubmission, that.clientSubmission) |
| 77 | + && java.util.Objects.equals(pipeline, that.pipeline); |
| 78 | + } |
| 79 | + |
| 80 | + @Override |
| 81 | + public int hashCode() { |
| 82 | + return java.util.Objects.hash(executionId, environmentId, serviceId, runnerId, startedAt, clientSubmission, pipeline); |
| 83 | + } |
| 84 | +} |
0 commit comments