Use this API to enable snmpalarm resources of given names.
175635
public static base_responses enable(nitro_service client, String trapname[]) throws Exception {
		base_responses result = null;
		if (trapname != null && trapname.length > 0) {
			snmpalarm enableresources[] = new snmpalarm[trapname.length];
			for (int i=0;i<trapname.length;i++){
				enableresources[i] = new snmpalarm();
				enableresources[i].trapname = trapname[i];
			}
			result = perform_operation_bulk_request(client, enableresources,"enable");
		}
		return result;
	}
835969
public static snmpengineid[] get(nitro_service service) throws Exception{
		snmpengineid obj = new snmpengineid();
		snmpengineid[] response = (snmpengineid[])obj.get_resources(service);
		return response;
	}
392633
public static base_response add(nitro_service client, snmpgroup resource) throws Exception {
		snmpgroup addresource = new snmpgroup();
		addresource.name = resource.name;
		addresource.securitylevel = resource.securitylevel;
		addresource.readviewname = resource.readviewname;
		return addresource.add_resource(client);
	}
547394
public static base_response add(nitro_service client, snmpmanager resource) throws Exception {
		snmpmanager addresource = new snmpmanager();
		addresource.ipaddress = resource.ipaddress;
		addresource.netmask = resource.netmask;
		addresource.domainresolveretry = resource.domainresolveretry;
		return addresource.add_resource(client);
	}
975889
public static base_response add(nitro_service client, snmpuser resource) throws Exception {
		snmpuser addresource = new snmpuser();
		addresource.name = resource.name;
		addresource.group = resource.group;
		addresource.authtype = resource.authtype;
		addresource.authpasswd = resource.authpasswd;
		addresource.privtype = resource.privtype;
		addresource.privpasswd = resource.privpasswd;
		return addresource.add_resource(client);
	}
726709
public static br_enable[] enable(nitro_service client, br_enable[] resources) throws Exception
	{
		if(resources == null)
			throw new Exception("Null resource array");
		
		
		if(resources.length == 1)
			return ((br_enable[]) resources[0].perform_operation(client, "enable"));
		
		return ((br_enable[]) perform_operation_bulk_request(client, resources, "enable"));
	}
441878
public static base_response unset(nitro_service client, snmpmanager resource, String[] args) throws Exception{
		snmpmanager unsetresource = new snmpmanager();
		unsetresource.ipaddress = resource.ipaddress;
		unsetresource.netmask = resource.netmask;
		return unsetresource.unset_resource(client,args);
	}
1209788
public static snmp_trap[] get(nitro_service client) throws Exception
	{
		snmp_trap resource = new snmp_trap();
		resource.validate("get");
		return (snmp_trap[]) resource.get_resources(client);
	}
992423
public static base_response enable(nitro_service client, dnsnameserver resource) throws Exception {
		dnsnameserver enableresource = new dnsnameserver();
		enableresource.ip = resource.ip;
		enableresource.dnsvservername = resource.dnsvservername;
		return enableresource.perform_operation(client,"enable");
	}
272919
public static base_response update(nitro_service client, snmpoption resource) throws Exception {
		snmpoption updateresource = new snmpoption();
		updateresource.snmpset = resource.snmpset;
		updateresource.snmptraplogging = resource.snmptraplogging;
		return updateresource.update_resource(client);
	}
545746
public static snmp_alarm_config[] get(nitro_service client) throws Exception
	{
		snmp_alarm_config resource = new snmp_alarm_config();
		resource.validate("get");
		return (snmp_alarm_config[]) resource.get_resources(client);
	}
19586
private static void setServiceEnabled(final XMPPConnection connection,
            final boolean isEnabled) {
        ServiceDiscoveryManager manager = ServiceDiscoveryManager
                .getInstanceFor(connection);

        List<String> namespaces = new ArrayList<>();
        namespaces.addAll(Arrays.asList(NAMESPACE));
        namespaces.add(DataPacketExtension.NAMESPACE);
        if (!IBB_ONLY) {
            namespaces.add(Bytestream.NAMESPACE);
        }

        for (String namespace : namespaces) {
            if (isEnabled) {
                manager.addFeature(namespace);
            } else {
                manager.removeFeature(namespace);
            }
        }
    }
332140
public static base_responses add(nitro_service client, snmpmanager resources[]) throws Exception {
		base_responses result = null;
		if (resources != null && resources.length > 0) {
			snmpmanager addresources[] = new snmpmanager[resources.length];
			for (int i=0;i<resources.length;i++){
				addresources[i] = new snmpmanager();
				addresources[i].ipaddress = resources[i].ipaddress;
				addresources[i].netmask = resources[i].netmask;
				addresources[i].domainresolveretry = resources[i].domainresolveretry;
			}
			result = add_bulk_request(client, addresources);
		}
		return result;
	}
478669
public static ns_snmp_config add(nitro_service client, ns_snmp_config resource) throws Exception
	{
		resource.validate("add");
		return ((ns_snmp_config[]) resource.perform_operation(client, "add"))[0];
	}
789703
public static base_response enable(nitro_service client, sslfipssimsource resource) throws Exception {
		sslfipssimsource enableresource = new sslfipssimsource();
		enableresource.targetsecret = resource.targetsecret;
		enableresource.sourcesecret = resource.sourcesecret;
		return enableresource.perform_operation(client,"enable");
	}
960088
def enable(resource_group_name, workflow_name, custom_headers:nil)
      response = enable_async(resource_group_name, workflow_name, custom_headers:custom_headers).value!
      nil
    end
1115680
public static snmpcommunity[] get(nitro_service service) throws Exception{
		snmpcommunity obj = new snmpcommunity();
		snmpcommunity[] response = (snmpcommunity[])obj.get_resources(service);
		return response;
	}