Class DeleteRuleRequest

All Implemented Interfaces:
SdkPojo, ToCopyableBuilder<DeleteRuleRequest.Builder,DeleteRuleRequest>

@Generated("software.amazon.awssdk:codegen") public final class DeleteRuleRequest extends EventBridgeRequest implements ToCopyableBuilder<DeleteRuleRequest.Builder,DeleteRuleRequest>
  • Method Details

    • name

      public final String name()

      The name of the rule.

      Returns:
      The name of the rule.
    • eventBusName

      public final String eventBusName()

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

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

      public final 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 delete the rule. 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:
      If this is a managed rule, created by an Amazon Web Services service on your behalf, you must specify Force as True to delete the rule. 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.
    • toBuilder

      public DeleteRuleRequest.Builder toBuilder()
      Specified by:
      toBuilder in interface ToCopyableBuilder<DeleteRuleRequest.Builder,DeleteRuleRequest>
      Specified by:
      toBuilder in class EventBridgeRequest
    • builder

      public static DeleteRuleRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends DeleteRuleRequest.Builder> serializableBuilderClass()
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class AwsRequest
    • equals

      public final boolean equals(Object obj)
      Overrides:
      equals in class AwsRequest
    • equalsBySdkFields

      public final boolean equalsBySdkFields(Object obj)
      Specified by:
      equalsBySdkFields in interface SdkPojo
    • toString

      public final String toString()
      Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
      Overrides:
      toString in class Object
    • getValueForField

      public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
      Overrides:
      getValueForField in class SdkRequest
    • sdkFields

      public final List<SdkField<?>> sdkFields()
      Specified by:
      sdkFields in interface SdkPojo
    • sdkFieldNameToField

      public final Map<String,SdkField<?>> sdkFieldNameToField()
      Specified by:
      sdkFieldNameToField in interface SdkPojo