com.hubspot.chrome.devtools.client.core.css.CSSMedia Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.css;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* CSS media rule descriptor.
*/
public final class CSSMedia {
private String text;
private String source;
private String sourceURL;
private SourceRange range;
private StyleSheetId styleSheetId;
private List mediaList;
@JsonCreator
public CSSMedia(@JsonProperty("text") String text, @JsonProperty("source") String source,
@JsonProperty("sourceURL") String sourceURL, @JsonProperty("range") SourceRange range,
@JsonProperty("styleSheetId") StyleSheetId styleSheetId,
@JsonProperty("mediaList") List mediaList) {
this.text = text;
this.source = source;
this.sourceURL = sourceURL;
this.range = range;
this.styleSheetId = styleSheetId;
this.mediaList = mediaList;
}
public String getText() {
return text;
}
public String getSource() {
return source;
}
public String getSourceURL() {
return sourceURL;
}
public SourceRange getRange() {
return range;
}
public StyleSheetId getStyleSheetId() {
return styleSheetId;
}
public List getMediaList() {
return mediaList;
}
public static CSSMedia.Builder builder() {
return new CSSMedia.Builder();
}
public static final class Builder {
private String text;
private String source;
private String sourceURL;
private SourceRange range;
private StyleSheetId styleSheetId;
private List mediaList;
private Builder() {
}
public CSSMedia.Builder setText(String text) {
this.text = text;
return this;
}
public CSSMedia.Builder setSource(String source) {
this.source = source;
return this;
}
public CSSMedia.Builder setSourceURL(String sourceURL) {
this.sourceURL = sourceURL;
return this;
}
public CSSMedia.Builder setRange(SourceRange range) {
this.range = range;
return this;
}
public CSSMedia.Builder setStyleSheetId(StyleSheetId styleSheetId) {
this.styleSheetId = styleSheetId;
return this;
}
public CSSMedia.Builder setMediaList(List mediaList) {
this.mediaList = mediaList;
return this;
}
public CSSMedia build() {
return new CSSMedia(text, source, sourceURL, range, styleSheetId, mediaList);
}
}
}