return putEvents(PutEventsRequest.builder().applyMutation(putEventsRequest).build());
return putEvents(PutEventsRequest.builder().applyMutation(putEventsRequest).build());
return putEvents(PutEventsRequest.builder().applyMutation(putEventsRequest).build());
/** * <p> * Sends custom events to Amazon CloudWatch Events so that they can be matched to rules. * </p> * <br/> * <p> * This is a convenience which creates an instance of the {@link PutEventsRequest.Builder} avoiding the need to * create one manually via {@link PutEventsRequest#builder()} * </p> * * @param putEventsRequest * A {@link Consumer} that will call methods on {@link PutEventsRequest.Builder} to create a request. * @return Result of the PutEvents 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.PutEvents * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents" target="_top">AWS API * Documentation</a> */ default PutEventsResponse putEvents(Consumer<PutEventsRequest.Builder> putEventsRequest) throws InternalException, AwsServiceException, SdkClientException, CloudWatchEventsException { return putEvents(PutEventsRequest.builder().applyMutation(putEventsRequest).build()); }
/** * <p> * Sends custom events to Amazon CloudWatch Events so that they can be matched to rules. * </p> * <br/> * <p> * This is a convenience which creates an instance of the {@link PutEventsRequest.Builder} avoiding the need to * create one manually via {@link PutEventsRequest#builder()} * </p> * * @param putEventsRequest * A {@link Consumer} that will call methods on {@link PutEventsRequest.Builder} to create a request. * @return Result of the PutEvents 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.PutEvents * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents" target="_top">AWS API * Documentation</a> */ default PutEventsResponse putEvents(Consumer<PutEventsRequest.Builder> putEventsRequest) throws InternalException, AwsServiceException, SdkClientException, CloudWatchEventsException { return putEvents(PutEventsRequest.builder().applyMutation(putEventsRequest).build()); }
/** * <p> * Sends custom events to Amazon CloudWatch Events so that they can be matched to rules. * </p> * <br/> * <p> * This is a convenience which creates an instance of the {@link PutEventsRequest.Builder} avoiding the need to * create one manually via {@link PutEventsRequest#builder()} * </p> * * @param putEventsRequest * A {@link Consumer} that will call methods on {@link PutEventsRequest.Builder} to create a request. * @return Result of the PutEvents 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.PutEvents * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutEvents" target="_top">AWS API * Documentation</a> */ default PutEventsResponse putEvents(Consumer<PutEventsRequest.Builder> putEventsRequest) throws InternalException, AwsServiceException, SdkClientException, CloudWatchEventsException { return putEvents(PutEventsRequest.builder().applyMutation(putEventsRequest).build()); }