public void setDestinationConfig(ReplicationDestinationConfig destinationConfig) {
        if (destinationConfig == null) {
            throw new IllegalArgumentException(
                    "Destination cannot be null in the replication rule");
        }
        this.destinationConfig = destinationConfig;
    }
Sets the destination configuration for the replication rule.

@throws IllegalArgumentException
            if the destinationConfig is null.
aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/ReplicationRule.java