Example usage for com.amazonaws.services.sns.model CreateTopicResult setTopicArn

List of usage examples for com.amazonaws.services.sns.model CreateTopicResult setTopicArn

Introduction

In this page you can find the example usage for com.amazonaws.services.sns.model CreateTopicResult setTopicArn.

Prototype


public void setTopicArn(String topicArn) 

Source Link

Document

The Amazon Resource Name (ARN) assigned to the created topic.

Usage

From source file:org.apache.camel.component.aws.sns.AmazonSNSClientMock.java

License:Apache License

@Override
public CreateTopicResult createTopic(CreateTopicRequest createTopicRequest)
        throws AmazonServiceException, AmazonClientException {
    CreateTopicResult createTopicResult = new CreateTopicResult();
    createTopicResult.setTopicArn(DEFAULT_TOPIC_ARN);
    return createTopicResult;
}

From source file:org.apache.camel.itest.osgi.aws.AmazonSNSClientMock.java

License:Apache License

@Override
public CreateTopicResult createTopic(CreateTopicRequest createTopicRequest)
        throws AmazonServiceException, AmazonClientException {
    CreateTopicResult createTopicResult = new CreateTopicResult();
    createTopicResult.setTopicArn("arn:aws:sns:us-east-1:541925086079:MyTopic");
    return createTopicResult;
}