package com.l7tech.gateway.api;

import com.l7tech.gateway.api.impl.AccessorSupport;
import com.l7tech.gateway.api.impl.AttributeExtensibleType;
import com.l7tech.gateway.api.impl.ElementExtendableAccessibleObject;
import com.l7tech.gateway.api.impl.PropertiesMapType;
import jakarta.xml.bind.annotation.XmlAnyElement;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.List;
import java.util.Map;

@XmlRootElement(name = "ActiveConnector")
@XmlType(name = "ActiveConnector", propOrder = {"nameValue", "enabledValue", "typeValue", "hardwiredIdValue", "properties", "extension", "extensions"})
@AccessorSupport.AccessibleResource(name = "activeConnectors")
public class ActiveConnectorMO extends ElementExtendableAccessibleObject {
   private AttributeExtensibleType.AttributeExtensibleString h;
   private AttributeExtensibleType.AttributeExtensibleBoolean i = new AttributeExtensibleType.AttributeExtensibleBoolean(false);
   private Map<String, String> j;
   private AttributeExtensibleType.AttributeExtensibleString k;
   private AttributeExtensibleType.AttributeExtensibleString l;

   public String getName() {
      return AttributeExtensibleType.get(this.h);
   }

   public void setName(String var1) {
      this.h = AttributeExtensibleType.set(this.h, var1);
   }

   public boolean isEnabled() {
      return AttributeExtensibleType.get(this.i, false);
   }

   public void setEnabled(boolean var1) {
      this.i = AttributeExtensibleType.set(this.i, var1);
   }

   public String getType() {
      return AttributeExtensibleType.get(this.k);
   }

   public void setType(String var1) {
      this.k = AttributeExtensibleType.set(this.k, var1);
   }

   public String getHardwiredId() {
      return AttributeExtensibleType.get(this.l);
   }

   public void setHardwiredId(String var1) {
      this.l = AttributeExtensibleType.set(this.l, var1);
   }

   @XmlElement(name = "Properties")
   @XmlJavaTypeAdapter(PropertiesMapType.PropertiesMapTypeAdapter.class)
   public Map<String, String> getProperties() {
      return this.j;
   }

   public void setProperties(Map<String, String> var1) {
      this.j = var1;
   }

   @XmlAnyElement(lax = true)
   @Override
   protected List<Object> getExtensions() {
      return super.getExtensions();
   }

   @XmlElement(name = "Type", required = true)
   protected AttributeExtensibleType.AttributeExtensibleString getTypeValue() {
      return this.k;
   }

   protected void setTypeValue(AttributeExtensibleType.AttributeExtensibleString var1) {
      this.k = var1;
   }

   @XmlElement(name = "Name", required = true)
   protected AttributeExtensibleType.AttributeExtensibleString getNameValue() {
      return this.h;
   }

   protected void setNameValue(AttributeExtensibleType.AttributeExtensibleString var1) {
      this.h = var1;
   }

   @XmlElement(name = "Enabled", required = true)
   protected AttributeExtensibleType.AttributeExtensibleBoolean getEnabledValue() {
      return this.i;
   }

   protected void setEnabledValue(AttributeExtensibleType.AttributeExtensibleBoolean var1) {
      this.i = var1;
   }

   @XmlElement(name = "HardwiredId", required = false)
   protected AttributeExtensibleType.AttributeExtensibleString getHardwiredIdValue() {
      return this.l;
   }

   protected void setHardwiredIdValue(AttributeExtensibleType.AttributeExtensibleString var1) {
      this.l = var1;
   }

   ActiveConnectorMO() {
   }
}
