/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.codestarnotifications; import javax.annotation.Generated; import com.amazonaws.services.codestarnotifications.model.*; /** * Interface for accessing AWS CodeStar Notifications asynchronously. Each asynchronous method will return a Java Future * object representing the asynchronous operation; overloads which accept an {@code AsyncHandler} can be used to receive * notification when an asynchronous operation completes. *
* Note: Do not directly implement this interface, new methods are added to it regularly. Extend from * {@link com.amazonaws.services.codestarnotifications.AbstractAWSCodeStarNotificationsAsync} instead. *
**
* This AWS CodeStar Notifications API Reference provides descriptions and usage examples of the operations and data * types for the AWS CodeStar Notifications API. You can use the AWS CodeStar Notifications API to work with the * following objects: *
** Notification rules, by calling the following: *
** CreateNotificationRule, which creates a notification rule for a resource in your account. *
** DeleteNotificationRule, which deletes a notification rule. *
** DescribeNotificationRule, which provides information about a notification rule. *
** ListNotificationRules, which lists the notification rules associated with your account. *
** UpdateNotificationRule, which changes the name, events, or targets associated with a notification rule. *
** Subscribe, which subscribes a target to a notification rule. *
** Unsubscribe, which removes a target from a notification rule. *
** Targets, by calling the following: *
** DeleteTarget, which removes a notification rule target from a notification rule. *
** ListTargets, which lists the targets associated with a notification rule. *
** Events, by calling the following: *
** ListEventTypes, which lists the event types you can include in a notification rule. *
** Tags, by calling the following: *
** ListTagsForResource, which lists the tags already associated with a notification rule in your account. *
** TagResource, which associates a tag you provide with a notification rule in your account. *
** UntagResource, which removes a tag from a notification rule in your account. *
** For information about how to use AWS CodeStar Notifications, see the Amazon Web Services Developer * Tools Console User Guide. *
*/ @Generated("com.amazonaws:aws-java-sdk-code-generator") public interface AWSCodeStarNotificationsAsync extends AWSCodeStarNotifications { /** ** Creates a notification rule for a resource. The rule specifies the events you want notifications about and the * targets (such as Chatbot topics or Chatbot clients configured for Slack) where you want to receive them. *
* * @param createNotificationRuleRequest * @return A Java Future containing the result of the CreateNotificationRule operation returned by the service. * @sample AWSCodeStarNotificationsAsync.CreateNotificationRule * @see AWS API Documentation */ java.util.concurrent.Future* Creates a notification rule for a resource. The rule specifies the events you want notifications about and the * targets (such as Chatbot topics or Chatbot clients configured for Slack) where you want to receive them. *
* * @param createNotificationRuleRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the CreateNotificationRule operation returned by the service. * @sample AWSCodeStarNotificationsAsyncHandler.CreateNotificationRule * @see AWS API Documentation */ java.util.concurrent.Future* Deletes a notification rule for a resource. *
* * @param deleteNotificationRuleRequest * @return A Java Future containing the result of the DeleteNotificationRule operation returned by the service. * @sample AWSCodeStarNotificationsAsync.DeleteNotificationRule * @see AWS API Documentation */ java.util.concurrent.Future* Deletes a notification rule for a resource. *
* * @param deleteNotificationRuleRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the DeleteNotificationRule operation returned by the service. * @sample AWSCodeStarNotificationsAsyncHandler.DeleteNotificationRule * @see AWS API Documentation */ java.util.concurrent.Future* Deletes a specified target for notifications. *
* * @param deleteTargetRequest * @return A Java Future containing the result of the DeleteTarget operation returned by the service. * @sample AWSCodeStarNotificationsAsync.DeleteTarget * @see AWS API Documentation */ java.util.concurrent.Future* Deletes a specified target for notifications. *
* * @param deleteTargetRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the DeleteTarget operation returned by the service. * @sample AWSCodeStarNotificationsAsyncHandler.DeleteTarget * @see AWS API Documentation */ java.util.concurrent.Future* Returns information about a specified notification rule. *
* * @param describeNotificationRuleRequest * @return A Java Future containing the result of the DescribeNotificationRule operation returned by the service. * @sample AWSCodeStarNotificationsAsync.DescribeNotificationRule * @see AWS API Documentation */ java.util.concurrent.Future* Returns information about a specified notification rule. *
* * @param describeNotificationRuleRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the DescribeNotificationRule operation returned by the service. * @sample AWSCodeStarNotificationsAsyncHandler.DescribeNotificationRule * @see AWS API Documentation */ java.util.concurrent.Future* Returns information about the event types available for configuring notifications. *
* * @param listEventTypesRequest * @return A Java Future containing the result of the ListEventTypes operation returned by the service. * @sample AWSCodeStarNotificationsAsync.ListEventTypes * @see AWS API Documentation */ java.util.concurrent.Future* Returns information about the event types available for configuring notifications. *
* * @param listEventTypesRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListEventTypes operation returned by the service. * @sample AWSCodeStarNotificationsAsyncHandler.ListEventTypes * @see AWS API Documentation */ java.util.concurrent.Future* Returns a list of the notification rules for an Amazon Web Services account. *
* * @param listNotificationRulesRequest * @return A Java Future containing the result of the ListNotificationRules operation returned by the service. * @sample AWSCodeStarNotificationsAsync.ListNotificationRules * @see AWS API Documentation */ java.util.concurrent.Future* Returns a list of the notification rules for an Amazon Web Services account. *
* * @param listNotificationRulesRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListNotificationRules operation returned by the service. * @sample AWSCodeStarNotificationsAsyncHandler.ListNotificationRules * @see AWS API Documentation */ java.util.concurrent.Future* Returns a list of the tags associated with a notification rule. *
* * @param listTagsForResourceRequest * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AWSCodeStarNotificationsAsync.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future* Returns a list of the tags associated with a notification rule. *
* * @param listTagsForResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListTagsForResource operation returned by the service. * @sample AWSCodeStarNotificationsAsyncHandler.ListTagsForResource * @see AWS API Documentation */ java.util.concurrent.Future* Returns a list of the notification rule targets for an Amazon Web Services account. *
* * @param listTargetsRequest * @return A Java Future containing the result of the ListTargets operation returned by the service. * @sample AWSCodeStarNotificationsAsync.ListTargets * @see AWS API Documentation */ java.util.concurrent.Future* Returns a list of the notification rule targets for an Amazon Web Services account. *
* * @param listTargetsRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the ListTargets operation returned by the service. * @sample AWSCodeStarNotificationsAsyncHandler.ListTargets * @see AWS API Documentation */ java.util.concurrent.Future* Creates an association between a notification rule and an Chatbot topic or Chatbot client so that the associated * target can receive notifications when the events described in the rule are triggered. *
* * @param subscribeRequest * @return A Java Future containing the result of the Subscribe operation returned by the service. * @sample AWSCodeStarNotificationsAsync.Subscribe * @see AWS API Documentation */ java.util.concurrent.Future* Creates an association between a notification rule and an Chatbot topic or Chatbot client so that the associated * target can receive notifications when the events described in the rule are triggered. *
* * @param subscribeRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the Subscribe operation returned by the service. * @sample AWSCodeStarNotificationsAsyncHandler.Subscribe * @see AWS API Documentation */ java.util.concurrent.Future* Associates a set of provided tags with a notification rule. *
* * @param tagResourceRequest * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AWSCodeStarNotificationsAsync.TagResource * @see AWS API Documentation */ java.util.concurrent.Future* Associates a set of provided tags with a notification rule. *
* * @param tagResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the TagResource operation returned by the service. * @sample AWSCodeStarNotificationsAsyncHandler.TagResource * @see AWS API Documentation */ java.util.concurrent.Future* Removes an association between a notification rule and an Chatbot topic so that subscribers to that topic stop * receiving notifications when the events described in the rule are triggered. *
* * @param unsubscribeRequest * @return A Java Future containing the result of the Unsubscribe operation returned by the service. * @sample AWSCodeStarNotificationsAsync.Unsubscribe * @see AWS API Documentation */ java.util.concurrent.Future* Removes an association between a notification rule and an Chatbot topic so that subscribers to that topic stop * receiving notifications when the events described in the rule are triggered. *
* * @param unsubscribeRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the Unsubscribe operation returned by the service. * @sample AWSCodeStarNotificationsAsyncHandler.Unsubscribe * @see AWS API Documentation */ java.util.concurrent.Future* Removes the association between one or more provided tags and a notification rule. *
* * @param untagResourceRequest * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AWSCodeStarNotificationsAsync.UntagResource * @see AWS API Documentation */ java.util.concurrent.Future* Removes the association between one or more provided tags and a notification rule. *
* * @param untagResourceRequest * @param asyncHandler * Asynchronous callback handler for events in the lifecycle of the request. Users can provide an * implementation of the callback methods in this interface to receive notification of successful or * unsuccessful completion of the operation. * @return A Java Future containing the result of the UntagResource operation returned by the service. * @sample AWSCodeStarNotificationsAsyncHandler.UntagResource * @see AWS API Documentation */ java.util.concurrent.Future* Updates a notification rule for a resource. You can change the events that trigger the notification rule, the * status of the rule, and the targets that receive the notifications. *
** To add or remove tags for a notification rule, you must use TagResource and UntagResource. *
** Updates a notification rule for a resource. You can change the events that trigger the notification rule, the * status of the rule, and the targets that receive the notifications. *
** To add or remove tags for a notification rule, you must use TagResource and UntagResource. *
*