Interface SourceServer.Builder

  • Method Details

    • agentVersion

      SourceServer.Builder agentVersion(String agentVersion)

      The version of the DRS agent installed on the source server

      Parameters:
      agentVersion - The version of the DRS agent installed on the source server
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • arn

      The ARN of the Source Server.

      Parameters:
      arn - The ARN of the Source Server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataReplicationInfo

      SourceServer.Builder dataReplicationInfo(DataReplicationInfo dataReplicationInfo)

      The Data Replication Info of the Source Server.

      Parameters:
      dataReplicationInfo - The Data Replication Info of the Source Server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataReplicationInfo

      default SourceServer.Builder dataReplicationInfo(Consumer<DataReplicationInfo.Builder> dataReplicationInfo)

      The Data Replication Info of the Source Server.

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

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

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

      SourceServer.Builder lastLaunchResult(String lastLaunchResult)

      The status of the last recovery launch of this Source Server.

      Parameters:
      lastLaunchResult - The status of the last recovery launch of this Source Server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lastLaunchResult

      SourceServer.Builder lastLaunchResult(LastLaunchResult lastLaunchResult)

      The status of the last recovery launch of this Source Server.

      Parameters:
      lastLaunchResult - The status of the last recovery launch of this Source Server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lifeCycle

      SourceServer.Builder lifeCycle(LifeCycle lifeCycle)

      The lifecycle information of this Source Server.

      Parameters:
      lifeCycle - The lifecycle information of this Source Server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lifeCycle

      default SourceServer.Builder lifeCycle(Consumer<LifeCycle.Builder> lifeCycle)

      The lifecycle information of this Source Server.

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

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

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

      SourceServer.Builder recoveryInstanceId(String recoveryInstanceId)

      The ID of the Recovery Instance associated with this Source Server.

      Parameters:
      recoveryInstanceId - The ID of the Recovery Instance associated with this Source Server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • replicationDirection

      SourceServer.Builder replicationDirection(String replicationDirection)

      Replication direction of the Source Server.

      Parameters:
      replicationDirection - Replication direction of the Source Server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • replicationDirection

      SourceServer.Builder replicationDirection(ReplicationDirection replicationDirection)

      Replication direction of the Source Server.

      Parameters:
      replicationDirection - Replication direction of the Source Server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • reversedDirectionSourceServerArn

      SourceServer.Builder reversedDirectionSourceServerArn(String reversedDirectionSourceServerArn)

      For EC2-originated Source Servers which have been failed over and then failed back, this value will mean the ARN of the Source Server on the opposite replication direction.

      Parameters:
      reversedDirectionSourceServerArn - For EC2-originated Source Servers which have been failed over and then failed back, this value will mean the ARN of the Source Server on the opposite replication direction.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceCloudProperties

      SourceServer.Builder sourceCloudProperties(SourceCloudProperties sourceCloudProperties)

      Source cloud properties of the Source Server.

      Parameters:
      sourceCloudProperties - Source cloud properties of the Source Server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceCloudProperties

      default SourceServer.Builder sourceCloudProperties(Consumer<SourceCloudProperties.Builder> sourceCloudProperties)

      Source cloud properties of the Source Server.

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

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

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

      SourceServer.Builder sourceNetworkID(String sourceNetworkID)

      ID of the Source Network which is protecting this Source Server's network.

      Parameters:
      sourceNetworkID - ID of the Source Network which is protecting this Source Server's network.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceProperties

      SourceServer.Builder sourceProperties(SourceProperties sourceProperties)

      The source properties of the Source Server.

      Parameters:
      sourceProperties - The source properties of the Source Server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • sourceProperties

      default SourceServer.Builder sourceProperties(Consumer<SourceProperties.Builder> sourceProperties)

      The source properties of the Source Server.

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

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

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

      SourceServer.Builder sourceServerID(String sourceServerID)

      The ID of the Source Server.

      Parameters:
      sourceServerID - The ID of the Source Server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stagingArea

      SourceServer.Builder stagingArea(StagingArea stagingArea)

      The staging area of the source server.

      Parameters:
      stagingArea - The staging area of the source server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • stagingArea

      default SourceServer.Builder stagingArea(Consumer<StagingArea.Builder> stagingArea)

      The staging area of the source server.

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

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

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

      The tags associated with the Source Server.

      Parameters:
      tags - The tags associated with the Source Server.
      Returns:
      Returns a reference to this object so that method calls can be chained together.