Interface MultiLocationConfig.Builder

  • Method Details

    • locationType

      MultiLocationConfig.Builder locationType(String locationType)

      Indicates whether this canary is the Primary or a Replica in the multi-location configuration.

      Parameters:
      locationType - Indicates whether this canary is the Primary or a Replica in the multi-location configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • locationType

      MultiLocationConfig.Builder locationType(LocationType locationType)

      Indicates whether this canary is the Primary or a Replica in the multi-location configuration.

      Parameters:
      locationType - Indicates whether this canary is the Primary or a Replica in the multi-location configuration.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • primaryLocation

      MultiLocationConfig.Builder primaryLocation(String primaryLocation)

      The Amazon Web Services Region where the primary canary is located.

      Parameters:
      primaryLocation - The Amazon Web Services Region where the primary canary is located.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • replicas

      A list of replicas for this canary. This field is present only for the primary location canary.

      Parameters:
      replicas - A list of replicas for this canary. This field is present only for the primary location canary.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • replicas

      MultiLocationConfig.Builder replicas(Replica... replicas)

      A list of replicas for this canary. This field is present only for the primary location canary.

      Parameters:
      replicas - A list of replicas for this canary. This field is present only for the primary location canary.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • replicas

      A list of replicas for this canary. This field is present only for the primary location canary.

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

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

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

      MultiLocationConfig.Builder replicationState(String replicationState)

      The overall replication state of the canary across all replica locations. This field is present only for the primary location canary. Valid values are InProgress, InSync, and Inconsistent.

      Parameters:
      replicationState - The overall replication state of the canary across all replica locations. This field is present only for the primary location canary. Valid values are InProgress, InSync, and Inconsistent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • replicationState

      MultiLocationConfig.Builder replicationState(ReplicationState replicationState)

      The overall replication state of the canary across all replica locations. This field is present only for the primary location canary. Valid values are InProgress, InSync, and Inconsistent.

      Parameters:
      replicationState - The overall replication state of the canary across all replica locations. This field is present only for the primary location canary. Valid values are InProgress, InSync, and Inconsistent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: