Record Class ModifyOpenapiReq
java.lang.Object
java.lang.Record
io.github.xezzon.zeroweb.openapi.entity.ModifyOpenapiReq
- Record Components:
id- 对外接口标识code- 接口编码destination- 后端地址httpMethod- 请求接口的HTTP方法
- All Implemented Interfaces:
io.github.xezzon.tao.trait.Into<Openapi>
public record ModifyOpenapiReq(String id, @Alphanumeric(excludes="\\.") String code, String destination, HttpMethod httpMethod)
extends Record
implements io.github.xezzon.tao.trait.Into<Openapi>
- Author:
- xezzon
-
Constructor Summary
ConstructorsConstructorDescriptionModifyOpenapiReq(String id, @Alphanumeric(excludes="\\.") String code, String destination, HttpMethod httpMethod) Creates an instance of aModifyOpenapiReqrecord class. -
Method Summary
Modifier and TypeMethodDescription@Alphanumeric(excludes="\\.") Stringcode()Returns the value of thecoderecord component.Returns the value of thedestinationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thehttpMethodrecord component.id()Returns the value of theidrecord component.into()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ModifyOpenapiReq
public ModifyOpenapiReq(String id, @Alphanumeric(excludes="\\.") @Alphanumeric(excludes="\\.") String code, String destination, HttpMethod httpMethod) Creates an instance of aModifyOpenapiReqrecord class.- Parameters:
id- the value for theidrecord componentcode- the value for thecoderecord componentdestination- the value for thedestinationrecord componenthttpMethod- the value for thehttpMethodrecord component
-
-
Method Details
-
into
- Specified by:
intoin interfaceio.github.xezzon.tao.trait.Into<Openapi>
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
code
Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
httpMethod
Returns the value of thehttpMethodrecord component.- Returns:
- the value of the
httpMethodrecord component
-