Class ApiConfiguration

    • Method Detail

      • graphQLConfig

        public final GraphQLRenderConfig graphQLConfig()

        The configuration for an application using GraphQL APIs.

        Returns:
        The configuration for an application using GraphQL APIs.
      • dataStoreConfig

        public final DataStoreRenderConfig dataStoreConfig()

        The configuration for an application using DataStore APIs.

        Returns:
        The configuration for an application using DataStore APIs.
      • noApiConfig

        public final NoApiRenderConfig noApiConfig()

        The configuration for an application with no API being used.

        Returns:
        The configuration for an application with no API being used.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromGraphQLConfig

        public static ApiConfiguration fromGraphQLConfig​(GraphQLRenderConfig graphQLConfig)
        Create an instance of this class with graphQLConfig() initialized to the given value.

        The configuration for an application using GraphQL APIs.

        Parameters:
        graphQLConfig - The configuration for an application using GraphQL APIs.
      • fromGraphQLConfig

        public static ApiConfiguration fromGraphQLConfig​(Consumer<GraphQLRenderConfig.Builder> graphQLConfig)
        Create an instance of this class with graphQLConfig() initialized to the given value.

        The configuration for an application using GraphQL APIs.

        Parameters:
        graphQLConfig - The configuration for an application using GraphQL APIs.
      • fromDataStoreConfig

        public static ApiConfiguration fromDataStoreConfig​(DataStoreRenderConfig dataStoreConfig)
        Create an instance of this class with dataStoreConfig() initialized to the given value.

        The configuration for an application using DataStore APIs.

        Parameters:
        dataStoreConfig - The configuration for an application using DataStore APIs.
      • fromDataStoreConfig

        public static ApiConfiguration fromDataStoreConfig​(Consumer<DataStoreRenderConfig.Builder> dataStoreConfig)
        Create an instance of this class with dataStoreConfig() initialized to the given value.

        The configuration for an application using DataStore APIs.

        Parameters:
        dataStoreConfig - The configuration for an application using DataStore APIs.
      • fromNoApiConfig

        public static ApiConfiguration fromNoApiConfig​(NoApiRenderConfig noApiConfig)
        Create an instance of this class with noApiConfig() initialized to the given value.

        The configuration for an application with no API being used.

        Parameters:
        noApiConfig - The configuration for an application with no API being used.
      • fromNoApiConfig

        public static ApiConfiguration fromNoApiConfig​(Consumer<NoApiRenderConfig.Builder> noApiConfig)
        Create an instance of this class with noApiConfig() initialized to the given value.

        The configuration for an application with no API being used.

        Parameters:
        noApiConfig - The configuration for an application with no API being used.