Interface ServerGroup.Builder

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

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

    • serverGroupId

      ServerGroup.Builder serverGroupId(String serverGroupId)

      The ID of a server group.

      Parameters:
      serverGroupId - The ID of a server group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      The name of a server group.

      Parameters:
      name - The name of a server group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serverList

      ServerGroup.Builder serverList(Collection<Server> serverList)

      The servers that belong to a server group.

      Parameters:
      serverList - The servers that belong to a server group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serverList

      ServerGroup.Builder serverList(Server... serverList)

      The servers that belong to a server group.

      Parameters:
      serverList - The servers that belong to a server group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • serverList

      ServerGroup.Builder serverList(Consumer<Server.Builder>... serverList)

      The servers that belong to a server group.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to serverList(List<Server>).

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