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 INFORM
variableBindings - list of variable bindings in the PDU
contextName - optional SNMPv3 context name
contextEngineID - optional SNMPv3 context engine ID (hex string)
maxRepetitions - max-repetitions for GETBULK; ignored for other types
nonRepeaters - 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 Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • variableBindings

      public List<McpSnmpCommandGenerator.VbRequest> variableBindings()
      Returns the value of the variableBindings record component.
      Returns:
      the value of the variableBindings record component
    • contextName

      public String contextName()
      Returns the value of the contextName record component.
      Returns:
      the value of the contextName record component
    • contextEngineID

      public String contextEngineID()
      Returns the value of the contextEngineID record component.
      Returns:
      the value of the contextEngineID record component
    • maxRepetitions

      public Integer maxRepetitions()
      Returns the value of the maxRepetitions record component.
      Returns:
      the value of the maxRepetitions record component
    • nonRepeaters

      public Integer nonRepeaters()
      Returns the value of the nonRepeaters record component.
      Returns:
      the value of the nonRepeaters record component