Interface VsamDetailAttributes.Builder

    • Method Detail

      • alternateKeys

        VsamDetailAttributes.Builder alternateKeys​(Collection<AlternateKey> alternateKeys)

        The alternate key definitions, if any. A legacy dataset might not have any alternate key defined, but if those alternate keys definitions exist, provide them as some applications will make use of them.

        Parameters:
        alternateKeys - The alternate key definitions, if any. A legacy dataset might not have any alternate key defined, but if those alternate keys definitions exist, provide them as some applications will make use of them.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • alternateKeys

        VsamDetailAttributes.Builder alternateKeys​(AlternateKey... alternateKeys)

        The alternate key definitions, if any. A legacy dataset might not have any alternate key defined, but if those alternate keys definitions exist, provide them as some applications will make use of them.

        Parameters:
        alternateKeys - The alternate key definitions, if any. A legacy dataset might not have any alternate key defined, but if those alternate keys definitions exist, provide them as some applications will make use of them.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • alternateKeys

        VsamDetailAttributes.Builder alternateKeys​(Consumer<AlternateKey.Builder>... alternateKeys)

        The alternate key definitions, if any. A legacy dataset might not have any alternate key defined, but if those alternate keys definitions exist, provide them as some applications will make use of them.

        This is a convenience method that creates an instance of the AlternateKey.Builder avoiding the need to create one manually via AlternateKey.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #alternateKeys(List).

        Parameters:
        alternateKeys - a consumer that will call methods on AlternateKey.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #alternateKeys(java.util.Collection)
      • cacheAtStartup

        VsamDetailAttributes.Builder cacheAtStartup​(Boolean cacheAtStartup)

        If set to True, enforces loading the data set into cache before it’s used by the application.

        Parameters:
        cacheAtStartup - If set to True, enforces loading the data set into cache before it’s used by the application.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • compressed

        VsamDetailAttributes.Builder compressed​(Boolean compressed)

        Indicates whether indexes for this dataset are stored as compressed values. If you have a large data set (typically > 100 Mb), consider setting this flag to True.

        Parameters:
        compressed - Indicates whether indexes for this dataset are stored as compressed values. If you have a large data set (typically > 100 Mb), consider setting this flag to True.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • encoding

        VsamDetailAttributes.Builder encoding​(String encoding)

        The character set used by the data set. Can be ASCII, EBCDIC, or unknown.

        Parameters:
        encoding - The character set used by the data set. Can be ASCII, EBCDIC, or unknown.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • primaryKey

        VsamDetailAttributes.Builder primaryKey​(PrimaryKey primaryKey)

        The primary key of the data set.

        Parameters:
        primaryKey - The primary key of the data set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • recordFormat

        VsamDetailAttributes.Builder recordFormat​(String recordFormat)

        The record format of the data set.

        Parameters:
        recordFormat - The record format of the data set.
        Returns:
        Returns a reference to this object so that method calls can be chained together.