Record Class McpSnmpCommandGenerator.VbRequest
java.lang.Object
java.lang.Record
org.snmp4j.mcp.tool.snmp.McpSnmpCommandGenerator.VbRequest
- Record Components:
oid- dotted-decimal or named OIDvalue- value string; may benullfor GET-type operationssmiType- optional SMI type name overriding automatic resolution
- Enclosing class:
McpSnmpCommandGenerator
public static record McpSnmpCommandGenerator.VbRequest(String oid, String value, String smiType)
extends Record
JSON representation of a single
VariableBinding within a McpSnmpCommandGenerator.PduRequest.
When smiType is provided the value string is treated as a raw value and
parsed directly with the given SMI type — no colon prefix is expected or interpreted on
the value. When smiType is absent the value may carry an inline
"type:value" prefix, or the type is resolved automatically via the SmiManager.
- Since:
- 0.1.0
-
Constructor Summary
Constructors -
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.oid()Returns the value of theoidrecord component.smiType()Returns the value of thesmiTyperecord component.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Constructor Details
-
VbRequest
-
-
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). -
oid
-
value
-
smiType
-