Record Class McpSnmpCommandGenerator.PduRequest
java.lang.Object
java.lang.Record
org.snmp4j.mcp.tool.snmp.McpSnmpCommandGenerator.PduRequest
- Record Components:
type- PDU type: GET, GETNEXT, GETBULK, SET, or INFORMvariableBindings- list of variable bindings in the PDUcontextName- optional SNMPv3 context namecontextEngineID- optional SNMPv3 context engine ID (hex string)maxRepetitions- max-repetitions for GETBULK; ignored for other typesnonRepeaters- non-repeaters for GETBULK; ignored for other types
- Enclosing class:
McpSnmpCommandGenerator
public static record McpSnmpCommandGenerator.PduRequest(String type, List<McpSnmpCommandGenerator.VbRequest> variableBindings, String contextName, String contextEngineID, Integer maxRepetitions, Integer nonRepeaters)
extends Record
JSON representation of an SNMP ScopedPDU sent to the tool as the
pdu parameter.- Since:
- 0.1.0
-
Constructor Summary
ConstructorsConstructorDescriptionPduRequest(String type, List<McpSnmpCommandGenerator.VbRequest> variableBindings, String contextName, String contextEngineID, Integer maxRepetitions, Integer nonRepeaters) Creates an instance of aPduRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecontextEngineIDrecord component.Returns the value of thecontextNamerecord 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 themaxRepetitionsrecord component.Returns the value of thenonRepeatersrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of thevariableBindingsrecord component.
-
Constructor Details
-
PduRequest
public PduRequest(String type, List<McpSnmpCommandGenerator.VbRequest> variableBindings, String contextName, String contextEngineID, Integer maxRepetitions, Integer nonRepeaters) Creates an instance of aPduRequestrecord class.- Parameters:
type- the value for thetyperecord componentvariableBindings- the value for thevariableBindingsrecord componentcontextName- the value for thecontextNamerecord componentcontextEngineID- the value for thecontextEngineIDrecord componentmaxRepetitions- the value for themaxRepetitionsrecord componentnonRepeaters- the value for thenonRepeatersrecord 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). -
type
-
variableBindings
Returns the value of thevariableBindingsrecord component.- Returns:
- the value of the
variableBindingsrecord component
-
contextName
Returns the value of thecontextNamerecord component.- Returns:
- the value of the
contextNamerecord component
-
contextEngineID
Returns the value of thecontextEngineIDrecord component.- Returns:
- the value of the
contextEngineIDrecord component
-
maxRepetitions
Returns the value of themaxRepetitionsrecord component.- Returns:
- the value of the
maxRepetitionsrecord component
-
nonRepeaters
Returns the value of thenonRepeatersrecord component.- Returns:
- the value of the
nonRepeatersrecord component
-