com.hubspot.chrome.devtools.client.core.css.CSSKeyframesRule 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 keyframes rule representation.
*/
public final class CSSKeyframesRule {
private Value animationName;
private List keyframes;
@JsonCreator
public CSSKeyframesRule(@JsonProperty("animationName") Value animationName,
@JsonProperty("keyframes") List keyframes) {
this.animationName = animationName;
this.keyframes = keyframes;
}
public Value getAnimationName() {
return animationName;
}
public List getKeyframes() {
return keyframes;
}
public static CSSKeyframesRule.Builder builder() {
return new CSSKeyframesRule.Builder();
}
public static final class Builder {
private Value animationName;
private List keyframes;
private Builder() {
}
public CSSKeyframesRule.Builder setAnimationName(Value animationName) {
this.animationName = animationName;
return this;
}
public CSSKeyframesRule.Builder setKeyframes(List keyframes) {
this.keyframes = keyframes;
return this;
}
public CSSKeyframesRule build() {
return new CSSKeyframesRule(animationName, keyframes);
}
}
}