public final TransferTypes.AgentPool createAgentPool(
      String projectId, TransferTypes.AgentPool agentPool, String agentPoolId) {
    TransferProto.CreateAgentPoolRequest request =
        TransferProto.CreateAgentPoolRequest.newBuilder()
            .setProjectId(projectId)
            .setAgentPool(agentPool)
            .setAgentPoolId(agentPoolId)
            .build();
    return createAgentPool(request);
  }
Creates an agent pool resource.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (StorageTransferServiceClient storageTransferServiceClient =
    StorageTransferServiceClient.create()) {
  String projectId = "projectId-894832108";
  TransferTypes.AgentPool agentPool = TransferTypes.AgentPool.newBuilder().build();
  String agentPoolId = "agentPoolId1562124732";
  TransferTypes.AgentPool response =
      storageTransferServiceClient.createAgentPool(projectId, agentPool, agentPoolId);
}
}</pre>

@param projectId Required. The ID of the Google Cloud project that owns the agent pool.
@param agentPool Required. The agent pool to create.
@param agentPoolId Required. The ID of the agent pool to create.
    <p>The `agent_pool_id` must meet the following requirements:
    <ul>
      <li>Length of 128 characters or less.
      <li>Not start with the string `goog`.
      <li>Start with a lowercase ASCII character, followed by: &#42; Zero or more: lowercase
          Latin alphabet characters, numerals, hyphens (`-`), periods (`.`), underscores (`_`),
          or tildes (`~`). &#42; One or more numerals or lowercase ASCII characters.
    </ul>
    <p>As expressed by the regular expression: `^(?!goog)[a-z]([a-z0-9-._~]&#42;[a-z0-9])?$`.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-storage-transfer/google-cloud-storage-transfer/src/main/java/com/google/storagetransfer/v1/proto/StorageTransferServiceClient.java