Record Class ImageToolModel
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.ImageToolModel
@Generated("copilot-sdk-codegen")
public record ImageToolModel(String id, String name, List<ImageToolModelOperation> supportedOperations, Boolean isDefault, ImageToolModelAvailability availability, ImageToolModelPricing pricing)
extends Record
The runtime-selected image model and its account availability. Availability is independent of per-session image-generation enablement and does not override session policy or permissions.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionImageToolModel(String id, String name, List<ImageToolModelOperation> supportedOperations, Boolean isDefault, ImageToolModelAvailability availability, ImageToolModelPricing pricing) Creates an instance of aImageToolModelrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theavailabilityrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theisDefaultrecord component.name()Returns the value of thenamerecord component.pricing()Returns the value of thepricingrecord component.Returns the value of thesupportedOperationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ImageToolModel
public ImageToolModel(String id, String name, List<ImageToolModelOperation> supportedOperations, Boolean isDefault, ImageToolModelAvailability availability, ImageToolModelPricing pricing) Creates an instance of aImageToolModelrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentsupportedOperations- the value for thesupportedOperationsrecord componentisDefault- the value for theisDefaultrecord componentavailability- the value for theavailabilityrecord componentpricing- the value for thepricingrecord component
-
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
supportedOperations
Returns the value of thesupportedOperationsrecord component.- Returns:
- the value of the
supportedOperationsrecord component
-
isDefault
Returns the value of theisDefaultrecord component.- Returns:
- the value of the
isDefaultrecord component
-
availability
Returns the value of theavailabilityrecord component.- Returns:
- the value of the
availabilityrecord component
-
pricing
Returns the value of thepricingrecord component.- Returns:
- the value of the
pricingrecord component
-