Package com.yahoo.vespa.athenz.api
Record Class AzureTemporaryCredentials
java.lang.Object
java.lang.Record
com.yahoo.vespa.athenz.api.AzureTemporaryCredentials
public record AzureTemporaryCredentials(String azureSubscription, String azureTenant, String accessToken, Instant expiration)
extends Record
- Author:
- freva
-
Constructor Summary
ConstructorsConstructorDescriptionAzureTemporaryCredentials
(String azureSubscription, String azureTenant, String accessToken, Instant expiration) Creates an instance of aAzureTemporaryCredentials
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessToken
record component.Returns the value of theazureSubscription
record component.Returns the value of theazureTenant
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theexpiration
record component.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AzureTemporaryCredentials
public AzureTemporaryCredentials(String azureSubscription, String azureTenant, String accessToken, Instant expiration) Creates an instance of aAzureTemporaryCredentials
record class.- Parameters:
azureSubscription
- the value for theazureSubscription
record componentazureTenant
- the value for theazureTenant
record componentaccessToken
- the value for theaccessToken
record componentexpiration
- the value for theexpiration
record component
-
-
Method Details
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
azureSubscription
Returns the value of theazureSubscription
record component.- Returns:
- the value of the
azureSubscription
record component
-
azureTenant
Returns the value of theazureTenant
record component.- Returns:
- the value of the
azureTenant
record component
-
accessToken
Returns the value of theaccessToken
record component.- Returns:
- the value of the
accessToken
record component
-
expiration
Returns the value of theexpiration
record component.- Returns:
- the value of the
expiration
record component
-