io.vertx.config

## Class ConfigStoreOptions

- java.lang.Object
- - io.vertx.config.ConfigStoreOptions

-     public class ConfigStoreOptions
      extends Object

  Data object representing the configuration of a configuration store. This object describes the configuration of a chunk of configuration that you retrieve. It specifies its type (type of configuration store), the format of the retrieved configuration chunk, and you can also configures the store if it needs configuration to retrieve the configuration chunk.
  Author:
    Clement Escoffier

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ConfigStoreOptions()`
    `ConfigStoreOptions(ConfigStoreOptions other)`
    `ConfigStoreOptions(JsonObject json)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `JsonObject` | `getConfig()`
    `String` | `getFormat()`
    `String` | `getType()`
    `boolean` | `isOptional()`
    `ConfigStoreOptions` | `setConfig(JsonObject config)` Sets the configuration of the store
    `ConfigStoreOptions` | `setFormat(String format)` Sets the format of the configuration that is retrieved from the store.
    `ConfigStoreOptions` | `setOptional(boolean optional)` Sets whether or not the store is optional.
    `ConfigStoreOptions` | `setType(String type)` Sets the configuration type
    `JsonObject` | `toJson()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ConfigStoreOptions

          public ConfigStoreOptions()

    - #### ConfigStoreOptions

          public ConfigStoreOptions(ConfigStoreOptions other)

    - #### ConfigStoreOptions

          public ConfigStoreOptions(JsonObject json)

  - ### Method Detail

    - #### toJson

          public JsonObject toJson()

    - #### getType

          public String getType()

      Returns:
        the configuration type, it specified from which store the configuration is coming.

    - #### setType

          public ConfigStoreOptions setType(String type)

      Sets the configuration type
      Parameters:
        `type` - the type
      Returns:
        the current instance of `ConfigStoreOptions`

    - #### getConfig

          public JsonObject getConfig()

      Returns:
        the configuration of the store, may be `null` if not needed.

    - #### setConfig

          public ConfigStoreOptions setConfig(JsonObject config)

      Sets the configuration of the store
      Parameters:
        `config` - the data, can be `null`
      Returns:
        the current instance of `ConfigStoreOptions`

    - #### getFormat

          public String getFormat()

      Returns:
        the format of the configuration that is retrieved from the store.

    - #### isOptional

          public boolean isOptional()

      Returns:
        whether or not the store is considered as optional. When the configuration is retrieve, if an optional store returns a failure, the failure is ignored and an empty json object is used instead (for this store). The default value is false.

    - #### setOptional

          public ConfigStoreOptions setOptional(boolean optional)

      Sets whether or not the store is optional. When the configuration is retrieve, if an optional store returns a failure, the failure is ignored and an empty json object is used instead (for this store).
      Parameters:
        `optional` - whether or not the store is optional.
      Returns:
        the current instance of `ConfigStoreOptions`

    - #### setFormat

          public ConfigStoreOptions setFormat(String format)

      Sets the format of the configuration that is retrieved from the store.
      Parameters:
        `format` - the format, must not be `null`.
      Returns:
        the current instance of `ConfigStoreOptions`

Copyright © 2021 Eclipse. All rights reserved.