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.XmlElement;
import jakarta.xml.bind.annotation.XmlRootElement;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.Map;

@XmlRootElement(name = "ClusterProperty")
@XmlType(name = "ClusterPropertyType", propOrder = {"nameValue", "valueValue", "properties", "extension", "extensions"})
@AccessorSupport.AccessibleResource(name = "clusterProperties")
public class ClusterPropertyMO extends ElementExtendableAccessibleObject {
   private AttributeExtensibleType.AttributeExtensibleString h;
   private AttributeExtensibleType.AttributeExtensibleString i;
   private Map<String, Object> j;

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

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

   public String getValue() {
      return AttributeExtensibleType.get(this.i);
   }

   public void setValue(String var1) {
      this.i = AttributeExtensibleType.set(this.i, var1);
   }

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

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

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

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

   @XmlElement(name = "Value", required = true)
   protected AttributeExtensibleType.AttributeExtensibleString getValueValue() {
      return this.i;
   }

   protected void setValueValue(AttributeExtensibleType.AttributeExtensibleString var1) {
      this.i = var1;
   }

   ClusterPropertyMO() {
   }
}
