spring-integration-aws/src/main/java/org/springframework/integration/aws/sqs/core/SqsExecutor.java
@Override
	public void afterPropertiesSet() {

		Assert.isTrue(this.queueName != null || this.queueUrl != null,
				"Either queueName or queueUrl must not be empty.");

		Assert.isTrue(queue != null || awsCredentialsProvider != null,
				"Either queue or awsCredentialsProvider needs to be provided");

		if (messageMarshaller == null) {
			messageMarshaller = new JsonMessageMarshaller();
		}

		if (queue == null) {
			if (sqsClient == null) {
				if (awsClientConfiguration == null) {
					sqsClient = new AmazonSQSClient(awsCredentialsProvider);
				} else {
					sqsClient = new AmazonSQSClient(awsCredentialsProvider,
							awsClientConfiguration);
				}
			}
			if (regionId != null) {
				sqsClient.setEndpoint(String.format("sqs.%s.amazonaws.com",
						regionId));
			}
			if (queueName != null) {
				createQueueIfNotExists();
			}

			addPermissions();
		}
	}
@Override
	public void afterPropertiesSet() {

		Assert.isTrue(this.queueName != null || this.queueUrl != null,
				"Either queueName or queueUrl must not be empty.");

		Assert.isTrue(queue != null || awsCredentialsProvider != null,
				"Either queue or awsCredentialsProvider needs to be provided");

		if (messageMarshaller == null) {
			messageMarshaller = new JsonMessageMarshaller();
		}

		if (queue == null) {
			if (sqsClient == null) {
				if (awsClientConfiguration == null) {
					sqsClient = new AmazonSQSClient(awsCredentialsProvider);
				} else {
					sqsClient = new AmazonSQSClient(awsCredentialsProvider,
							awsClientConfiguration);
				}
			}
			if (regionId != null) {
				sqsClient.setEndpoint(String.format("sqs.%s.amazonaws.com",
						regionId));
			}
			if (queueName != null) {
				createQueueIfNotExists();
			}

			addPermissions();
		}
	}
@ Override public void afterPropertiesSet ( ) { Assert . isTrue ( this . queueName != null || this . queueUrl != null , "Either queueName or queueUrl must not be empty." ) ; Assert . isTrue ( queue != null || awsCredentialsProvider != null , "Either queue or awsCredentialsProvider needs to be provided" ) ; if ( messageMarshaller == null ) { messageMarshaller = new JsonMessageMarshaller ( ) ; } if ( queue == null ) { if ( sqsClient == null ) { if ( awsClientConfiguration == null ) { sqsClient = new AmazonSQSClient ( awsCredentialsProvider ) ; } else { sqsClient = new AmazonSQSClient ( awsCredentialsProvider , awsClientConfiguration ) ; } } if ( regionId != null ) { sqsClient . setEndpoint ( String . format ( "sqs.%s.amazonaws.com" , regionId ) ) ; } if ( queueName != null ) { createQueueIfNotExists ( ) ; } addPermissions ( ) ; } }
Verifies and sets the parameters. E.g. initializes the to be used
Verifies and sets the parameters . E . g . initializes the to be used