Interface NetworkMigrationInsight.Builder

  • Method Details

    • networkMigrationDefinitionID

      NetworkMigrationInsight.Builder networkMigrationDefinitionID(String networkMigrationDefinitionID)

      The unique identifier of the network migration definition the insight belongs to.

      Parameters:
      networkMigrationDefinitionID - The unique identifier of the network migration definition the insight belongs to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkMigrationExecutionID

      NetworkMigrationInsight.Builder networkMigrationExecutionID(String networkMigrationExecutionID)

      The unique identifier of the network migration execution the insight belongs to.

      Parameters:
      networkMigrationExecutionID - The unique identifier of the network migration execution the insight belongs to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • producerID

      NetworkMigrationInsight.Builder producerID(String producerID)

      The identifier of the job or API request that produced the insight.

      Parameters:
      producerID - The identifier of the job or API request that produced the insight.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • producerType

      NetworkMigrationInsight.Builder producerType(String producerType)

      Whether the insight was produced by a job or by an API request.

      Parameters:
      producerType - Whether the insight was produced by a job or by an API request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • producerType

      Whether the insight was produced by a job or by an API request.

      Parameters:
      producerType - Whether the insight was produced by a job or by an API request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • producerName

      NetworkMigrationInsight.Builder producerName(String producerName)

      The job type or API name that produced the insight.

      Parameters:
      producerName - The job type or API name that produced the insight.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • producerName

      The job type or API name that produced the insight.

      Parameters:
      producerName - The job type or API name that produced the insight.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • segmentID

      The unique identifier of the segment the insight relates to; absent for run-level insights.

      Parameters:
      segmentID - The unique identifier of the segment the insight relates to; absent for run-level insights.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • constructID

      NetworkMigrationInsight.Builder constructID(String constructID)

      The unique identifier of the construct the insight relates to; absent for run-level and segment-level insights.

      Parameters:
      constructID - The unique identifier of the construct the insight relates to; absent for run-level and segment-level insights.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • insightID

      The unique identifier of the insight.

      Parameters:
      insightID - The unique identifier of the insight.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • insightLevel

      NetworkMigrationInsight.Builder insightLevel(String insightLevel)

      The level that the insight applies to: the run, a segment, or a construct.

      Parameters:
      insightLevel - The level that the insight applies to: the run, a segment, or a construct.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • insightLevel

      NetworkMigrationInsight.Builder insightLevel(InsightLevel insightLevel)

      The level that the insight applies to: the run, a segment, or a construct.

      Parameters:
      insightLevel - The level that the insight applies to: the run, a segment, or a construct.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • insightType

      NetworkMigrationInsight.Builder insightType(String insightType)

      The type of the insight.

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

      NetworkMigrationInsight.Builder insightType(InsightType insightType)

      The type of the insight.

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

      NetworkMigrationInsight.Builder insightMessage(InsightMessage insightMessage)

      The content of the insight.

      Parameters:
      insightMessage - The content of the insight.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • insightMessage

      default NetworkMigrationInsight.Builder insightMessage(Consumer<InsightMessage.Builder> insightMessage)

      The content of the insight.

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

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

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

      The timestamp when the insight was created.

      Parameters:
      createdAt - The timestamp when the insight was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.