com.hubspot.chrome.devtools.client.core.dom.BoxModel Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.dom;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Box model.
*/
public final class BoxModel {
private Quad content;
private Quad padding;
private Quad border;
private Quad margin;
private Integer width;
private Integer height;
private ShapeOutsideInfo shapeOutside;
@JsonCreator
public BoxModel(@JsonProperty("content") Quad content, @JsonProperty("padding") Quad padding,
@JsonProperty("border") Quad border, @JsonProperty("margin") Quad margin,
@JsonProperty("width") Integer width, @JsonProperty("height") Integer height,
@JsonProperty("shapeOutside") ShapeOutsideInfo shapeOutside) {
this.content = content;
this.padding = padding;
this.border = border;
this.margin = margin;
this.width = width;
this.height = height;
this.shapeOutside = shapeOutside;
}
public Quad getContent() {
return content;
}
public Quad getPadding() {
return padding;
}
public Quad getBorder() {
return border;
}
public Quad getMargin() {
return margin;
}
public Integer getWidth() {
return width;
}
public Integer getHeight() {
return height;
}
public ShapeOutsideInfo getShapeOutside() {
return shapeOutside;
}
public static BoxModel.Builder builder() {
return new BoxModel.Builder();
}
public static final class Builder {
private Quad content;
private Quad padding;
private Quad border;
private Quad margin;
private Integer width;
private Integer height;
private ShapeOutsideInfo shapeOutside;
private Builder() {
}
public BoxModel.Builder setContent(Quad content) {
this.content = content;
return this;
}
public BoxModel.Builder setPadding(Quad padding) {
this.padding = padding;
return this;
}
public BoxModel.Builder setBorder(Quad border) {
this.border = border;
return this;
}
public BoxModel.Builder setMargin(Quad margin) {
this.margin = margin;
return this;
}
public BoxModel.Builder setWidth(Integer width) {
this.width = width;
return this;
}
public BoxModel.Builder setHeight(Integer height) {
this.height = height;
return this;
}
public BoxModel.Builder setShapeOutside(ShapeOutsideInfo shapeOutside) {
this.shapeOutside = shapeOutside;
return this;
}
public BoxModel build() {
return new BoxModel(content, padding, border, margin, width, height, shapeOutside);
}
}
}