Record Class OAuth2SecurityScheme_v0_3
java.lang.Object
java.lang.Record
org.a2aproject.sdk.compat03.spec.OAuth2SecurityScheme_v0_3
- All Implemented Interfaces:
SecurityScheme_v0_3
public record OAuth2SecurityScheme_v0_3(OAuthFlows_v0_3 flows, @Nullable String description, @Nullable String oauth2MetadataUrl, String type)
extends Record
implements SecurityScheme_v0_3
Defines a security scheme using OAuth 2.0.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOAuth2SecurityScheme_v0_3(OAuthFlows_v0_3 flows, @Nullable String description, @Nullable String oauth2MetadataUrl) OAuth2SecurityScheme_v0_3(OAuthFlows_v0_3 flows, @Nullable String description, @Nullable String oauth2MetadataUrl, @Nullable String type) Creates an instance of aOAuth2SecurityScheme_v0_3record class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.flows()Returns the value of theflowsrecord component.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theoauth2MetadataUrlrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
OAuth2SecurityScheme_v0_3
public OAuth2SecurityScheme_v0_3(OAuthFlows_v0_3 flows, @Nullable String description, @Nullable String oauth2MetadataUrl, @Nullable String type) Creates an instance of aOAuth2SecurityScheme_v0_3record class.- Parameters:
flows- the value for theflowsrecord componentdescription- the value for thedescriptionrecord componentoauth2MetadataUrl- the value for theoauth2MetadataUrlrecord componenttype- the value for thetyperecord component
-
OAuth2SecurityScheme_v0_3
public OAuth2SecurityScheme_v0_3(OAuthFlows_v0_3 flows, @Nullable String description, @Nullable String oauth2MetadataUrl)
-
-
Method Details
-
toString
-
hashCode
-
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). -
flows
Returns the value of theflowsrecord component.- Returns:
- the value of the
flowsrecord component
-
description
Returns the value of thedescriptionrecord component.- Specified by:
descriptionin interfaceSecurityScheme_v0_3- Returns:
- the value of the
descriptionrecord component
-
oauth2MetadataUrl
Returns the value of theoauth2MetadataUrlrecord component.- Returns:
- the value of the
oauth2MetadataUrlrecord component
-
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceSecurityScheme_v0_3- Returns:
- the value of the
typerecord component
-