/** * Simplified method form for invoking the GetTopicAttributes operation. * * @see #getTopicAttributesAsync(GetTopicAttributesRequest) */ @Override public java.util.concurrent.Future<GetTopicAttributesResult> getTopicAttributesAsync(String topicArn) { return getTopicAttributesAsync(new GetTopicAttributesRequest().withTopicArn(topicArn)); }
/** * Simplified method form for invoking the GetTopicAttributes operation. * * @see #getTopicAttributesAsync(GetTopicAttributesRequest) */ @Override public java.util.concurrent.Future<GetTopicAttributesResult> getTopicAttributesAsync(String topicArn) { return getTopicAttributesAsync(new GetTopicAttributesRequest().withTopicArn(topicArn)); }
@Override public GetTopicAttributesResult getTopicAttributes(String topicArn) { return getTopicAttributes(new GetTopicAttributesRequest().withTopicArn(topicArn)); }
/** * Simplified method form for invoking the GetTopicAttributes operation with an AsyncHandler. * * @see #getTopicAttributesAsync(GetTopicAttributesRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<GetTopicAttributesResult> getTopicAttributesAsync(String topicArn, com.amazonaws.handlers.AsyncHandler<GetTopicAttributesRequest, GetTopicAttributesResult> asyncHandler) { return getTopicAttributesAsync(new GetTopicAttributesRequest().withTopicArn(topicArn), asyncHandler); }
/** * Simplified method form for invoking the GetTopicAttributes operation with an AsyncHandler. * * @see #getTopicAttributesAsync(GetTopicAttributesRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<GetTopicAttributesResult> getTopicAttributesAsync(String topicArn, com.amazonaws.handlers.AsyncHandler<GetTopicAttributesRequest, GetTopicAttributesResult> asyncHandler) { return getTopicAttributesAsync(new GetTopicAttributesRequest().withTopicArn(topicArn), asyncHandler); }
@Override public GetTopicAttributesResult getTopicAttributes(String topicArn) { return getTopicAttributes(new GetTopicAttributesRequest().withTopicArn(topicArn)); }
/** * <p> * Returns all of the properties of a topic. Topic properties returned might * differ based on the authorization of the user. * </p> * * @param topicArn <p> * The ARN of the topic whose properties you want to get. * </p> * @return getTopicAttributesResult The response from the GetTopicAttributes * service method, as returned by Amazon Simple Notification * Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @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 GetTopicAttributesResult getTopicAttributes(String topicArn) throws AmazonServiceException, AmazonClientException { GetTopicAttributesRequest getTopicAttributesRequest = new GetTopicAttributesRequest(); getTopicAttributesRequest.setTopicArn(topicArn); return getTopicAttributes(getTopicAttributesRequest); }
GetTopicAttributesRequest getTopicAttributesRequest = new GetTopicAttributesRequest(topicArn); GetTopicAttributesResult getTopicAttributesResult = sns.getTopicAttributes(getTopicAttributesRequest); attributes = getTopicAttributesResult.getAttributes();
/** * <p> * Returns all of the properties of a topic. Topic properties returned might * differ based on the authorization of the user. * </p> * * @param topicArn <p> * The ARN of the topic whose properties you want to get. * </p> * @return getTopicAttributesResult The response from the GetTopicAttributes * service method, as returned by Amazon Simple Notification * Service. * @throws InvalidParameterException * @throws InternalErrorException * @throws NotFoundException * @throws AuthorizationErrorException * @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 GetTopicAttributesResult getTopicAttributes(String topicArn) throws AmazonServiceException, AmazonClientException { GetTopicAttributesRequest getTopicAttributesRequest = new GetTopicAttributesRequest(); getTopicAttributesRequest.setTopicArn(topicArn); return getTopicAttributes(getTopicAttributesRequest); }
GetTopicAttributesRequest getTopicAttributesRequest = new GetTopicAttributesRequest(topicArn); GetTopicAttributesResult getTopicAttributesResult = sns.getTopicAttributes(getTopicAttributesRequest); attributes = getTopicAttributesResult.getAttributes();
GetTopicAttributesRequest getTopicAttributesRequest = new GetTopicAttributesRequest(topicArn); GetTopicAttributesResult getTopicAttributesResult = sns.getTopicAttributes(getTopicAttributesRequest); attributes = getTopicAttributesResult.getAttributes();
GetTopicAttributesRequest getTopicAttributesRequest = new GetTopicAttributesRequest(t.getTopicArn()); GetTopicAttributesResult getTopicAttributesResult = sns.getTopicAttributes(getTopicAttributesRequest); Map<String, String> attributes = getTopicAttributesResult.getAttributes();