@Override public ListRulesRequest build() { return new ListRulesRequest(this); } }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(namePrefix()); hashCode = 31 * hashCode + Objects.hashCode(nextToken()); hashCode = 31 * hashCode + Objects.hashCode(limit()); return hashCode; }
/** * <p> * Lists your Amazon CloudWatch Events rules. You can either list all the rules or you can provide a prefix to match * to the rule names. * </p> * * @return Result of the ListRules operation returned by the service. * @throws InternalException * This exception occurs due to unexpected causes. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudWatchEventsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudWatchEventsClient.ListRules * @see #listRules(ListRulesRequest) * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules" target="_top">AWS API * Documentation</a> */ default ListRulesResponse listRules() throws InternalException, AwsServiceException, SdkClientException, CloudWatchEventsException { return listRules(ListRulesRequest.builder().build()); }
/** * <p> * Lists your Amazon CloudWatch Events rules. You can either list all the rules or you can provide a prefix to match * to the rule names. * </p> * * @return A Java Future containing the result of the ListRules operation returned by the service.<br/> * The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. * <ul> * <li>InternalException This exception occurs due to unexpected causes.</li> * <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.</li> * <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.</li> * <li>CloudWatchEventsException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.</li> * </ul> * @sample CloudWatchEventsAsyncClient.ListRules * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules" target="_top">AWS API * Documentation</a> */ default CompletableFuture<ListRulesResponse> listRules() { return listRules(ListRulesRequest.builder().build()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ListRulesRequest)) { return false; } ListRulesRequest other = (ListRulesRequest) obj; return Objects.equals(namePrefix(), other.namePrefix()) && Objects.equals(nextToken(), other.nextToken()) && Objects.equals(limit(), other.limit()); }
/** * <p> * Lists your Amazon CloudWatch Events rules. You can either list all the rules or you can provide a prefix to match * to the rule names. * </p> * <p> * ListRules does not list the targets of a rule. To see the targets associated with a rule, use * <a>ListTargetsByRule</a>. * </p> * * @return Result of the ListRules operation returned by the service. * @throws InternalException * This exception occurs due to unexpected causes. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudWatchEventsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudWatchEventsClient.ListRules * @see #listRules(ListRulesRequest) * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules" target="_top">AWS API * Documentation</a> */ default ListRulesResponse listRules() throws InternalException, AwsServiceException, SdkClientException, CloudWatchEventsException { return listRules(ListRulesRequest.builder().build()); }
@Override public ListRulesRequest build() { return new ListRulesRequest(this); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(namePrefix()); hashCode = 31 * hashCode + Objects.hashCode(nextToken()); hashCode = 31 * hashCode + Objects.hashCode(limit()); return hashCode; }
/** * <p> * Lists your Amazon CloudWatch Events rules. You can either list all the rules or you can provide a prefix to match * to the rule names. * </p> * <p> * ListRules does not list the targets of a rule. To see the targets associated with a rule, use * <a>ListTargetsByRule</a>. * </p> * * @return A Java Future containing the result of the ListRules operation returned by the service.<br/> * The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. * <ul> * <li>InternalException This exception occurs due to unexpected causes.</li> * <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.</li> * <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.</li> * <li>CloudWatchEventsException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.</li> * </ul> * @sample CloudWatchEventsAsyncClient.ListRules * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules" target="_top">AWS API * Documentation</a> */ default CompletableFuture<ListRulesResponse> listRules() { return listRules(ListRulesRequest.builder().build()); }
@Override public ListRulesRequest build() { return new ListRulesRequest(this); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(namePrefix()); hashCode = 31 * hashCode + Objects.hashCode(nextToken()); hashCode = 31 * hashCode + Objects.hashCode(limit()); return hashCode; }
/** * <p> * Lists your Amazon CloudWatch Events rules. You can either list all the rules or you can provide a prefix to match * to the rule names. * </p> * <p> * ListRules does not list the targets of a rule. To see the targets associated with a rule, use * <a>ListTargetsByRule</a>. * </p> * * @return Result of the ListRules operation returned by the service. * @throws InternalException * This exception occurs due to unexpected causes. * @throws SdkException * Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for * catch all scenarios. * @throws SdkClientException * If any client side error occurs such as an IO related failure, failure to get credentials, etc. * @throws CloudWatchEventsException * Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type. * @sample CloudWatchEventsClient.ListRules * @see #listRules(ListRulesRequest) * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules" target="_top">AWS API * Documentation</a> */ default ListRulesResponse listRules() throws InternalException, AwsServiceException, SdkClientException, CloudWatchEventsException { return listRules(ListRulesRequest.builder().build()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ListRulesRequest)) { return false; } ListRulesRequest other = (ListRulesRequest) obj; return Objects.equals(namePrefix(), other.namePrefix()) && Objects.equals(nextToken(), other.nextToken()) && Objects.equals(limit(), other.limit()); }
/** * <p> * Lists your Amazon CloudWatch Events rules. You can either list all the rules or you can provide a prefix to match * to the rule names. * </p> * <p> * ListRules does not list the targets of a rule. To see the targets associated with a rule, use * <a>ListTargetsByRule</a>. * </p> * * @return A Java Future containing the result of the ListRules operation returned by the service.<br/> * The CompletableFuture returned by this method can be completed exceptionally with the following * exceptions. * <ul> * <li>InternalException This exception occurs due to unexpected causes.</li> * <li>SdkException Base class for all exceptions that can be thrown by the SDK (both service and client). * Can be used for catch all scenarios.</li> * <li>SdkClientException If any client side error occurs such as an IO related failure, failure to get * credentials, etc.</li> * <li>CloudWatchEventsException Base class for all service exceptions. Unknown exceptions will be thrown as * an instance of this type.</li> * </ul> * @sample CloudWatchEventsAsyncClient.ListRules * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/ListRules" target="_top">AWS API * Documentation</a> */ default CompletableFuture<ListRulesResponse> listRules() { return listRules(ListRulesRequest.builder().build()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof ListRulesRequest)) { return false; } ListRulesRequest other = (ListRulesRequest) obj; return Objects.equals(namePrefix(), other.namePrefix()) && Objects.equals(nextToken(), other.nextToken()) && Objects.equals(limit(), other.limit()); }
return listRules(ListRulesRequest.builder().applyMutation(listRulesRequest).build());
/** * 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. */ @Override public String toString() { return ToString.builder("ListRulesRequest").add("NamePrefix", namePrefix()).add("NextToken", nextToken()) .add("Limit", limit()).build(); }
return listRules(ListRulesRequest.builder().applyMutation(listRulesRequest).build());
/** * 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. */ @Override public String toString() { return ToString.builder("ListRulesRequest").add("NamePrefix", namePrefix()).add("NextToken", nextToken()) .add("Limit", limit()).build(); }
return listRules(ListRulesRequest.builder().applyMutation(listRulesRequest).build());