/** * <p> * The ARN of the topic you want to delete. * </p> * * @param topicArn * The ARN of the topic you want to delete. * @return Returns a reference to this object so that method calls can be chained together. */ public DeleteTopicRequest withTopicArn(String topicArn) { setTopicArn(topicArn); return this; }
/** * Constructs a new DeleteTopicRequest object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param topicArn * The ARN of the topic you want to delete. */ public DeleteTopicRequest(String topicArn) { setTopicArn(topicArn); }
/** * Constructs a new DeleteTopicRequest object. Callers should use the setter * or fluent setter (with...) methods to initialize any additional object * members. * * @param topicArn <p> * The ARN of the topic you want to delete. * </p> */ public DeleteTopicRequest(String topicArn) { setTopicArn(topicArn); }
/** * <p> * Deletes a topic and all its subscriptions. Deleting a topic might prevent * some messages previously sent to the topic from being delivered to * subscribers. This action is idempotent, so deleting a topic that does not * exist does not result in an error. * </p> * * @param topicArn <p> * The ARN of the topic you want to delete. * </p> * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ public void deleteTopic(String topicArn) throws AmazonServiceException, AmazonClientException { DeleteTopicRequest deleteTopicRequest = new DeleteTopicRequest(); deleteTopicRequest.setTopicArn(topicArn); deleteTopic(deleteTopicRequest); }
/** * Constructs a new DeleteTopicRequest object. Callers should use the setter * or fluent setter (with...) methods to initialize any additional object * members. * * @param topicArn <p> * The ARN of the topic you want to delete. * </p> */ public DeleteTopicRequest(String topicArn) { setTopicArn(topicArn); }
/** * <p> * Deletes a topic and all its subscriptions. Deleting a topic might prevent * some messages previously sent to the topic from being delivered to * subscribers. This action is idempotent, so deleting a topic that does not * exist does not result in an error. * </p> * * @param topicArn <p> * The ARN of the topic you want to delete. * </p> * @throws InvalidParameterException * @throws InternalErrorException * @throws AuthorizationErrorException * @throws NotFoundException * @throws AmazonClientException If any internal errors are encountered * inside the client while attempting to make the request or * handle the response. For example if a network connection is * not available. * @throws AmazonServiceException If an error response is returned by Amazon * Simple Notification Service indicating either a problem with * the data in the request, or a server side issue. */ public void deleteTopic(String topicArn) throws AmazonServiceException, AmazonClientException { DeleteTopicRequest deleteTopicRequest = new DeleteTopicRequest(); deleteTopicRequest.setTopicArn(topicArn); deleteTopic(deleteTopicRequest); }