本文整理汇总了Java中com.amazonaws.services.sns.model.UnsubscribeResult类的典型用法代码示例。如果您正苦于以下问题:Java UnsubscribeResult类的具体用法?Java UnsubscribeResult怎么用?Java UnsubscribeResult使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UnsubscribeResult类属于com.amazonaws.services.sns.model包,在下文中一共展示了UnsubscribeResult类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: unsubscribe
import com.amazonaws.services.sns.model.UnsubscribeResult; //导入依赖的package包/类
@Override
public UnsubscribeResult unsubscribe(UnsubscribeRequest unsubscribeRequest) throws AmazonClientException {
if (!_subscriptionsByArn.containsKey(unsubscribeRequest.getSubscriptionArn()))
throw new NotFoundException("no such subscription");
Subscription removed = _subscriptionsByArn.remove(unsubscribeRequest.getSubscriptionArn());
_subscriptionsForTopic.get(removed.getSubscriptionArn()).remove(removed.getSubscriptionArn());
return new UnsubscribeResult();
}
示例2: unsubscribe
import com.amazonaws.services.sns.model.UnsubscribeResult; //导入依赖的package包/类
@Override
public UnsubscribeResult unsubscribe(UnsubscribeRequest unsubscribeRequest) throws AmazonServiceException, AmazonClientException {
throw new UnsupportedOperationException();
}