Record Class CreateIntegrationRequest
java.lang.Object
java.lang.Record
com.nicholasalfonso.lato.dto.request.CreateIntegrationRequest
- Record Components:
provider- optional LMS provider; auto-detected from feed content when omittedicsUrl- the iCalendar feed URL to sync from
public record CreateIntegrationRequest(Integration.LMSProvider provider, @NotBlank String icsUrl)
extends Record
Request body for linking a new LMS iCalendar integration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreateIntegrationRequest(Integration.LMSProvider provider, @NotBlank String icsUrl) Creates an instance of aCreateIntegrationRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotBlank StringicsUrl()Returns the value of theicsUrlrecord component.provider()Returns the value of theproviderrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CreateIntegrationRequest
public CreateIntegrationRequest(Integration.LMSProvider provider, @NotBlank @NotBlank String icsUrl) Creates an instance of aCreateIntegrationRequestrecord class.
-
-
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). -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
icsUrl
Returns the value of theicsUrlrecord component.- Returns:
- the value of the
icsUrlrecord component
-