Java 类com.amazonaws.services.sns.model.UnsubscribeRequest 实例源码

项目:awslocal    文件:InMemorySNS.java   
@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();
}
项目:unitstack    文件:MockSnsTest.java   
@Test
public void testUnsubscribe_withNoRequestParams_shouldWork() {
  mockSns(new MockParameters());
  assertNotNull(sns.unsubscribe(new UnsubscribeRequest()));
}
项目:Camel    文件:AmazonSNSClientMock.java   
@Override
public UnsubscribeResult unsubscribe(UnsubscribeRequest unsubscribeRequest) throws AmazonServiceException, AmazonClientException {
    throw new UnsupportedOperationException();
}
项目:aws-sdk-java-resources    文件:SubscriptionImpl.java   
@Override
public void delete(UnsubscribeRequest request) {
    delete(request, null);
}
项目:aws-sdk-java-resources    文件:SubscriptionImpl.java   
@Override
public void delete(UnsubscribeRequest request, ResultCapture<Void> extractor
        ) {

    resource.performAction("Delete", request, extractor);
}
项目:aws-sdk-java-resources    文件:SubscriptionImpl.java   
@Override
public void delete(ResultCapture<Void> extractor) {
    UnsubscribeRequest request = new UnsubscribeRequest();
    delete(request, extractor);
}
项目:aws-sdk-java-resources    文件:Subscription.java   
/**
 * Performs the <code>Delete</code> action.
 *
 * <p>
 * The following request parameters will be populated from the data of this
 * <code>Subscription</code> resource, and any conflicting parameter value
 * set in the request will be overridden:
 * <ul>
 *   <li>
 *     <b><code>SubscriptionArn</code></b>
 *         - mapped from the <code>Arn</code> identifier.
 *   </li>
 * </ul>
 *
 * <p>
 *
 * @see UnsubscribeRequest
 */
void delete(UnsubscribeRequest request);
项目:aws-sdk-java-resources    文件:Subscription.java   
/**
 * Performs the <code>Delete</code> action and use a ResultCapture to
 * retrieve the low-level client response.
 *
 * <p>
 * The following request parameters will be populated from the data of this
 * <code>Subscription</code> resource, and any conflicting parameter value
 * set in the request will be overridden:
 * <ul>
 *   <li>
 *     <b><code>SubscriptionArn</code></b>
 *         - mapped from the <code>Arn</code> identifier.
 *   </li>
 * </ul>
 *
 * <p>
 *
 * @see UnsubscribeRequest
 */
void delete(UnsubscribeRequest request, ResultCapture<Void> extractor);