/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */
package org.apache.plc4x.java.ads.readwrite;

import java.util.HashMap;
import java.util.Map;

// Code generated by code-generation. DO NOT EDIT.

public enum DefaultAmsPorts {
  CAM_CONTROLLER((int) 900),
  RUNTIME_SYSTEM_01((int) 851),
  RUNTIME_SYSTEM_02((int) 852),
  RUNTIME_SYSTEM_03((int) 853),
  RUNTIME_SYSTEM_04((int) 854),
  RUNTIME_SYSTEM_05((int) 855),
  RUNTIME_SYSTEM_06((int) 856),
  RUNTIME_SYSTEM_07((int) 857),
  RUNTIME_SYSTEM_08((int) 858),
  RUNTIME_SYSTEM_09((int) 859),
  RUNTIME_SYSTEM_10((int) 860),
  RUNTIME_SYSTEM_11((int) 861),
  RUNTIME_SYSTEM_12((int) 862),
  RUNTIME_SYSTEM_13((int) 863),
  RUNTIME_SYSTEM_14((int) 864),
  RUNTIME_SYSTEM_15((int) 865),
  RUNTIME_SYSTEM_16((int) 866),
  RUNTIME_SYSTEM_17((int) 867),
  RUNTIME_SYSTEM_18((int) 868),
  RUNTIME_SYSTEM_19((int) 869),
  RUNTIME_SYSTEM_20((int) 870),
  RUNTIME_SYSTEM_21((int) 871),
  RUNTIME_SYSTEM_22((int) 872),
  RUNTIME_SYSTEM_23((int) 873),
  RUNTIME_SYSTEM_24((int) 874),
  RUNTIME_SYSTEM_25((int) 875),
  RUNTIME_SYSTEM_26((int) 876),
  RUNTIME_SYSTEM_27((int) 877),
  RUNTIME_SYSTEM_28((int) 878),
  RUNTIME_SYSTEM_29((int) 879),
  RUNTIME_SYSTEM_30((int) 880),
  RUNTIME_SYSTEM_31((int) 881),
  RUNTIME_SYSTEM_32((int) 882),
  RUNTIME_SYSTEM_33((int) 883),
  RUNTIME_SYSTEM_34((int) 884),
  RUNTIME_SYSTEM_35((int) 885),
  RUNTIME_SYSTEM_36((int) 886),
  RUNTIME_SYSTEM_37((int) 887),
  RUNTIME_SYSTEM_38((int) 888),
  RUNTIME_SYSTEM_39((int) 889),
  RUNTIME_SYSTEM_40((int) 890),
  RUNTIME_SYSTEM_41((int) 891),
  RUNTIME_SYSTEM_42((int) 892),
  RUNTIME_SYSTEM_43((int) 893),
  RUNTIME_SYSTEM_44((int) 894),
  RUNTIME_SYSTEM_45((int) 895),
  RUNTIME_SYSTEM_46((int) 896),
  RUNTIME_SYSTEM_47((int) 897),
  RUNTIME_SYSTEM_48((int) 898),
  RUNTIME_SYSTEM_49((int) 899),
  NC((int) 500),
  RESERVED((int) 400),
  IO((int) 300),
  REAL_TIME_CORE((int) 200),
  EVENT_SYSTEM_LOGGER((int) 100);
  private static final Map<Integer, DefaultAmsPorts> map;

  static {
    map = new HashMap<>();
    for (DefaultAmsPorts value : DefaultAmsPorts.values()) {
      map.put((int) value.getValue(), value);
    }
  }

  private final int value;

  DefaultAmsPorts(int value) {
    this.value = value;
  }

  public int getValue() {
    return value;
  }

  public static DefaultAmsPorts enumForValue(int value) {
    return map.get(value);
  }

  public static Boolean isDefined(int value) {
    return map.containsKey(value);
  }
}
