Package org.elasticsearch.protocol.xpack
Class XPackInfoResponse.LicenseInfo
- java.lang.Object
-
- org.elasticsearch.protocol.xpack.XPackInfoResponse.LicenseInfo
-
- All Implemented Interfaces:
Writeable
,ToXContent
,ToXContentObject
- Enclosing class:
- XPackInfoResponse
public static class XPackInfoResponse.LicenseInfo extends java.lang.Object implements ToXContentObject, Writeable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object>
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description LicenseInfo(java.lang.String uid, java.lang.String type, java.lang.String mode, LicenseStatus status, long expiryDate)
LicenseInfo(StreamInput in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object other)
long
getExpiryDate()
java.lang.String
getMode()
LicenseStatus
getStatus()
java.lang.String
getType()
java.lang.String
getUid()
int
hashCode()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
void
writeTo(StreamOutput out)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Constructor Detail
-
LicenseInfo
public LicenseInfo(java.lang.String uid, java.lang.String type, java.lang.String mode, LicenseStatus status, long expiryDate)
-
LicenseInfo
public LicenseInfo(StreamInput in) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
-
getUid
public java.lang.String getUid()
-
getType
public java.lang.String getType()
-
getMode
public java.lang.String getMode()
-
getExpiryDate
public long getExpiryDate()
-
getStatus
public LicenseStatus getStatus()
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
-