Example usage for com.amazonaws.services.sqs.model SetQueueAttributesResult getSdkHttpMetadata

List of usage examples for com.amazonaws.services.sqs.model SetQueueAttributesResult getSdkHttpMetadata

Introduction

In this page you can find the example usage for com.amazonaws.services.sqs.model SetQueueAttributesResult getSdkHttpMetadata.

Prototype

public SdkHttpMetadata getSdkHttpMetadata() 

Source Link

Usage

From source file:com.netflix.conductor.contribs.queue.sqs.SQSObservableQueue.java

License:Apache License

private void addPolicy(List<String> accountsToAuthorize) {
    logger.info("Authorizing " + accountsToAuthorize + " to the queue " + queueName);
    Map<String, String> attributes = new HashMap<>();
    attributes.put("Policy", getPolicy(accountsToAuthorize));
    SetQueueAttributesResult result = client.setQueueAttributes(queueURL, attributes);
    logger.info("policy attachment result: " + result);
    logger.info("policy attachment result: status=" + result.getSdkHttpMetadata().getHttpStatusCode());
}