Interface ProtectionLimits.Builder

    • Method Detail

      • protectedResourceTypeLimits

        ProtectionLimits.Builder protectedResourceTypeLimits​(Collection<Limit> protectedResourceTypeLimits)

        The maximum number of resource types that you can specify in a protection.

        Parameters:
        protectedResourceTypeLimits - The maximum number of resource types that you can specify in a protection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • protectedResourceTypeLimits

        ProtectionLimits.Builder protectedResourceTypeLimits​(Limit... protectedResourceTypeLimits)

        The maximum number of resource types that you can specify in a protection.

        Parameters:
        protectedResourceTypeLimits - The maximum number of resource types that you can specify in a protection.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • protectedResourceTypeLimits

        ProtectionLimits.Builder protectedResourceTypeLimits​(Consumer<Limit.Builder>... protectedResourceTypeLimits)

        The maximum number of resource types that you can specify in a protection.

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #protectedResourceTypeLimits(List).

        Parameters:
        protectedResourceTypeLimits - a consumer that will call methods on Limit.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #protectedResourceTypeLimits(java.util.Collection)