Interface RemoveTargetsRequest.Builder

    • Method Detail

      • rule

        RemoveTargetsRequest.Builder rule​(String rule)

        The name of the rule.

        Parameters:
        rule - The name of the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • eventBusName

        RemoveTargetsRequest.Builder eventBusName​(String eventBusName)

        The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.

        Parameters:
        eventBusName - The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ids

        RemoveTargetsRequest.Builder ids​(Collection<String> ids)

        The IDs of the targets to remove from the rule.

        Parameters:
        ids - The IDs of the targets to remove from the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ids

        RemoveTargetsRequest.Builder ids​(String... ids)

        The IDs of the targets to remove from the rule.

        Parameters:
        ids - The IDs of the targets to remove from the rule.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • force

        RemoveTargetsRequest.Builder force​(Boolean force)

        If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify Force as True to remove targets. This parameter is ignored for rules that are not managed rules. You can check whether a rule is a managed rule by using DescribeRule or ListRules and checking the ManagedBy field of the response.

        Parameters:
        force - If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify Force as True to remove targets. This parameter is ignored for rules that are not managed rules. You can check whether a rule is a managed rule by using DescribeRule or ListRules and checking the ManagedBy field of the response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.