Module org.elasticsearch.xcore
Record Class CloudCredential
java.lang.Object
java.lang.Record
org.elasticsearch.xpack.core.security.cloud.CloudCredential
- All Implemented Interfaces:
Closeable,AutoCloseable,Writeable,Releasable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionCloudCredential(SecureString value) Creates an instance of aCloudCredentialrecord class. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.voidwriteTo(StreamOutput out)
-
Constructor Details
-
CloudCredential
- Throws:
IOException
-
CloudCredential
Creates an instance of aCloudCredentialrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceReleasable
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-