Interface GrantItem.Builder

All Superinterfaces:
Buildable, CopyableBuilder<GrantItem.Builder,GrantItem>, SdkBuilder<GrantItem.Builder,GrantItem>, SdkPojo
Enclosing class:
GrantItem

public static interface GrantItem.Builder extends SdkPojo, CopyableBuilder<GrantItem.Builder,GrantItem>
  • Method Details

    • grant

      GrantItem.Builder grant(Grant grant)

      The configuration structure for the selected grant.

      Parameters:
      grant - The configuration structure for the selected grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • grant

      default GrantItem.Builder grant(Consumer<Grant.Builder> grant)

      The configuration structure for the selected grant.

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

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

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

      GrantItem.Builder grantType(String grantType)

      The type of the selected grant.

      Parameters:
      grantType - The type of the selected grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • grantType

      GrantItem.Builder grantType(GrantType grantType)

      The type of the selected grant.

      Parameters:
      grantType - The type of the selected grant.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: