All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.vmware.avi.sdk.model.SnmpConfiguration Maven / Gradle / Ivy

Go to download

Avi SDK is a java API which creates a session with controller and perform CRUD operations.

There is a newer version: 31.1.1.RELEASE
Show newest version
/*
 * Copyright 2021 VMware, Inc.
 * SPDX-License-Identifier: Apache License 2.0
 */

package com.vmware.avi.sdk.model;

import java.util.*;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * The SnmpConfiguration is a POJO class extends AviRestResource that used for creating
 * SnmpConfiguration.
 *
 * @version 1.0
 * @since 
 *
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SnmpConfiguration  {
    @JsonProperty("community")
    private String community;

    @JsonProperty("large_trap_payload")
    private Boolean largeTrapPayload = false;

    @JsonProperty("snmp_v3_config")
    private SnmpV3Configuration snmpV3Config;

    @JsonProperty("sys_contact")
    private String sysContact = "[email protected]";

    @JsonProperty("sys_location")
    private String sysLocation;

    @JsonProperty("version")
    private String version = "SNMP_VER2";



    /**
     * This is the getter method this will return the attribute value.
     * Community string for snmp v2c.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return community
     */
    public String getCommunity() {
        return community;
    }

    /**
     * This is the setter method to the attribute.
     * Community string for snmp v2c.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param community set the community.
     */
    public void setCommunity(String  community) {
        this.community = community;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Support for 4096 bytes trap payload.
     * Field introduced in 17.2.13,18.1.4,18.2.1.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as false.
     * @return largeTrapPayload
     */
    public Boolean getLargeTrapPayload() {
        return largeTrapPayload;
    }

    /**
     * This is the setter method to the attribute.
     * Support for 4096 bytes trap payload.
     * Field introduced in 17.2.13,18.1.4,18.2.1.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as false.
     * @param largeTrapPayload set the largeTrapPayload.
     */
    public void setLargeTrapPayload(Boolean  largeTrapPayload) {
        this.largeTrapPayload = largeTrapPayload;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Snmp version 3 configuration.
     * Field introduced in 17.2.3.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return snmpV3Config
     */
    public SnmpV3Configuration getSnmpV3Config() {
        return snmpV3Config;
    }

    /**
     * This is the setter method to the attribute.
     * Snmp version 3 configuration.
     * Field introduced in 17.2.3.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param snmpV3Config set the snmpV3Config.
     */
    public void setSnmpV3Config(SnmpV3Configuration snmpV3Config) {
        this.snmpV3Config = snmpV3Config;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Sets the syscontact in system mib.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as "[email protected]".
     * @return sysContact
     */
    public String getSysContact() {
        return sysContact;
    }

    /**
     * This is the setter method to the attribute.
     * Sets the syscontact in system mib.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as "[email protected]".
     * @param sysContact set the sysContact.
     */
    public void setSysContact(String  sysContact) {
        this.sysContact = sysContact;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Sets the syslocation in system mib.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @return sysLocation
     */
    public String getSysLocation() {
        return sysLocation;
    }

    /**
     * This is the setter method to the attribute.
     * Sets the syslocation in system mib.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as null.
     * @param sysLocation set the sysLocation.
     */
    public void setSysLocation(String  sysLocation) {
        this.sysLocation = sysLocation;
    }

    /**
     * This is the getter method this will return the attribute value.
     * Snmp version support.
     * V2 or v3.
     * Enum options - SNMP_VER2, SNMP_VER3.
     * Field introduced in 17.2.3.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as "SNMP_VER2".
     * @return version
     */
    public String getVersion() {
        return version;
    }

    /**
     * This is the setter method to the attribute.
     * Snmp version support.
     * V2 or v3.
     * Enum options - SNMP_VER2, SNMP_VER3.
     * Field introduced in 17.2.3.
     * Allowed in enterprise edition with any value, essentials, basic, enterprise with cloud services edition.
     * Default value when not specified in API or module is interpreted by Avi Controller as "SNMP_VER2".
     * @param version set the version.
     */
    public void setVersion(String  version) {
        this.version = version;
    }


    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
          return true;
      }
      if (o == null || getClass() != o.getClass()) {
          return false;
      }
      SnmpConfiguration objSnmpConfiguration = (SnmpConfiguration) o;
      return   Objects.equals(this.community, objSnmpConfiguration.community)&&
  Objects.equals(this.sysLocation, objSnmpConfiguration.sysLocation)&&
  Objects.equals(this.sysContact, objSnmpConfiguration.sysContact)&&
  Objects.equals(this.version, objSnmpConfiguration.version)&&
  Objects.equals(this.snmpV3Config, objSnmpConfiguration.snmpV3Config)&&
  Objects.equals(this.largeTrapPayload, objSnmpConfiguration.largeTrapPayload);
    }

    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class SnmpConfiguration {\n");
                  sb.append("    community: ").append(toIndentedString(community)).append("\n");
                        sb.append("    largeTrapPayload: ").append(toIndentedString(largeTrapPayload)).append("\n");
                        sb.append("    snmpV3Config: ").append(toIndentedString(snmpV3Config)).append("\n");
                        sb.append("    sysContact: ").append(toIndentedString(sysContact)).append("\n");
                        sb.append("    sysLocation: ").append(toIndentedString(sysLocation)).append("\n");
                        sb.append("    version: ").append(toIndentedString(version)).append("\n");
                  sb.append("}");
      return sb.toString();
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
      if (o == null) {
          return "null";
      }
      return o.toString().replace("\n", "\n    ");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy