Interface VsamAttributes.Builder

  • Method Details

    • alternateKeys

      VsamAttributes.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

      VsamAttributes.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

      VsamAttributes.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<AlternateKey>).

      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:
    • compressed

      VsamAttributes.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

      VsamAttributes.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.
    • format

      The record format of the data set.

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

      VsamAttributes.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.
    • primaryKey

      default VsamAttributes.Builder primaryKey(Consumer<PrimaryKey.Builder> primaryKey)

      The primary key of the data set.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to primaryKey(PrimaryKey).

      Parameters:
      primaryKey - a consumer that will call methods on PrimaryKey.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: