Interface Policy.Builder

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

@Mutable @NotThreadSafe public static interface Policy.Builder extends SdkPojo, CopyableBuilder<Policy.Builder,Policy>
  • Method Details

    • policyArn

      Policy.Builder policyArn(String policyArn)
      Sets the value of the PolicyArn property for this object.
      Parameters:
      policyArn - The new value for the PolicyArn property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • name

      Policy.Builder name(String name)
      Sets the value of the Name property for this object.
      Parameters:
      name - The new value for the Name property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • description

      Policy.Builder description(String description)
      Sets the value of the Description property for this object.
      Parameters:
      description - The new value for the Description property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilitySlo

      Policy.Builder availabilitySlo(AvailabilitySlo availabilitySlo)

      The availability SLO defined in the policy.

      Parameters:
      availabilitySlo - The availability SLO defined in the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • availabilitySlo

      default Policy.Builder availabilitySlo(Consumer<AvailabilitySlo.Builder> availabilitySlo)

      The availability SLO defined in the policy.

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

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

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

      Policy.Builder multiAz(MultiAzTargets multiAz)

      The multi-AZ disaster recovery targets defined in the policy.

      Parameters:
      multiAz - The multi-AZ disaster recovery targets defined in the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • multiAz

      default Policy.Builder multiAz(Consumer<MultiAzTargets.Builder> multiAz)

      The multi-AZ disaster recovery targets defined in the policy.

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

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

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

      Policy.Builder multiRegion(MultiRegionTargets multiRegion)

      The multi-Region disaster recovery targets defined in the policy.

      Parameters:
      multiRegion - The multi-Region disaster recovery targets defined in the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • multiRegion

      default Policy.Builder multiRegion(Consumer<MultiRegionTargets.Builder> multiRegion)

      The multi-Region disaster recovery targets defined in the policy.

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

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

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

      Policy.Builder dataRecovery(DataRecoveryTargets dataRecovery)

      The data recovery targets defined in the policy.

      Parameters:
      dataRecovery - The data recovery targets defined in the policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • dataRecovery

      default Policy.Builder dataRecovery(Consumer<DataRecoveryTargets.Builder> dataRecovery)

      The data recovery targets defined in the policy.

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

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

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

      Policy.Builder kmsKeyId(String kmsKeyId)
      Sets the value of the KmsKeyId property for this object.
      Parameters:
      kmsKeyId - The new value for the KmsKeyId property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • tags

      Sets the value of the Tags property for this object.
      Parameters:
      tags - The new value for the Tags property for this object.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • associatedServiceCount

      Policy.Builder associatedServiceCount(Integer associatedServiceCount)

      The number of services associated with this policy.

      Parameters:
      associatedServiceCount - The number of services associated with this policy.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdAt

      Policy.Builder createdAt(Instant createdAt)

      The timestamp when the policy was created.

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

      Policy.Builder updatedAt(Instant updatedAt)

      The timestamp when the policy was last updated.

      Parameters:
      updatedAt - The timestamp when the policy was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.