Class Ttl
- java.lang.Object
-
- com.syntifi.casper.sdk.model.common.Ttl
-
- All Implemented Interfaces:
EncodableValue
public class Ttl extends java.lang.Object implements EncodableValue
TTL wrapper- Since:
- 0.0.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTtl.TtlBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Ttl.TtlBuilderbuilder()voidencode(CLValueEncoder clve, boolean encodeType)Implements EncodableValuejava.lang.LonggetTtl()voidsetTtl(java.lang.String ttl)
-
-
-
Method Detail
-
getTtl
public java.lang.Long getTtl()
-
encode
public void encode(CLValueEncoder clve, boolean encodeType) throws java.io.IOException, CLValueEncodeException, DynamicInstanceException, NoSuchTypeException
Implements EncodableValue- Specified by:
encodein interfaceEncodableValue- Parameters:
clve- the encoder to be usedencodeType- append encoded type?- Throws:
java.io.IOException- thrown if an IO error occursCLValueEncodeException- thrown if failed to encode a cl valueDynamicInstanceException- thrown if it could not instantiate a typeNoSuchTypeException- thrown if type not found
-
builder
public static Ttl.TtlBuilder builder()
-
setTtl
public void setTtl(java.lang.String ttl)
-
-