content: /*
   * Copyright 2014-2025 Real Logic Limited.
   *
   * Licensed 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 io.aeron.config;
  
  import java.io.Serializable;
  import java.util.concurrent.TimeUnit;
  
  /**
   * A handy class for storing data that gets serialized into json.
   */
  public class ConfigInfo implements Serializable
  {
      private static final long serialVersionUID = 6600224566064248728L;
  
      /**
       * Id.
       */
      public final String id;
      /**
       * List of expectations.
       */
      public final ExpectedConfig expectations;
      /**
       * Whether property was found.
       */
      public boolean foundPropertyName = false;
      /**
       * Whether default was found.
       */
      public boolean foundDefault = false;
      /**
       * Property description.
       */
      public String propertyNameDescription;
      /**
       * Property field name.
       */
      public String propertyNameFieldName;
      /**
       * Property class name.
       */
      public String propertyNameClassName;
      /**
       * Property name.
       */
      public String propertyName;
      /**
       * Default description.
       */
      public String defaultDescription;
      /**
       * Default field name.
       */
      public String defaultFieldName;
      /**
       * Default class name.
       */
      public String defaultClassName;
      /**
       * Default value.
       */
      public String defaultValue;
      /**
       * Default value string.
       */
      public String defaultValueString;
      /**
       * Default value type.
       */
      public DefaultType defaultValueType = DefaultType.UNDEFINED;
      /**
       * Default override type.
       */
      public String overrideDefaultValue;
      /**
       * Default override type value.
       */
      public DefaultType overrideDefaultValueType = DefaultType.UNDEFINED;
      /**
       * Uri param.
       */
      public String uriParam;
      /**
       * Whether property has context.
       */
      public boolean hasContext = true;
      /**
       * Context.
       */
      public String context;
      /**
       * Context description.
       */
      public String contextDescription;
      /**
       * Is time value.
       */
      public Boolean isTimeValue;
      /**
       * Time unit.
       */
      public TimeUnit timeUnit;
      /**
       * Whether property is deprecated.
       */
      public boolean deprecated = false;
  
      /**
       * @param id the unique identifier for this block o' config information.
       */
      public ConfigInfo(final String id)
      {
          this.id = id;
          expectations = new ExpectedConfig();
      }
  }
  