aboutsummaryrefslogtreecommitdiffstats
path: root/controller-api/src/main/java/com/yahoo/vespa/hosted/controller/api/application/v4/model/DeployResult.java
blob: 50074329b4965255b866acabe51366e60d8eec54 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.api.application.v4.model;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.yahoo.vespa.hosted.controller.api.application.v4.model.configserverbindings.ConfigChangeActions;
import com.yahoo.vespa.hosted.controller.api.identifiers.RevisionId;

import java.util.List;

/**
 * @author gjoranv
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class DeployResult {

    public final RevisionId revisionId;
    public final Long applicationZipSize;
    public final List<LogEntry> prepareMessages;
    public final ConfigChangeActions configChangeActions;

    @JsonCreator
    public DeployResult(@JsonProperty("revisionId") RevisionId revisionId,
                        @JsonProperty("applicationZipSize") Long applicationZipSize,
                        @JsonProperty("prepareMessages") List<LogEntry> prepareMessages,
                        @JsonProperty("configChangeActions") ConfigChangeActions configChangeActions) {
        this.revisionId = revisionId;
        this.applicationZipSize = applicationZipSize;
        this.prepareMessages = prepareMessages;
        this.configChangeActions = configChangeActions;
    }

    @Override
    public String toString() {
        return "DeployResult{" +
                "revisionId=" + revisionId.id() +
                ", applicationZipSize=" + applicationZipSize +
                ", prepareMessages=" + prepareMessages +
                ", configChangeActions=" + configChangeActions +
                '}';
    }
}