Class CreateApiKeyResponse
java.lang.Object
org.elasticsearch.client.security.CreateApiKeyResponse
public final class CreateApiKeyResponse
extends java.lang.Object
Response for create API key
-
Constructor Summary
Constructors Constructor Description CreateApiKeyResponse(java.lang.String name, java.lang.String id, SecureString key, java.time.Instant expiration)
-
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object obj)
static CreateApiKeyResponse
fromXContent(XContentParser parser)
java.time.Instant
getExpiration()
java.lang.String
getId()
SecureString
getKey()
java.lang.String
getName()
int
hashCode()
-
Constructor Details
-
CreateApiKeyResponse
public CreateApiKeyResponse(java.lang.String name, java.lang.String id, SecureString key, java.time.Instant expiration)
-
-
Method Details
-
getName
public java.lang.String getName() -
getId
public java.lang.String getId() -
getKey
-
getExpiration
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classjava.lang.Object
-
fromXContent
- Throws:
java.io.IOException
-