package cn.reghao.bnt.common.docker.model;

import com.google.gson.annotations.SerializedName;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author reghao
 * @date 2020-05-19 15:00:50
 */
@AllArgsConstructor
@Data
public class RestartPolicy {
    @SerializedName("Name") private String name;
    @SerializedName("MaximumRetryCount") private int maximumRetryCount;

    public RestartPolicy() {
        this.name = "on-failure";
        this.maximumRetryCount = 3;
    }
}
